{"id":29022695,"url":"https://github.com/jakor57/youtube-transcript-api","last_synced_at":"2025-06-26T03:03:25.450Z","repository":{"id":299136492,"uuid":"1002017855","full_name":"jakor57/youtube-transcript-api","owner":"jakor57","description":"\u003ch1 align=\"center\"\u003e✨ YouTube Transcript API ✨\u003c/h1\u003e\u003cp align=\"center\"\u003e  \u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=BAENLEW8VUJ6G\u0026source=url\"\u003e    \u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-green.svg\" alt=\"Donate\"\u003e  \u003c/a\u003e  \u003ca href=\"https://github.com/jdepoix/youtube-transcript-api/actions\"\u003e    \u003cimg src","archived":false,"fork":false,"pushed_at":"2025-06-21T23:23:08.000Z","size":1682,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-22T00:24:46.535Z","etag":null,"topics":["flask","flask-application","flask-webapp","gemini-pro-api","gensim","java","nlp","nltk-python","python","restful-api","subtitle","subtitles","sumy","transcript","translating-transcripts","youtube","youtube-asr","youtube-captions"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"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/jakor57.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,"zenodo":null}},"created_at":"2025-06-14T14:38:09.000Z","updated_at":"2025-06-21T23:23:11.000Z","dependencies_parsed_at":"2025-06-22T00:21:02.934Z","dependency_job_id":null,"html_url":"https://github.com/jakor57/youtube-transcript-api","commit_stats":null,"previous_names":["jakor57/youtube-transcript-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jakor57/youtube-transcript-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakor57%2Fyoutube-transcript-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakor57%2Fyoutube-transcript-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakor57%2Fyoutube-transcript-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakor57%2Fyoutube-transcript-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakor57","download_url":"https://codeload.github.com/jakor57/youtube-transcript-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakor57%2Fyoutube-transcript-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990289,"owners_count":23241186,"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":["flask","flask-application","flask-webapp","gemini-pro-api","gensim","java","nlp","nltk-python","python","restful-api","subtitle","subtitles","sumy","transcript","translating-transcripts","youtube","youtube-asr","youtube-captions"],"created_at":"2025-06-26T03:03:24.628Z","updated_at":"2025-06-26T03:03:25.439Z","avatar_url":"https://github.com/jakor57.png","language":"Python","readme":"# YouTube Transcript API 🎥📜\r\n\r\n![YouTube Transcript API](https://img.shields.io/badge/version-1.0.0-blue.svg) ![License](https://img.shields.io/badge/license-MIT-green.svg) ![Python](https://img.shields.io/badge/python-3.6%2B-yellow.svg)\r\n\r\nWelcome to the YouTube Transcript API! This Python library provides an easy way to retrieve transcripts and subtitles for any YouTube video. Whether you need captions for accessibility, translation, or simply to understand the content better, this API makes it straightforward. \r\n\r\n## Table of Contents\r\n\r\n- [Features](#features)\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [Contributing](#contributing)\r\n- [License](#license)\r\n- [Releases](#releases)\r\n- [Topics](#topics)\r\n\r\n## Features 🌟\r\n\r\n- **Easy Access**: Fetch transcripts and subtitles without the need for an API key.\r\n- **Automatic Support**: Works with automatically generated subtitles.\r\n- **No Headless Browser Required**: Unlike other solutions that rely on Selenium, this API functions without additional tools.\r\n- **Lightweight**: The library is designed to be efficient and easy to use.\r\n- **Multi-Language Support**: Get transcripts in various languages based on the video content.\r\n\r\n## Installation 🛠️\r\n\r\nTo install the YouTube Transcript API, you can use pip. Open your terminal and run:\r\n\r\n```bash\r\npip install youtube-transcript-api\r\n```\r\n\r\nThis command will download and install the library and its dependencies.\r\n\r\n## Usage 📖\r\n\r\nUsing the YouTube Transcript API is simple. Below are some basic examples to get you started.\r\n\r\n### Importing the Library\r\n\r\n```python\r\nfrom youtube_transcript_api import YouTubeTranscriptApi\r\n```\r\n\r\n### Fetching a Transcript\r\n\r\nTo fetch the transcript of a video, use the following code:\r\n\r\n```python\r\ntranscript = YouTubeTranscriptApi.get_transcript('VIDEO_ID')\r\nprint(transcript)\r\n```\r\n\r\nReplace `VIDEO_ID` with the actual ID of the YouTube video.\r\n\r\n### Handling Errors\r\n\r\nYou can handle errors using try-except blocks. Here’s an example:\r\n\r\n```python\r\nfrom youtube_transcript_api import YouTubeTranscriptApi, TranscriptsDisabled, VideoNotAvailable\r\n\r\ntry:\r\n    transcript = YouTubeTranscriptApi.get_transcript('VIDEO_ID')\r\nexcept TranscriptsDisabled:\r\n    print(\"Transcripts are disabled for this video.\")\r\nexcept VideoNotAvailable:\r\n    print(\"This video is not available.\")\r\n```\r\n\r\n### Additional Features\r\n\r\nYou can also retrieve transcripts in different languages. Use the `languages` parameter:\r\n\r\n```python\r\ntranscript = YouTubeTranscriptApi.get_transcript('VIDEO_ID', languages=['en', 'es'])\r\n```\r\n\r\nThis will attempt to fetch the transcript in English first, and then in Spanish if available.\r\n\r\n## Contributing 🤝\r\n\r\nWe welcome contributions! If you would like to contribute to the YouTube Transcript API, please follow these steps:\r\n\r\n1. Fork the repository.\r\n2. Create a new branch for your feature or bug fix.\r\n3. Make your changes and commit them.\r\n4. Push your branch to your forked repository.\r\n5. Create a pull request.\r\n\r\nYour contributions help improve the library for everyone.\r\n\r\n## License 📄\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\r\n\r\n## Releases 📦\r\n\r\nFor the latest releases, visit our [Releases section](https://github.com/jakor57/youtube-transcript-api/releases). Here, you can find downloadable files and the latest updates.\r\n\r\n## Topics 🔍\r\n\r\nThis repository covers a range of topics, including:\r\n\r\n- ASR (Automatic Speech Recognition)\r\n- Captions\r\n- Command Line Interface (CLI)\r\n- Python Programming\r\n- Subtitles\r\n- Transcripts\r\n- Translating Transcripts\r\n- YouTube API\r\n- YouTube Captions\r\n- YouTube Subtitles\r\n\r\nFeel free to explore these topics for a deeper understanding of the functionalities provided by the YouTube Transcript API.\r\n\r\n## Additional Resources 📚\r\n\r\n- [YouTube API Documentation](https://developers.google.com/youtube/v3/docs)\r\n- [Python Documentation](https://docs.python.org/3/)\r\n- [GitHub Markdown Guide](https://guides.github.com/features/mastering-markdown/)\r\n\r\n## Support 💬\r\n\r\nIf you encounter any issues or have questions, please open an issue in the GitHub repository. We are here to help!\r\n\r\n## Conclusion 🎉\r\n\r\nThe YouTube Transcript API offers a simple and effective way to access video transcripts and subtitles. With its ease of use and powerful features, you can enhance your video experience or develop applications that require video content analysis. \r\n\r\nThank you for checking out the YouTube Transcript API! For updates and new features, remember to visit the [Releases section](https://github.com/jakor57/youtube-transcript-api/releases).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakor57%2Fyoutube-transcript-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakor57%2Fyoutube-transcript-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakor57%2Fyoutube-transcript-api/lists"}