{"id":14979840,"url":"https://github.com/nstack-in/youtube_api","last_synced_at":"2025-04-30T15:23:42.648Z","repository":{"id":43780849,"uuid":"132738283","full_name":"nstack-in/youtube_api","owner":"nstack-in","description":"This Plugin will help you in fetching data from Youtube. You just need YOUTUBE API KEY.","archived":false,"fork":false,"pushed_at":"2024-03-19T12:33:23.000Z","size":1098,"stargazers_count":55,"open_issues_count":16,"forks_count":53,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T15:23:37.012Z","etag":null,"topics":["flutter","flutter-plugins","playlist","video","youtube-api","youtube-search"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstack-in.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-09T10:05:39.000Z","updated_at":"2024-09-05T06:53:23.000Z","dependencies_parsed_at":"2024-06-21T15:36:10.036Z","dependency_job_id":"5d1af846-0da8-4788-b461-7e083fdf8483","html_url":"https://github.com/nstack-in/youtube_api","commit_stats":{"total_commits":48,"total_committers":9,"mean_commits":5.333333333333333,"dds":0.25,"last_synced_commit":"e462568db08d850159e32e371f28d0894f8c4bf8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstack-in%2Fyoutube_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstack-in%2Fyoutube_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstack-in%2Fyoutube_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstack-in%2Fyoutube_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstack-in","download_url":"https://codeload.github.com/nstack-in/youtube_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251729844,"owners_count":21634295,"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":["flutter","flutter-plugins","playlist","video","youtube-api","youtube-search"],"created_at":"2024-09-24T14:00:45.947Z","updated_at":"2025-04-30T15:23:42.611Z","avatar_url":"https://github.com/nstack-in.png","language":"Dart","readme":"# YouTube API Client (youtube_api_client)\n\nForked (all restructured and improved) from [youtube_api](https://pub.dartlang.org/packages/youtube_api)\n\nA Flutter plugin for fetching interacting with YouTube Server to fetch data using API. Supports iOS and Android.\n\n## Features:\n\n- Search Video, Playlist, Channel on YouTube (query by keywords or by ID)\n- Get Trending Videos based on region code.\n\n## Usage\n\nTo use this plugin, add `youtube_api_client` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).\n\n[Complete Example Code](https://pub.dartlang.org/packages/youtube_api_client#-example-tab-)\n\n### Example\n\n```dart\nstatic String key = \"YOUR_API_KEY\";\nfinal youtube = YoutubeApi(_key);\nList\u003cApiResult\u003e result = [];\n```\n\nSearch for videos, channels and playlists\n\n```dart\nString query = \"Flutter\";\nresult = await youtube.search(query);\n// data which are available in result is typed as in the example shown below\n```\n\nBy default the search options are like the following:\n\n```dart\nSearchOptions options = const SearchOptions(\n      type: ResultType.values,\n      order: Order.relevance,\n      videoDuration: VideoDuration.any,\n    )\n```\n\nBut you can customize them changing the parameter options. For example, if you want to get only results for channels, you can specify like so:\n\n```dart\nSearchOptions(type: ResultType.channel)\n```\n\nTo get Trending videos in your Country-\n\n```dart\nregionCode='YOUR_COUNTRY_REGION_CODE(apha-2)';\nresult = await youtube.getTrends(regionCode);\n//make sure you assign alpha-2 region code\n```\n\nTo get results by id use `searchVideosById`, `searchChannelsById`, and `searchPlaylistsById`.\n\n```dart\nresult = await youtube.searchVideosById(idList);\n```\n\n[You can find your Country Region Code here](https://www.iso.org/obp/ui/#search/code/)\n\nBy default, it retrieves only the \"snippet\" data, which has enough information for most of the cases.\n\nFor example the snippet for a video contains:\n\n1. title (String)\n2. description (String)\n3. publish date (DateTime)\n4. channel ID (String)\n5. channel title (String)\n6. thumbnails (Map\u003cThumbnailResolution, Thumbnail\u003e - custom classes)\n7. video category (Category - enum)\n8. tags (List\u003cString\u003e)\n9. default language (String)\n10. defaultAudioLanguage (String)\n11. live broadcast content (LiveBroadcastContent - enum)\n\nIf you need more information from the API, you can add other parts in the query. For now it has only the part \"snippet\" and \"content details\" (containing: duration, dimension, definition, caption, licensed content, and projection). The original API has lots more of information, so you are welcome to help implementing those making pull requests.\n\n## Motivation\n\nThe original package seems to be abandoned. I improved a lot its code, making it more typed, and added more features.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstack-in%2Fyoutube_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstack-in%2Fyoutube_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstack-in%2Fyoutube_api/lists"}