{"id":13858817,"url":"https://github.com/grosser/youtube_search","last_synced_at":"2025-09-30T06:30:57.043Z","repository":{"id":1749130,"uuid":"2575359","full_name":"grosser/youtube_search","owner":"grosser","description":"Search youtube via this simple ruby api","archived":false,"fork":false,"pushed_at":"2015-01-12T00:39:08.000Z","size":309,"stargazers_count":67,"open_issues_count":3,"forks_count":23,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-16T10:16:53.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grosser.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-14T09:45:38.000Z","updated_at":"2022-11-09T03:25:19.000Z","dependencies_parsed_at":"2022-08-28T13:10:37.083Z","dependency_job_id":null,"html_url":"https://github.com/grosser/youtube_search","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosser%2Fyoutube_search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosser%2Fyoutube_search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosser%2Fyoutube_search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosser%2Fyoutube_search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grosser","download_url":"https://codeload.github.com/grosser/youtube_search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234710934,"owners_count":18875191,"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":[],"created_at":"2024-08-05T03:02:21.850Z","updated_at":"2025-09-30T06:30:51.739Z","avatar_url":"https://github.com/grosser.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"Search youtube via this simple ruby api\n\n - simple\n - no dependencies\n\nInstall\n=======\n\n```Bash\ngem install youtube_search\n```\n\n\nUsage\n=====\n\n```Ruby\nYoutubeSearch.search('boat').first\n{\n  \"title\"=\u003e\"Killer Whale Imitates Boat Motor\",\n  \"published\"=\u003e\"2011-09-29T15:30:43.000Z\",\n  \"id\"=\u003e\"http://gdata.youtube.com/feeds/api/videos/0b2U5r7Jwkc\",\n  \"video_id\"=\u003e\"0b2U5r7Jwkc\",\n  \"content\"=\u003e\"Top YouTube Videos on ...\",\n  \"updated\"=\u003e\"2011-10-13T20:20:54.000Z\",\n  \"raw\" =\u003e \u003cREXML::Element ... \u003e,\n  \"embeddable\" =\u003e true,\n  ...\n}\n```\n\nor raw json with `format: 'json'`\n\npage / per_page are supported\n\n```Ruby\nYoutubeSearch.search('cats', :page =\u003e 10, :per_page =\u003e 4).first\n```\n\nand [standard youtube options](http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Standard_parameters)\n\n```Ruby\nYoutubeSearch.search('cats', 'time' =\u003e 'this_week', 'orderby' =\u003e 'viewCount').first\n```\n\n### I can haz iframe:\n\n```Ruby\n# DISCLAIMER this iframe may steal 4 minutes of your life ;)\nid = YoutubeSearch.search('lolcats').first['video_id']\n%{\u003ciframe src=\"http://www.youtube.com/embed/#{id}\" width=640 height=480 frameborder=0\u003e\u003c/iframe\u003e}\n```\n\n### Searching playlists\n\n```Ruby\nYoutubeSearch.search_playlists('cats').first\n```\n\n### Retrieve videos by playlist ID\n\n```Ruby\nvideos = YoutubeSearch.playlist_videos('5F23DAF4BFE3D14C')\n```\n\nTODO\n====\n - more detailed xml parsing (you can fetch everything via 'raw', but more defaults would be nice)\n - parse dates into ruby objects\n\nAuthor\n======\n\n### [Contributors](https://github.com/grosser/youtube_search/contributors)\n - [David Gil](https://qoolife.com)\n - [Jim Jones](https://github.com/aantix)\n - [Sławek](https://github.com/sbogutyn)\n - [Alex Weidmann](https://github.com/effektz)\n - [David Gil](https://github.com/dgilperez)\n\n[Michael Grosser](http://grosser.it)\u003cbr/\u003e\nmichael@grosser.it\u003cbr/\u003e\nLicense: MIT\n[![Build Status](https://travis-ci.org/grosser/youtube_search.png)](https://travis-ci.org/grosser/youtube_search)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrosser%2Fyoutube_search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrosser%2Fyoutube_search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrosser%2Fyoutube_search/lists"}