{"id":26338688,"url":"https://github.com/yoanbernabeu/YoutubeTranscriptApi","last_synced_at":"2025-03-16T03:03:36.769Z","repository":{"id":271070138,"uuid":"912315242","full_name":"yoanbernabeu/YoutubeTranscriptApi","owner":"yoanbernabeu","description":"A REST API wrapper around https://pypi.org/project/youtube-transcript-api/ Python package. This API allows you to fetch YouTube video transcripts (subtitles) in various formats.","archived":false,"fork":false,"pushed_at":"2025-01-05T17:09:09.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T11:45:50.307Z","etag":null,"topics":["api","docker","python","transcript","youtube"],"latest_commit_sha":null,"homepage":"","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/yoanbernabeu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-05T08:08:01.000Z","updated_at":"2025-01-13T01:25:03.000Z","dependencies_parsed_at":"2025-01-05T09:26:00.597Z","dependency_job_id":"55f045cf-742c-452f-a33b-7c7758bb31a2","html_url":"https://github.com/yoanbernabeu/YoutubeTranscriptApi","commit_stats":null,"previous_names":["yoanbernabeu/youtubetranscriptapi"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoanbernabeu%2FYoutubeTranscriptApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoanbernabeu%2FYoutubeTranscriptApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoanbernabeu%2FYoutubeTranscriptApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoanbernabeu%2FYoutubeTranscriptApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoanbernabeu","download_url":"https://codeload.github.com/yoanbernabeu/YoutubeTranscriptApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243818195,"owners_count":20352629,"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","docker","python","transcript","youtube"],"created_at":"2025-03-16T03:02:04.562Z","updated_at":"2025-03-16T03:03:36.760Z","avatar_url":"https://github.com/yoanbernabeu.png","language":"Python","readme":"# YouTube Transcript REST API\n\nA REST API wrapper around [youtube-transcript-api](https://pypi.org/project/youtube-transcript-api/) Python package. This API allows you to fetch YouTube video transcripts (subtitles) in various formats.\n\n## Features\n\n- Get transcripts in multiple formats (JSON, Text, WebVTT, SRT)\n- List available transcripts for a video\n- Optional API key protection\n- Docker ready\n\n## Quick Start\n\nOne-liner to run with Docker:\n```bash\ndocker run -p 8000:8000 yoanbernabeu/youtubetranscriptapi:latest\n```\n\n## Installation\n\n### Using Docker Compose (recommended)\n```bash\n# Without API key protection\ndocker compose up -d\n\n# With API key protection\nAPI_KEY=your_secret_key_here docker compose up -d\n```\n\n### Manual Installation\n```bash\n# Clone repository\ngit clone https://github.com/yourusername/YoutubeTranscriptApi.git\ncd YoutubeTranscriptApi\n\n# Install dependencies\npip install -r requirements.txt\n\n# Run server\nuvicorn main:app --reload\n```\n\n## API Usage\n\n### Get Transcript\n```bash\n# JSON format (default)\ncurl \"http://localhost:8000/transcript?video_id=VIDEO_ID\u0026language=en\"\n\n# Other formats (text, webvtt, srt)\ncurl \"http://localhost:8000/transcript?video_id=VIDEO_ID\u0026language=en\u0026format=srt\"\n```\n\n### List Available Transcripts\n```bash\ncurl \"http://localhost:8000/transcripts?video_id=VIDEO_ID\"\n```\n\n### Using API Key (if enabled)\n```bash\ncurl -H \"X-API-Key: your_secret_key_here\" \"http://localhost:8000/transcript?video_id=VIDEO_ID\"\n```\n\n## API Documentation\n\n- Swagger UI: http://localhost:8000/docs\n- ReDoc: http://localhost:8000/redoc\n- OpenAPI JSON: http://localhost:8000/openapi.json\n\n## Environment Variables\n\n- `API_KEY`: Optional. If set, will require this key for protected endpoints.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Credits\n\nThis project is a REST API wrapper around the excellent [youtube-transcript-api](https://pypi.org/project/youtube-transcript-api/) Python package.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoanbernabeu%2FYoutubeTranscriptApi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoanbernabeu%2FYoutubeTranscriptApi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoanbernabeu%2FYoutubeTranscriptApi/lists"}