{"id":19509579,"url":"https://github.com/raspi/youtubeapi","last_synced_at":"2026-05-15T04:33:12.345Z","repository":{"id":177653316,"uuid":"660712354","full_name":"raspi/youtubeapi","owner":"raspi","description":"YouTube REST API client for Go","archived":false,"fork":false,"pushed_at":"2023-08-07T16:00:30.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T11:42:21.662Z","etag":null,"topics":["go","golang","golang-library","google","google-api","rest-api","youtube","youtube-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raspi.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":"2023-06-30T16:46:09.000Z","updated_at":"2023-07-27T01:09:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfeda401-edab-4bf3-9362-326677c1d485","html_url":"https://github.com/raspi/youtubeapi","commit_stats":null,"previous_names":["raspi/youtubeapi"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fyoutubeapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fyoutubeapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fyoutubeapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fyoutubeapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raspi","download_url":"https://codeload.github.com/raspi/youtubeapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761105,"owners_count":19853255,"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":["go","golang","golang-library","google","google-api","rest-api","youtube","youtube-api"],"created_at":"2024-11-10T23:12:33.727Z","updated_at":"2026-05-15T04:33:07.310Z","avatar_url":"https://github.com/raspi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# youtubeapi\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/raspi/youtubeapi?style=for-the-badge)\n![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/raspi/youtubeapi?style=for-the-badge)\n[![Go Report Card](https://goreportcard.com/badge/github.com/raspi/youtubeapi)](https://goreportcard.com/report/github.com/raspi/youtubeapi)\n\n\nYouTube REST API v3 client for Go. \nFor searching and getting details of YouTube videos, channels and playlists.\n\n## Currently implemented\n\n* Video details\n* Channel details\n* Search\n* Playlists\n\n## Example\n\n```go\nyt := youtubeapi.New(httpc, apiKey)\nitem, err := yt.GetVideo(`dQw4w9WgXcQ`)\nif err != nil {\n\tpanic(err)\n}\n\nfmt.Printf(`%v %v %v`, item.Snippet.ChannelID, item.Snippet.PublishedAt, item.Snippet.Title)\n\nch, err := yt.GetChannel(`UCuAXFkgsw1L7xaCfnd5JJOw`)\nif err != nil {\n\tpanic(err)\n}\n\nfmt.Printf(`%v %v %v`, ch.Snippet.PublishedAt, ch.Snippet.Title, ch.Snippet.Description)\n\ncustom := map[string]string{\n\t`regionCode`:        `US`,\n\t`relevanceLanguage`: `en`,\n}\n\nres, err := yt.Search(`never gonna give you up`, custom)\nif err != nil {\n\tpanic(err)\n}\n\nfmt.Printf(`%v`, res)\n```\n\n## References\n\n* https://developers.google.com/youtube/v3\n* [internal/video](internal/video) - https://developers.google.com/youtube/v3/docs/videos/list\n* [internal/channel](internal/channel) - https://developers.google.com/youtube/v3/docs/channels\n* [internal/search](internal/search) - https://developers.google.com/youtube/v3/docs/search/list\n* [internal/playlist](internal/playlist) - https://developers.google.com/youtube/v3/docs/playlists/list\n* [internal/playlistitem](internal/playlistitem) - https://developers.google.com/youtube/v3/docs/playlistItems/list\n* https://console.cloud.google.com/apis/api/youtube.googleapis.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspi%2Fyoutubeapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraspi%2Fyoutubeapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspi%2Fyoutubeapi/lists"}