{"id":16646394,"url":"https://github.com/faheel/youtube-scraper-api","last_synced_at":"2025-04-09T15:51:36.797Z","repository":{"id":43365157,"uuid":"137639355","full_name":"faheel/youtube-scraper-api","owner":"faheel","description":"A web API that scrapes a YouTube video's data and returns it as JSON","archived":false,"fork":false,"pushed_at":"2022-12-08T07:43:23.000Z","size":44,"stargazers_count":13,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T18:06:23.895Z","etag":null,"topics":["api","json","json-api","python","python3","scraper","web-scraper","youtube","youtube-data"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/faheel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-17T08:18:04.000Z","updated_at":"2025-01-14T20:49:21.000Z","dependencies_parsed_at":"2022-07-08T20:17:33.387Z","dependency_job_id":null,"html_url":"https://github.com/faheel/youtube-scraper-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faheel%2Fyoutube-scraper-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faheel%2Fyoutube-scraper-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faheel%2Fyoutube-scraper-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faheel%2Fyoutube-scraper-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faheel","download_url":"https://codeload.github.com/faheel/youtube-scraper-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248064035,"owners_count":21041854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","json","json-api","python","python3","scraper","web-scraper","youtube","youtube-data"],"created_at":"2024-10-12T08:27:28.542Z","updated_at":"2025-04-09T15:51:36.781Z","avatar_url":"https://github.com/faheel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube scraper API\n\nA web API that scrapes a YouTube video's data and returns it as JSON\n\n## Setup\n\n1. Create a Python 3 virtual environment using [Pipenv](https://github.com/pypa/pipenv):\n   ```bash\n   pipenv --three\n   ```\n2. Activate the virtual environment and install the dependencies:\n   ```bash\n   pipenv shell\n   pipenv install --dev\n   ```\n\n### Start the server\n\nWith the virtual environment activated, run the following from the root directory of the project:\n\n```bash\npython -m scraper.api\n```\n\nThe server should then be available at http://127.0.0.1:5000.\n\n## API\n\n### Requests\n\nThe API accepts GET requests at the `/scrape` endpoint with the following parameters:\n\n* #### `id`\n  ID of the YouTube video whose data is to be scraped.\n\n#### Example URLs\n\n* `http://127.0.0.1:5000/scrape?id=YdwOL08NfxQ`\n* `http://127.0.0.1:5000/scrape?id=n-DTjpde9-0`\n\n\n### Responses\n\n* #### Successful response\n  When data is successfully scraped for the given video ID.\n\n  #### Status code\n  200\n\n  #### Format\n  ```python3\n  {\n      \"id\": string,\n      \"title\": string,\n      \"upload_date\": string,\n      \"duration\": string,\n      \"description\": string,\n      \"thumbnail_url\": string,\n      \"genre\": string,\n      \"is_paid\": boolean,\n      \"is_unlisted\": boolean,\n      \"is_family_friendly\": boolean,\n      \"uploader\": {\n          \"channel_id\": string,\n          \"name\": string,\n          \"thumbnail_url\": string,\n          \"is_verified\": boolean\n      },\n      \"statistics\": {\n          \"views\": number,\n          \"likes\": number,\n          \"dislikes\": number\n      }\n  }\n  ```\n\n* #### Error response\n  When no video corresponding to the given video ID is found.\n\n  #### Status code\n  404\n\n  #### Format\n  ```python3\n  {\n      \"error\": string\n  }\n  ```\n\n## License\n\nThis project is licensed under the terms of the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaheel%2Fyoutube-scraper-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaheel%2Fyoutube-scraper-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaheel%2Fyoutube-scraper-api/lists"}