# Youtube Scraper — Zapi reference > Dapatkan data profile, postingan, comment, dan lainnya dengan lengkap dan konsisten. **Base URL:** `https://api.zapi.ink` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zapi.ink/dashboard/keys. **Response envelope:** `{ content, message, errors }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zapi.ink/api/social-media/youtube-scraper - Endpoint catalog: https://zapi.ink/category/social-media - Concise index: https://zapi.ink/llms.txt - Full reference: https://zapi.ink/llms-full.txt --- ## Youtube Scraper **Category:** social-media · **Slug:** `youtube-scraper` **Detail page:** https://zapi.ink/api/social-media/youtube-scraper Dapatkan data profile, postingan, comment, dan lainnya dengan lengkap dan konsisten. **Tags:** social, youtube, scraper ### Get User Profile - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/profile/:channel` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `channel` | string | path | yes | Channel handle (@user), channel ID (UCxxx), atau full YouTube URL | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/profile/:channel" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/profile/:channel", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/profile/:channel", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json "{\"url\": \"https://www.youtube.com/@MrBeast\", \"title\": \"MrBeast\", \"avatar\": \"https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj\", \"banner\": \"https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\", \"handle\": \"@MrBeast\", \"rssUrl\": \"https://www.youtube.com/feeds/videos.xml?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA\", \"country\": \"PT\", \"keywords\": \"mrbeast6000 beast mrbeast Mr.Beast mr\", \"verified\": true, \"channelId\": \"UCX6OQ3DkcsbYNE6H8uQQuVA\", \"vanityUrl\": \"http://www.youtube.com/@MrBeast\", \"familySafe\": true, \"videoCount\": 982, \"description\": \"SUBSCRIBE FOR A COOKIE!\\\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!\\\nAccomplishments:\\\n- Raised $20,000,000 To Plant 20,000,000 Trees\\\n- Removed 30,000,000 pounds of trash from the ocean\\\n- Helped 2,000 people walk again\\\n- Helped 1,000 blind people see\\\n- Helped 1,000 deaf people hear\\\n- Built wells in Africa\\\n- Built and gave away 100 houses\\\n- Adopted every dog in a shelter (twice)\\\n- Given millions to charity\\\n- Started my own snack company Feastables\\\n- Started my own software company Viewstats\\\n- Gave away a private island (twice)\\\n- Gave away 1 million meals\\\n- I counted to 100k\\\n- Ran a marathon in the world's largest shoes\\\n- Survived 50 hours in Antarctica\\\n- Recreated Squid Game in real life\\\n- Created the largest competition show with 1000 people (Beast Games)\\\n- Gave $5,000,000 to one person\\\n\\\nTerms & Conditions of Current Sweepstakes: \\\nhttps://mrb.gg/bow-and-arrow\\\nhttps://bit.ly/MrB_Birthday_YT\\\nhttps://bit.ly/MrB_Cash_Giveaway\\\n\\\n\\\n\", \"subscriberText\": \"489M subscribers\", \"videoCountText\": \"982 videos\", \"subscriberCount\": 489000000}" ``` --- ### Get User Videos - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/videos/:channel` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `channel` | string | path | yes | Channel handle (@user), channel ID (UCxxx), atau full YouTube URL | | `tab` | enum(videos|shorts|streams) | query | no | Tab yang di-scrape. Default 'videos'. Cursor TIDAK kompatibel antar-tab | | `page` | number | query | no | Nomor halaman. Default 1, max 50. Per page ~30 video | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/videos/:channel?tab=videos&page=1" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/videos/:channel?tab=videos&page=1", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/videos/:channel?tab=videos&page=1", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "tab": "videos", "page": 1, "count": 30, "videos": [ { "url": "https://www.youtube.com/watch?v=AaMdXZMvT3w", "title": "Survive 30 Days On An Island With Your Ex, Win $250,000", "videoId": "AaMdXZMvT3w", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/AaMdXZMvT3w/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAfwDXsWdeKhhuSk9s8s1TnaZVv0Q", "viewCount": 65000000, "viewCountText": "65M views", "publishedTimeText": "6 days ago" }, { "url": "https://www.youtube.com/watch?v=6Zy5VLcEbZc", "title": "I Stranded 100 People In The Wilderness For $250,000", "videoId": "6Zy5VLcEbZc", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/6Zy5VLcEbZc/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDXMEvwxFyL_olBjmhazAn6BR96jw", "viewCount": 110000000, "viewCountText": "110M views", "publishedTimeText": "2 weeks ago" }, { "url": "https://www.youtube.com/watch?v=zRtGL0-5rg4", "title": "Last To Leave Grocery Store, Wins $250,000", "videoId": "zRtGL0-5rg4", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/zRtGL0-5rg4/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAG-ou5PizjilKG7ZXLg61ZkWF6-g", "viewCount": 140000000, "viewCountText": "140M views", "publishedTimeText": "1 month ago" }, { "url": "https://www.youtube.com/watch?v=DXVHmGoCTco", "title": "50 Streamers Fight for $1,000,000", "videoId": "DXVHmGoCTco", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/DXVHmGoCTco/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCOo6Lu-He-uJtcu8HYejBJjAkawA", "viewCount": 106000000, "viewCountText": "106M views", "publishedTimeText": "1 month ago" }, { "url": "https://www.youtube.com/watch?v=JFtlf8RoPZY", "title": "Trapped On An Island Until I Build A Boat", "videoId": "JFtlf8RoPZY", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/JFtlf8RoPZY/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB8zfvjM91iNh7b5FgbBgfpJi2gCQ", "viewCount": 125000000, "viewCountText": "125M views", "publishedTimeText": "2 months ago" }, { "url": "https://www.youtube.com/watch?v=AoN1K4c7VKE", "title": "Survive 30 Days Stranded With Your Ex, Win $250,000", "videoId": "AoN1K4c7VKE", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/AoN1K4c7VKE/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAIxfZycVtQCfCMBvJI2ykXGTkK5A", "viewCount": 124000000, "viewCountText": "124M views", "publishedTimeText": "2 months ago" }, { "url": "https://www.youtube.com/watch?v=5OLs1GWB4OA", "title": "I Built 10 Schools Around The World", "videoId": "5OLs1GWB4OA", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/5OLs1GWB4OA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCElg0QN--OQchoCNCONvsplGms2w", "viewCount": 65000000, "viewCountText": "65M views", "publishedTimeText": "3 months ago" }, { "url": "https://www.youtube.com/watch?v=9WEQts7b8Pw", "title": "Ages 1 - 100 Race For $250,000!", "videoId": "9WEQts7b8Pw", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/9WEQts7b8Pw/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDR7T1AN69eipviFYIENdovD6PWNQ", "viewCount": 113000000, "viewCountText": "113M views", "publishedTimeText": "3 months ago" }, { "url": "https://www.youtube.com/watch?v=pAnGwRiQ4-4", "title": "$1 vs $1,000,000,000 Futuristic Tech!", "videoId": "pAnGwRiQ4-4", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/pAnGwRiQ4-4/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBC9u06CDWh10EBWu7jIimoNZSY3A", "viewCount": 143000000, "viewCountText": "143M views", "publishedTimeText": "3 months ago" }, { "url": "https://www.youtube.com/watch?v=QJI0an6irrA", "title": "30 Celebrities Fight For $1,000,000!", "videoId": "QJI0an6irrA", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/QJI0an6irrA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC5QU6oWI0KN_-xQHuD0H2jKwGiNQ", "viewCount": 125000000, "viewCountText": "125M views", "publishedTimeText": "4 months ago" }, { "url": "https://www.youtube.com/watch?v=ZFoNBxpXen4", "title": "Survive 30 Days Trapped In The Sky, Win $250,000", "videoId": "ZFoNBxpXen4", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/ZFoNBxpXen4/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAaVahxiPm84L2HjnDnDCLezbrQ-w", "viewCount": 187000000, "viewCountText": "187M views", "publishedTimeText": "5 months ago" }, { "url": "https://www.youtube.com/watch?v=8bMh8azh3CY", "title": "100 Pilots Fight For A Private Jet", "videoId": "8bMh8azh3CY", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/8bMh8azh3CY/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLASZJffUcdvpY9eLlJXIE5eYBpKHw", "viewCount": 147000000, "viewCountText": "147M views", "publishedTimeText": "5 months ago" }, { "url": "https://www.youtube.com/watch?v=Ah_uuTwGOYU", "title": "World's Strongest Man Vs Robot", "videoId": "Ah_uuTwGOYU", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/Ah_uuTwGOYU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDzk2JzQAtN4WfALIHvhVfkEHZWiQ", "viewCount": 126000000, "viewCountText": "126M views", "publishedTimeText": "6 months ago" }, { "url": "https://www.youtube.com/watch?v=3RmOvxilbPM", "title": "100 People Vs World’s Biggest Trap!", "videoId": "3RmOvxilbPM", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/3RmOvxilbPM/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBPgyc2RUn5SbLtczgCoztzeMhA7A", "viewCount": 117000000, "viewCountText": "117M views", "publishedTimeText": "6 months ago" }, { "url": "https://www.youtube.com/watch?v=Oo9EbArcQ1c", "title": "I Saved 1,000 Animals From Dying", "videoId": "Oo9EbArcQ1c", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/Oo9EbArcQ1c/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAKvRjYa2ztaUHNMVBbkTL-AiSPRw", "viewCount": 193000000, "viewCountText": "193M views", "publishedTimeText": "6 months ago" }, { "url": "https://www.youtube.com/watch?v=oBXSvS2QKxU", "title": "100 Kids Vs World's Strongest Man!", "videoId": "oBXSvS2QKxU", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/oBXSvS2QKxU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB2ct5d_UO9blKrwp4MEA1b7SDS6Q", "viewCount": 174000000, "viewCountText": "174M views", "publishedTimeText": "7 months ago" }, { "url": "https://www.youtube.com/watch?v=F0OkwXKcPSE", "title": "Hi Me In 10 Years", "videoId": "F0OkwXKcPSE", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/F0OkwXKcPSE/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBycpW8aNKVbVVFg-rn5ZyNaoV3Fw", "viewCount": 61000000, "viewCountText": "61M views", "publishedTimeText": "7 months ago" }, { "url": "https://www.youtube.com/watch?v=zo7i8VTpfNM", "title": "How Much Would You Risk For $500,000?", "videoId": "zo7i8VTpfNM", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/zo7i8VTpfNM/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDuJbldXYVc4g5VzhGrAG6RiMWbVw", "viewCount": 133000000, "viewCountText": "133M views", "publishedTimeText": "7 months ago" }, { "url": "https://www.youtube.com/watch?v=4l97aNza_Zc", "title": "Survive 30 Days Chained To Your Ex, Win $250,000", "videoId": "4l97aNza_Zc", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/4l97aNza_Zc/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDHSELbFfzaC-mwHTJIXkMgeIRKew", "viewCount": 232000000, "viewCountText": "232M views", "publishedTimeText": "8 months ago" }, { "url": "https://www.youtube.com/watch?v=_AbFXuGDRTs", "title": "$1 vs $1,000,000,000 Nuclear Bunker!", "videoId": "_AbFXuGDRTs", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/_AbFXuGDRTs/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCbgvNE5R2tWR1o2gDxgLTWADMFXg", "viewCount": 170000000, "viewCountText": "170M views", "publishedTimeText": "8 months ago" }, { "url": "https://www.youtube.com/watch?v=TDv56whosPQ", "title": "Survive 100 Days In Prison, Win $500,000", "videoId": "TDv56whosPQ", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/TDv56whosPQ/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAunggiesF5IDBQnVm_VZQ0iVFGBQ", "viewCount": 157000000, "viewCountText": "157M views", "publishedTimeText": "9 months ago" }, { "url": "https://www.youtube.com/watch?v=Z4hVGCWH1Kc", "title": "2,000,000 People Get Clean Water For The First Time!", "videoId": "Z4hVGCWH1Kc", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/Z4hVGCWH1Kc/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCHHKcC19HF3E_0cSRPLXrNnbvYyg", "viewCount": 110000000, "viewCountText": "110M views", "publishedTimeText": "9 months ago" }, { "url": "https://www.youtube.com/watch?v=pzBi1nwDn8U", "title": "Survive 100 Days Trapped In A Private Jet, Keep It", "videoId": "pzBi1nwDn8U", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/pzBi1nwDn8U/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAuEYLA7MyZqOMC6nxk1moDNh4p8Q", "viewCount": 142000000, "viewCountText": "142M views", "publishedTimeText": "10 months ago" }, { "url": "https://www.youtube.com/watch?v=FWAdfuPpLOc", "title": "World's Fastest Car Vs Cheetah!", "videoId": "FWAdfuPpLOc", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/FWAdfuPpLOc/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBg6VDW1zppEIBdxCt_mwN53TqIjQ", "viewCount": 230000000, "viewCountText": "230M views", "publishedTimeText": "10 months ago" }, { "url": "https://www.youtube.com/watch?v=pe_ejTiIcSs", "title": "Lose 100 LBs, Win $250,000!", "videoId": "pe_ejTiIcSs", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/pe_ejTiIcSs/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD-0tP-A3AYTeV8-Q_SvByb1cjKJQ", "viewCount": 249000000, "viewCountText": "249M views", "publishedTimeText": "11 months ago" }, { "url": "https://www.youtube.com/watch?v=hTSaweR8qMI", "title": "$1 vs $500,000 Date", "videoId": "hTSaweR8qMI", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/hTSaweR8qMI/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDJ89V20cDFLNpP6g1aP9qnbExkdA", "viewCount": 182000000, "viewCountText": "182M views", "publishedTimeText": "11 months ago" }, { "url": "https://www.youtube.com/watch?v=DZIASl9q90s", "title": "Beat Neymar, Win $500,000", "videoId": "DZIASl9q90s", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/DZIASl9q90s/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD28HJkOXjkxwABBM3sSFNNQG6Nxw", "viewCount": 159000000, "viewCountText": "159M views", "publishedTimeText": "11 months ago" }, { "url": "https://www.youtube.com/watch?v=-4GmbBoYQjE", "title": "I Survived 100 Hours In An Ancient Temple", "videoId": "-4GmbBoYQjE", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/-4GmbBoYQjE/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB2FwJ31sRq7Dl8jH7_36_Z2c7n8g", "viewCount": 135000000, "viewCountText": "135M views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=uyiG6uw-6pA", "title": "Would You Risk Drowning for $500,000?", "videoId": "uyiG6uw-6pA", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/uyiG6uw-6pA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBXVU0RFPfzUyl1fM1L4_gx3R0SDA", "viewCount": 211000000, "viewCountText": "211M views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=figrl0aOULs", "title": "Click This Video To Feed 1 Person", "videoId": "figrl0aOULs", "duration": 0, "thumbnail": "https://i.ytimg.com/vi/figrl0aOULs/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBw2NhfbHvXwYLXbCx5xrkYpi_FBA", "viewCount": 77000000, "viewCountText": "77M views", "publishedTimeText": "1 year ago" } ], "channel": { "title": "MrBeast", "handle": "@MrBeast", "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA" }, "hasMore": true, "nextPage": 2 } ``` --- ### Get Video Detail - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/video/:id` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `id` | string | path | no | Video ID (11 chars) atau full YouTube URL (watch, shorts, youtu.be) | | `url` | string | query | no | Full YouTube video URL — alias untuk id (dipakai bulk async scraping) | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/video/:id?url=VALUE" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/video/:id?url=VALUE", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/video/:id?url=VALUE", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json "{\"url\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\", \"tags\": [], \"title\": \"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)\", \"isLive\": false, \"channel\": {\"name\": \"Rick Astley\", \"avatar\": \"https://yt3.ggpht.com/MOWpaiGJdgN4aKMI-NGQLL4jMVP3aDORlQpOBWooi0GSE2TGt4_9ncyepk1pCh-yWQ795AhPbw=s176-c-k-c0x00ffffff-no-rj\", \"handle\": \"@RickAstleyYT\", \"channelId\": \"UCuAXFkgsw1L7xaCfnd5JJOw\", \"subscriberCount\": 4500000, \"subscriberCountText\": \"4.5M subscribers\"}, \"videoId\": \"dQw4w9WgXcQ\", \"captions\": [{\"name\": \"English\", \"language\": \"en\", \"isAutoGenerated\": false}, {\"name\": \"English (auto-generated)\", \"language\": \"en\", \"isAutoGenerated\": true}, {\"name\": \"German (Germany)\", \"language\": \"de-DE\", \"isAutoGenerated\": false}, {\"name\": \"Japanese\", \"language\": \"ja\", \"isAutoGenerated\": false}, {\"name\": \"Portuguese (Brazil)\", \"language\": \"pt-BR\", \"isAutoGenerated\": false}, {\"name\": \"Spanish (Latin America)\", \"language\": \"es-419\", \"isAutoGenerated\": false}], \"category\": \"Music\", \"duration\": 213, \"keywords\": [\"rick astley\", \"Never Gonna Give You Up\", \"nggyu\", \"never gonna give you up lyrics\", \"rick rolled\", \"Rick Roll\", \"rick astley official\", \"rickrolled\", \"Fortnite song\", \"Fortnite event\", \"Fortnite dance\", \"fortnite never gonna give you up\", \"rick roll\", \"rickrolling\", \"rick rolling\", \"never gonna give you up\", \"80s music\", \"rick astley new\", \"animated video\", \"rickroll\", \"meme songs\", \"never gonna give u up lyrics\", \"Rick Astley 2022\", \"never gonna let you down\", \"animated\", \"rick rolls 2022\", \"never gonna give you up karaoke\"], \"isPrivate\": false, \"likeCount\": 19111621, \"thumbnail\": \"https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp\", \"viewCount\": 1775242717, \"hasCaption\": true, \"isUnlisted\": false, \"uploadDate\": \"2009-10-24T23:57:33-07:00\", \"description\": \"The official video for “Never Gonna Give You Up” by Rick Astley. \\\n\\\nNever: The Autobiography 📚 OUT NOW! \\\nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\\\nhttps://linktr.ee/rickastleynever\\\n\\\n“Never Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100. It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which was the lead-off single and lead track from Rick’s debut LP “Whenever You Need Somebody”. The album was itself a UK number one and would go on to sell over 15 million copies worldwide.\\\n\\\nThe legendary video was directed by Simon West – who later went on to make Hollywood blockbusters such as Con Air, Lara Croft – Tomb Raider and The Expendables 2. The video passed the 1bn YouTube views milestone on 28 July 2021.\\\n\\\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\\\n\\\nFollow Rick Astley:\\\nFacebook: https://RickAstley.lnk.to/FBFollowID \\\nTwitter: https://RickAstley.lnk.to/TwitterID \\\nInstagram: https://RickAstley.lnk.to/InstagramID \\\nWebsite: https://RickAstley.lnk.to/storeID \\\nTikTok: https://RickAstley.lnk.to/TikTokID\\\n\\\nListen to Rick Astley:\\\nSpotify: https://RickAstley.lnk.to/SpotifyID \\\nApple Music: https://RickAstley.lnk.to/AppleMusicID \\\nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \\\nDeezer: https://RickAstley.lnk.to/DeezerID \\\n\\\nLyrics:\\\nWe’re no strangers to love\\\nYou know the rules and so do I\\\nA full commitment’s what I’m thinking of\\\nYou wouldn’t get this from any other guy\\\n\\\nI just wanna tell you how I’m feeling\\\nGotta make you understand\\\n\\\nNever gonna give you up\\\nNever gonna let you down\\\nNever gonna run around and desert you\\\nNever gonna make you cry\\\nNever gonna say goodbye\\\nNever gonna tell a lie and hurt you\\\n\\\nWe’ve known each other for so long\\\nYour heart’s been aching but you’re too shy to say it\\\nInside we both know what’s been going on\\\nWe know the game and we’re gonna play it\\\n\\\nAnd if you ask me how I’m feeling\\\nDon’t tell me you’re too blind to see\\\n\\\nNever gonna give you up\\\nNever gonna let you down\\\nNever gonna run around and desert you\\\nNever gonna make you cry\\\nNever gonna say goodbye\\\nNever gonna tell a lie and hurt you\\\n\\\n#RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo\", \"publishDate\": \"2009-10-24T23:57:33-07:00\", \"allowRatings\": true, \"isFamilySafe\": true, \"likeCountText\": \"19M\", \"availableCountries\": [\"AD\", \"AE\", \"AF\", \"AG\", \"AI\", \"AL\", \"AM\", \"AO\", \"AQ\", \"AR\", \"AS\", \"AT\", \"AU\", \"AW\", \"AX\", \"AZ\", \"BA\", \"BB\", \"BD\", \"BE\", \"BF\", \"BG\", \"BH\", \"BI\", \"BJ\", \"BL\", \"BM\", \"BN\", \"BO\", \"BQ\", \"BR\", \"BS\", \"BT\", \"BV\", \"BW\", \"BY\", \"BZ\", \"CA\", \"CC\", \"CD\", \"CF\", \"CG\", \"CH\", \"CI\", \"CK\", \"CL\", \"CM\", \"CN\", \"CO\", \"CR\", \"CU\", \"CV\", \"CW\", \"CX\", \"CY\", \"CZ\", \"DE\", \"DJ\", \"DK\", \"DM\", \"DO\", \"DZ\", \"EC\", \"EE\", \"EG\", \"EH\", \"ER\", \"ES\", \"ET\", \"FI\", \"FJ\", \"FK\", \"FM\", \"FO\", \"FR\", \"GA\", \"GB\", \"GD\", \"GE\", \"GF\", \"GG\", \"GH\", \"GI\", \"GL\", \"GM\", \"GN\", \"GP\", \"GQ\", \"GR\", \"GS\", \"GT\", \"GU\", \"GW\", \"GY\", \"HK\", \"HM\", \"HN\", \"HR\", \"HT\", \"HU\", \"ID\", \"IE\", \"IL\", \"IM\", \"IN\", \"IO\", \"IQ\", \"IR\", \"IS\", \"IT\", \"JE\", \"JM\", \"JO\", \"JP\", \"KE\", \"KG\", \"KH\", \"KI\", \"KM\", \"KN\", \"KP\", \"KR\", \"KW\", \"KY\", \"KZ\", \"LA\", \"LB\", \"LC\", \"LI\", \"LK\", \"LR\", \"LS\", \"LT\", \"LU\", \"LV\", \"LY\", \"MA\", \"MC\", \"MD\", \"ME\", \"MF\", \"MG\", \"MH\", \"MK\", \"ML\", \"MM\", \"MN\", \"MO\", \"MP\", \"MQ\", \"MR\", \"MS\", \"MT\", \"MU\", \"MV\", \"MW\", \"MX\", \"MY\", \"MZ\", \"NA\", \"NC\", \"NE\", \"NF\", \"NG\", \"NI\", \"NL\", \"NO\", \"NP\", \"NR\", \"NU\", \"NZ\", \"OM\", \"PA\", \"PE\", \"PF\", \"PG\", \"PH\", \"PK\", \"PL\", \"PM\", \"PN\", \"PR\", \"PS\", \"PT\", \"PW\", \"PY\", \"QA\", \"RE\", \"RO\", \"RS\", \"RU\", \"RW\", \"SA\", \"SB\", \"SC\", \"SD\", \"SE\", \"SG\", \"SH\", \"SI\", \"SJ\", \"SK\", \"SL\", \"SM\", \"SN\", \"SO\", \"SR\", \"SS\", \"ST\", \"SV\", \"SX\", \"SY\", \"SZ\", \"TC\", \"TD\", \"TF\", \"TG\", \"TH\", \"TJ\", \"TK\", \"TL\", \"TM\", \"TN\", \"TO\", \"TR\", \"TT\", \"TV\", \"TW\", \"TZ\", \"UA\", \"UG\", \"UM\", \"US\", \"UY\", \"UZ\", \"VA\", \"VC\", \"VE\", \"VG\", \"VI\", \"VN\", \"VU\", \"WF\", \"WS\", \"YE\", \"YT\", \"ZA\", \"ZM\", \"ZW\"]}" ``` --- ### Get Video Comments - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/comments/:id` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `id` | string | path | yes | Video ID (11-char) atau full YouTube URL | | `page` | number | query | no | Nomor halaman. Default 1, max 50. Per page ~20 komentar | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/comments/:id?page=1" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/comments/:id?page=1", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/comments/:id?page=1", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "count": 20, "hasMore": true, "videoId": "dQw4w9WgXcQ", "comments": [ { "author": { "avatar": "https://yt3.ggpht.com/3s6evpqAiDU9tQR4sC2siJippbH2RWVPnwHgyl4V0th2iuQz0VDQZbUhQBGmsxLYo-mjG6TqZQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCBR8-60-B28hp2BmDPdntcQ", "isCreator": false, "isVerified": true, "displayName": "@YouTube" }, "content": "can confirm: he never gave us up", "commentId": "Ugzge340dBgB75hWBm54AaABAg", "likeCount": 243000, "replyCount": 1000, "replyLevel": 0, "likeCountText": "243K", "replyCountText": "1K", "publishedTimeText": "1 year ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_l_cdb12iEvfbconWqKW89iqSh69jL-NdmjZIuXCkr9Yg3iLzKFdf8SG32lYrR3AmrM9A=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCc4EU495shmfFPGMtoth0cQ", "isCreator": false, "isVerified": false, "displayName": "@Sarah-x3j3z" }, "content": "🇫🇷🇫🇷🇫🇷🇫🇷🇫🇷🍾🥂🎄💕😍👍🏻👌🏻🥰🥰🥰🥳😘🇫🇷🇫🇷🇫🇷", "commentId": "Ugz_UZfwxElvwKkPfkl4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "2 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/WG1XhzebAPM055lM0LsEgtxNxirp0UMkvCQ0Us399-evEbG-K53F8pdUxwlq9dbleDo_qEfshMM=s88-c-k-c0x00ffffff-no-rj", "channelId": "UC2icBtNHVnZL591ZoIpTrMQ", "isCreator": false, "isVerified": false, "displayName": "@Hishamisgoodturbotrubo" }, "content": "Get rickrolled", "commentId": "UgxVqhrNBP9d4R0Zi_x4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "6 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/05jLPuZhjgwZCr0oNl9Wtx8zVSHi3ejdZVdddKFycyGClM-uuFfmsUGeeJPUeoOuZABnyKWVoZ8=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCBoyZiko00p7l3a-58FItag", "isCreator": false, "isVerified": false, "displayName": "@kaliellileo" }, "content": "YOU RICK ROLLED US", "commentId": "Ugy4sKV1Cwg2ICyPrUh4AaABAg", "likeCount": 1, "replyCount": 0, "replyLevel": 0, "likeCountText": "1", "publishedTimeText": "28 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/IO3pA-tkr2vgpCQYY3n6a7mWTlnmOczM3dCjSpgSVflWW_gAruonmle7DoYQzlEM8ChhdaPppg=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCHTyWVXc9MSoa-HeJEYgaRA", "isCreator": false, "isVerified": false, "displayName": "@Caatsan67" }, "content": "Mmml", "commentId": "UgzR-Rqh7E3luffN9CV4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "30 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/mhHx6IA3NnL2IiCsDqjMHRfpkP2-ULkqExeMwH_Z_Cj1oDf88hSH-KJXYLuO2BeKMpuO9I4mPQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCvzzo1xpaDkqsN2GLN0dzvg", "isCreator": false, "isVerified": false, "displayName": "@talkingthomas8593" }, "content": "Qr code got me lol", "commentId": "UgwQDnwbF8p7HOteADd4AaABAg", "likeCount": 1, "replyCount": 0, "replyLevel": 0, "likeCountText": "1", "publishedTimeText": "36 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/d41K7CSzWA4zEMzWt-GA1TveRtLpCaENLPVpS5lAnEVXPckhuN2rhWV6NiwYmrSWRwwueEqUXQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCaZ2DLlcWIhDNsUHBs3HC8w", "isCreator": false, "isVerified": false, "displayName": "@LennyBayark" }, "content": "Who is watchinhg this RIGHT NOW???", "commentId": "Ugwv26AdyYHM0aM6iIZ4AaABAg", "likeCount": 6, "replyCount": 2, "replyLevel": 0, "likeCountText": "6", "replyCountText": "2", "publishedTimeText": "59 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_ncYpD_cxZnjNjiKkdFQw19OFJP7K5nT5P2umAYzDptQa8=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCA_jgimnNd_asKH_DURQVJQ", "isCreator": false, "isVerified": false, "displayName": "@roxannebjork3072" }, "content": "0:43", "commentId": "UgwCl8i29td0fEVbrwV4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/hiUtMSJUUUeTtCaBqLJT6KCPWpFdxIGpe3wVJqAMEkrWNv5iTQz9HQzx95UaX7KNnzrPIZF3yA=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCXjUq6IFT6geTVWfNOO8rKw", "isCreator": false, "isVerified": false, "displayName": "@LAE_gene" }, "content": "✨✨✨", "commentId": "UgwVkxQBobQxR2YZQJ14AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/-ILwqblTNcGdhcgN7bmIgKSoj8mcIaoi-jWXkQPzn78oiG3JvCUzjnulGQX38Ncc03r0v3WLmQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCarvjjvj9LLV0wtZzmPMAmw", "isCreator": false, "isVerified": false, "displayName": "@editzone1912" }, "content": "playing gta 6 secret dev realese", "commentId": "UgyPFmXggS3ITSCYUy94AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_kQb66_r-tkBEn2iZDFhJ2GG4iHBNhSUfLuMmYXH4kfLpzB1eRO46tXEjwegiB59Ph2gg=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCjR6iQ3WOBFZYd-oJN0yyow", "isCreator": false, "isVerified": false, "displayName": "@RichaVarma-u7k" }, "content": "BRO 1.7 BILLION VIEWS!!! Almost half of the population got rickrolled", "commentId": "UgzGwD1NA99mdkU8dtd4AaABAg", "likeCount": 1, "replyCount": 0, "replyLevel": 0, "likeCountText": "1", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_micT7kbo7wGUsp85emx0PmXz1M-FHvUCN50ZO9X4E=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCI1srI2Qsv47oU4QPhzY_tQ", "isCreator": false, "isVerified": false, "displayName": "@snowman15876" }, "content": "Gotta Rockroll my friend in the car XD", "commentId": "UgxH0-TmyegBZxwpoch4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/OWoxdTEnQVxdvmFHayv4SqXZHBFR7VP8zQ4UoaROdF92jau-mm6uzFQJcacWx2auNjReWIlqZQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCqkm-5OggP6y55bObdGO60g", "isCreator": false, "isVerified": false, "displayName": "@UtikRatna-e4e" }, "content": "1billion", "commentId": "Ugw9gdmloHpbfrodtSR4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/EsscfnMu1u3sWXU7uuZ-XEi3rVvn7fKDj1oevjUoesxi5BZhyr1OdHbM8tNPi-yDLy6RXVT5GQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCYnOHxHevsisSAhYDB7df6w", "isCreator": false, "isVerified": false, "displayName": "@Yeshey_tats" }, "content": "Trying to see if you get likes on this video", "commentId": "Ugx5-a2ZUX0QI7kHNIN4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "1 hour ago" }, { "author": { "avatar": "https://yt3.ggpht.com/jlaC8SQOz7I_NhoRd-3P6rvW0Lq2I9mKLBSdhOhMSP3FPqqiQDPCpuU9_72s95p9JXkZch7nSi8=s88-c-k-c0x00ffffff-no-rj", "channelId": "UC3-oIgX0SaphngUzLkdAtoQ", "isCreator": false, "isVerified": false, "displayName": "@qpmo" }, "content": "I just got rickrolled", "commentId": "UgzhJ7y5HsoJWULKXfx4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "2 hours ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_m1cbj27Udj_IzaHVE-Fhcp-WtCXxc0bEwFgMg0QYumWa2vmOshuFn0vHmaiORDL2UjwA=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCkZkRrpxT16HlS5maNHEXLg", "isCreator": false, "isVerified": false, "displayName": "@snoopyfan804" }, "content": "i got rick rolled by chat gpt", "commentId": "UgzEgF5Bez_qHYGzpXp4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "2 hours ago" }, { "author": { "avatar": "https://yt3.ggpht.com/IEb0kKWjLrFQyog5APABtSVkk3qhpIoUpcNLDlbtvseeHkbArPVxDK6fW7kcJlwmW0vWr86Qnw=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCp2vSO3pwD1im6LhEHHGS9g", "isCreator": false, "isVerified": false, "displayName": "@AmaraldeSouzaJorge" }, "content": "Voz perfeita som sensacional sem palavras", "commentId": "Ugz_mpOOOVAdSQzN2Ht4AaABAg", "likeCount": 1, "replyCount": 1, "replyLevel": 0, "likeCountText": "1", "replyCountText": "1", "publishedTimeText": "3 hours ago" }, { "author": { "avatar": "https://yt3.ggpht.com/aHrX6MpI-MIGyiSR6LNoeChTWd9rlCzvkUT0EWTAPT2WSSVLKGumIsQU3OGt-QKvPPUNayRw=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCgMGYbae__XhLuWMBs5neAQ", "isCreator": false, "isVerified": false, "displayName": "@Claude-the-gta3" }, "content": "Anyone here today?", "commentId": "Ugyi0ooJsM4s55KPAF14AaABAg", "likeCount": 0, "replyCount": 1, "replyLevel": 0, "likeCountText": " ", "replyCountText": "1", "publishedTimeText": "3 hours ago" }, { "author": { "avatar": "https://yt3.ggpht.com/gKluJ8NAxqJHisylKO5mgtgcT9rCixUJHprOWHWhVwvtafvdGzRNvHKoHCDpvTaxVpp-XI9FOi4=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCT2uEqjz9NBqmkU7v4IxcRg", "isCreator": false, "isVerified": false, "displayName": "@spookys1695" }, "content": "Ok whatever nemesis", "commentId": "UgzcO5qpieCHuAcJx9V4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "3 hours ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_km-AjkdAQMZSGPfv2bgM1FsQLpvj8IvPI4HJDaN0JaX6Q=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCdk-Pf5ZG4gDJpwy8gMzCLQ", "isCreator": false, "isVerified": false, "displayName": "@Z0MBUSTER" }, "content": "At this point, the whole planet got rick rolled at least once :face-purple-crying:", "commentId": "UgwGOQWR2mQtEvqmhr54AaABAg", "likeCount": 1, "replyCount": 2, "replyLevel": 0, "likeCountText": "1", "replyCountText": "2", "publishedTimeText": "4 hours ago" } ], "nextPage": 2 } ``` --- ### Search Cari video, channel, atau playlist di YouTube. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/search` - **Cache TTL:** 900s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `query` | string | query | yes | Search terms | | `type` | enum(videos|channels|playlists) | query | no | Result type. Default videos — an unfiltered search mixes shelves and returns an uneven count per page | | `sort` | enum(relevance|viewCount) | query | no | Ordering. Default relevance | | `gl` | string | query | no | Two-letter country code. Changes ranking and locale text | | `hl` | string | query | no | Interface language code | | `page` | number | query | no | Page number. Default 1 — each page past the first costs one extra upstream round | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/search?query=lofi%20hip%20hop&type=videos&sort=relevance&gl=ID&hl=id&page=1" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/search?query=lofi%20hip%20hop&type=videos&sort=relevance&gl=ID&hl=id&page=1", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/search?query=lofi%20hip%20hop&type=videos&sort=relevance&gl=ID&hl=id&page=1", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "sort": "relevance", "type": "videos", "count": 20, "items": [ { "url": "https://www.youtube.com/watch?v=n61ULEU7CO0", "title": "Best of lofi hip hop 2021 ✨ [beats to relax/study to]", "isLive": false, "channel": { "name": "Lofi Girl", "channelId": "UCSJ4gkVC6NrvII8umztf0Ow" }, "videoId": "n61ULEU7CO0", "duration": 22258, "thumbnail": "https://i.ytimg.com/vi/n61ULEU7CO0/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAi4TCpAtbxLFIBULRlcZHudl1uFw", "viewCount": 56337339, "description": "Listen on Spotify, Apple music and more → https://fanlink.tv/BestofLofi2021 The new Lofi Girl compilation “Best of 2021” is out now ...", "durationText": "6:10:58", "viewCountText": "56,337,339 views", "publishedTimeText": "4 years ago" }, { "url": "https://www.youtube.com/watch?v=X4VbdwhkE10", "title": "lofi hip hop radio 📚 beats to relax/study to", "isLive": true, "channel": { "name": "Lofi Girl", "channelId": "UCSJ4gkVC6NrvII8umztf0Ow" }, "videoId": "X4VbdwhkE10", "thumbnail": "https://i.ytimg.com/vi/X4VbdwhkE10/hq720.jpg?v=6a212016&sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAgn4FKbiWr9gXiEhIf0t5Y6y9TuQ", "viewCount": 12776, "description": "Listen on Spotify, Apple music and more → https://lnk.to/lofi-hiphop-beats-to-relax-study-to02 | Lofi Girl on all social media ...", "viewCountText": "12,776 watching" }, { "url": "https://www.youtube.com/watch?v=CLeZyIID9Bo", "title": "Chill Lofi Mix [chill lo-fi hip hop beats]", "isLive": false, "channel": { "name": "Settle", "channelId": "UCkKT4qf-TcPFOmpqhTawrGA" }, "videoId": "CLeZyIID9Bo", "duration": 6292, "thumbnail": "https://i.ytimg.com/vi/CLeZyIID9Bo/hq720.jpg?sqp=-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhDIGQoZTAP&rs=AOn4CLCljfsoUy4QvdaH9IydXKSjwkcbgg", "viewCount": 34051654, "description": "YouTube Playlists: http://listen.settle.fm/youtube Listen on Spotify, Apple Music & more: https://listen.settle.fm/playlists Tracklist ...", "durationText": "1:44:52", "viewCountText": "34,051,654 views", "publishedTimeText": "3 years ago" }, { "url": "https://www.youtube.com/watch?v=zW5wpJY1rgQ", "title": "Night Drive ~ lofi hip hop mix ~ beats to chill / drive to", "isLive": false, "channel": { "name": "Mimi Lofi Chill", "channelId": "UCq9J_CUURRfbP7vm4VN_3xg" }, "videoId": "zW5wpJY1rgQ", "duration": 88623, "thumbnail": "https://i.ytimg.com/vi/zW5wpJY1rgQ/hq720.jpg?sqp=-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARh0IDoofzAP&rs=AOn4CLCo_wzeU3dgKXm6Neru50Mtcv7cZg", "viewCount": 5874085, "description": "Listen to PUEBLO VISTA // ⟪ pvmm ⟫ → https://pvmm.ffm.to/lofivibes → https://pvmm.ffm.to/chillbeats ...", "durationText": "24:37:03", "viewCountText": "5,874,085 views", "publishedTimeText": "3 years ago" }, { "url": "https://www.youtube.com/watch?v=Ark1hjhQMxs", "title": "Work Lofi - R&B That Sparks a Mood [rnb , lofi hiphop]", "isLive": false, "channel": { "name": "A Lofi Soul", "channelId": "UCinqfJ9-v5-HHqTskU2LlIw" }, "videoId": "Ark1hjhQMxs", "duration": 12184, "thumbnail": "https://i.ytimg.com/vi/Ark1hjhQMxs/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBvRVIWEs5OA4CpASbXxeKBbkLQJw", "viewCount": 463882, "description": "Spark a vibe and a mood with our smooth lofi vibes Become A Lofi Soul & Subscribe: ...", "durationText": "3:23:04", "viewCountText": "463,882 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=AMcVJmb5mvk", "title": "𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭 90s Japanese Lofi Hiphop ☕️Nostalgic Chill Vibes", "isLive": false, "channel": { "name": "LoFi Tokyo", "channelId": "UCkK2B6D3imy6EnpqfrYm-5A" }, "videoId": "AMcVJmb5mvk", "duration": 10938, "thumbnail": "https://i.ytimg.com/vi/AMcVJmb5mvk/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBWZSWUW3_Qmr1yC0R3SW7I17UmZg", "viewCount": 2580376, "description": "We're bringing you another soothing mix to help you relax, study, or just enjoy. Don't forget to like, share, and subscribe for more ...", "durationText": "3:02:18", "viewCountText": "2,580,376 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=CFGLoQIhmow", "title": "lofi hip hop mix 📚 beats to relax/study to (Part 1)", "isLive": false, "channel": { "name": "Lofi Girl", "channelId": "UCSJ4gkVC6NrvII8umztf0Ow" }, "videoId": "CFGLoQIhmow", "duration": 10241, "thumbnail": "https://i.ytimg.com/vi/CFGLoQIhmow/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDQAhqBsN-XhWCnIJ2Czmn_rm7Ldg", "viewCount": 8141191, "description": "Lofi Girl Limited Print → https://bit.ly/3Ytqf6o | Listen on Spotify, Apple music and more → https://fanlink.tv/lofigirl-music | New ...", "durationText": "2:50:41", "viewCountText": "8,141,191 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=m8WjnuhoeDg", "title": "remember when lofi hip-hop was smooth like this.", "isLive": false, "channel": { "name": "the bootleg boy 2", "channelId": "UCwkTfp14Sj7o6q9_8ADJpnA" }, "videoId": "m8WjnuhoeDg", "duration": 3722, "thumbnail": "https://i.ytimg.com/vi/m8WjnuhoeDg/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDrRsrjl9CqV_NisOXO4Ki2202JLQ", "viewCount": 508494, "description": "Listen on Spotify - https://sptfy.in/lofi All songs by Konteks, please support them here.", "durationText": "1:02:02", "viewCountText": "508,494 views", "publishedTimeText": "11 months ago" }, { "url": "https://www.youtube.com/watch?v=rhrCG0Vtx3g", "title": "High-Rise Urban Studio | Neo Soul, R&B Lofi Chill Mix 🌇", "isLive": false, "channel": { "name": "CraftCozy Room", "channelId": "UCClZiNLIqCqMAiLDLETO6Zw" }, "videoId": "rhrCG0Vtx3g", "duration": 7309, "thumbnail": "https://i.ytimg.com/vi/rhrCG0Vtx3g/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCJFyVfi33hBZ9gFKbQWIsaRSs_nQ", "viewCount": 1625691, "description": "Immerse yourself in our Neo Soul Lofi sanctuary, where warm vinyl beats meet panoramic city views. Spotify ...", "durationText": "2:01:49", "viewCountText": "1,625,691 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=Q74YUAxqs00", "title": "𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭 Tokyo Lo-fi Hiphop ☕️ Chill Beats for Study & Relax", "isLive": false, "channel": { "name": "LoFi Tokyo", "channelId": "UCkK2B6D3imy6EnpqfrYm-5A" }, "videoId": "Q74YUAxqs00", "duration": 10808, "thumbnail": "https://i.ytimg.com/vi/Q74YUAxqs00/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLApl2yd1suG4JBZqlPFe3etQkEMjg", "viewCount": 1687845, "description": "We're bringing you another soothing mix to help you relax, study, or just enjoy. Don't forget to like, share, and subscribe for more ...", "durationText": "3:00:08", "viewCountText": "1,687,845 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=UYwhisrQ-po", "title": "Work Lofi for Productivity & Focus - Smooth lofi hiphop/ neo soul beats", "isLive": false, "channel": { "name": "A Lofi Soul", "channelId": "UCinqfJ9-v5-HHqTskU2LlIw" }, "videoId": "UYwhisrQ-po", "duration": 10801, "thumbnail": "https://i.ytimg.com/vi/UYwhisrQ-po/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLA3V8_s8KN51gqlDB0oVsdvOx8mRQ", "viewCount": 882399, "description": "We're back with a new tape. Its some pure neo soul vibes in here. WE have been crafting more and more songs over the last few ...", "durationText": "3:00:01", "viewCountText": "882,399 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=BYTxPFj44uo", "title": "Why the rush? - lo-fi beats for work/study / cat jazz", "isLive": false, "channel": { "name": "chill chill journal", "channelId": "UCiC2wfbkgr8DU5uOQFz9OrQ" }, "videoId": "BYTxPFj44uo", "duration": 12679, "thumbnail": "https://i.ytimg.com/vi/BYTxPFj44uo/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBOmgKkQPMh1rsqdtzpHvXszjIbSA", "viewCount": 4974981, "description": "jazzhop #chillhop #citypop #rainlofi #lofirain #studymusic #studywithme #lofi #lofihiphop #lofibeats #beatstostudy #chillmusic ...", "durationText": "3:31:19", "viewCountText": "4,974,981 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=l_7e2ZamUpI", "title": "Chillhop Drive 90's - Lofi hip hop ~ Deep Focus, Relaxing Music | Chill Music", "isLive": false, "channel": { "name": "chilli music", "channelId": "UCS4iXNXsvlOHm7TuXLltreg" }, "videoId": "l_7e2ZamUpI", "duration": 86660, "thumbnail": "https://i.ytimg.com/vi/l_7e2ZamUpI/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDW1FeY2pDoiuBh6e0Kp6-FAF_TLw", "viewCount": 2599418, "description": "chilli music: https://open.spotify.com/playlist/5SDPei4m0IuABIYRsDJcBC?si=785a696916c04f3f Chillhop Drive 90's - Lofi hip hop ...", "durationText": "24:04:20", "viewCountText": "2,599,418 views", "publishedTimeText": "2 years ago" }, { "url": "https://www.youtube.com/watch?v=ESIBptJ5ewc", "title": "📻 90s LoFi Vibes - Chill-hop Mix to Study📚 | Work | Listen All Day🎧 | Relax", "isLive": false, "channel": { "name": "LoFi Tunes Escapes", "channelId": "UCF9bO6DsGvSIpe6OcSRqUvA" }, "videoId": "ESIBptJ5ewc", "duration": 4351, "thumbnail": "https://i.ytimg.com/vi/ESIBptJ5ewc/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC2RetlV4HhT7ppJFViL6noa9tiHA", "viewCount": 338081, "description": "Your all‑day soundtrack for focus, calm, and creativity. Step into a nostalgic soundscape with this 90s‑inspired LoFi chill‑hop mix, ...", "durationText": "1:12:31", "viewCountText": "338,081 views", "publishedTimeText": "3 months ago" }, { "url": "https://www.youtube.com/watch?v=ovS27OGTajs", "title": "Lofi Summer Vibes 🌊 Seaside Coffee & Relaxing Lofi for a Sense of Peace ☕ Hip Hop Beats", "isLive": false, "channel": { "name": "Little Lofi Cute", "channelId": "UCChP8U3LI7M3jAPsbKe0b1w" }, "videoId": "ovS27OGTajs", "duration": 12351, "thumbnail": "https://i.ytimg.com/vi/ovS27OGTajs/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCiUGXxPuGJeHZvDFLFPwlIIZy7Rw", "viewCount": 337269, "description": "Lofi Summer Vibes Seaside Coffee & Relaxing Lofi for a Sense of Peace ☕ Hip Hop Beats Hiii~ This is \"Little Lofi Cute\" ...", "durationText": "3:25:51", "viewCountText": "337,269 views", "publishedTimeText": "3 months ago" }, { "url": "https://www.youtube.com/watch?v=sF80I-TQiW0", "title": "90's Chill Lofi ☕️ Study Music Lofi Rain Chillhop Beats ☔️ Lofi Rain Playlist", "isLive": false, "channel": { "name": "The Japanese Town", "channelId": "UCuS_-bvOCh4W5Sy11Uf4H5A" }, "videoId": "sF80I-TQiW0", "duration": 42825, "thumbnail": "https://i.ytimg.com/vi/sF80I-TQiW0/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDvC6F5Dp3k6NUG05KMqn8XpBFQuQ", "viewCount": 26676330, "description": "The Japanese Town is dedicated for lofi beats & lofi rain music. We present relaxing rain Atmosphere and lofi ambience which is ...", "durationText": "11:53:45", "viewCountText": "26,676,330 views", "publishedTimeText": "Streamed 2 years ago" }, { "url": "https://www.youtube.com/watch?v=rPjez8z61rI", "title": "lofi hip hop radio – beats to sleep/study/relax to ☕", "isLive": true, "channel": { "name": "STEEZYASFUCK", "channelId": "UCsIg9WMfxjZZvwROleiVsQg" }, "videoId": "rPjez8z61rI", "thumbnail": "https://i.ytimg.com/vi/rPjez8z61rI/hqdefault.jpg?v=64cac91e&sqp=-oaymwEcCOADEI4CSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCqJVXJYGYq0yEiI9y3oMX8X-augg", "viewCount": 324, "description": "Lofi Hip-Hop Beats on Spotify: → https://fanlink.to/LofiHipHop Welcome to our 24/7 lofi hip-hop live stream. Good for relaxing ...", "viewCountText": "324 watching" }, { "url": "https://www.youtube.com/watch?v=1J4a9cT2lkw", "title": "Upbeat Lofi Mix ⚡️ Beats to Boost Your Energy & Focus", "isLive": false, "channel": { "name": "Lofi Shop 24h", "channelId": "UCuTj4kZoU6O2-VXmOGGKSsA" }, "videoId": "1J4a9cT2lkw", "duration": 16073, "thumbnail": "https://i.ytimg.com/vi/1J4a9cT2lkw/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAq4uxkshVII7dhQ5t7Qlr2LYUYqQ", "viewCount": 1081762, "description": "Let these smooth lofi hip hop vibes wash away any morning grogginess. Whether you're getting ready for work, sitting down to ...", "durationText": "4:27:53", "viewCountText": "1,081,762 views", "publishedTimeText": "9 months ago" }, { "url": "https://www.youtube.com/watch?v=BCxTQq0UiFs", "title": "Chill Lofi Beats Mix [chill lo-fi hip hop beats/Study & Relax Music] Vol. 32", "isLive": false, "channel": { "name": "Art Is Sound", "channelId": "UCl2qLIrrC5hc5LBf2oJYZpQ" }, "videoId": "BCxTQq0UiFs", "duration": 6175, "thumbnail": "https://i.ytimg.com/vi/BCxTQq0UiFs/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBp8ebPgLt4RmEjYGA7SmvEOP9JAA", "viewCount": 5792266, "description": "lofimusic #chill #lofi #lofihiphop # Chill Lofi Beats [chill lo-fi hip hop beats] Chill Drive - Lofi hip hop mix - Stress Relief, Relaxing ...", "durationText": "1:42:55", "viewCountText": "5,792,266 views", "publishedTimeText": "1 year ago" }, { "url": "https://www.youtube.com/watch?v=B6WnwbLY48Y", "title": "𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭 90s Japanese Lofi Hiphop 📼 Nostalgic Chill Vibes", "isLive": false, "channel": { "name": "LoFi Tokyo", "channelId": "UCkK2B6D3imy6EnpqfrYm-5A" }, "videoId": "B6WnwbLY48Y", "duration": 11046, "thumbnail": "https://i.ytimg.com/vi/B6WnwbLY48Y/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBtEPLG3SuzhIs4zoePz2NNlU8D9g", "viewCount": 760292, "description": "We're bringing you another soothing mix to help you relax, study, or just enjoy. Don't forget to like, share, and subscribe for more ...", "durationText": "3:04:06", "viewCountText": "760,292 views", "publishedTimeText": "1 year ago" } ], "query": "lofi hip hop", "total": 9365428, "hasMore": true, "nextPage": 2 } ``` --- ### Get Playlist Isi sebuah playlist YouTube. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/:playlistId` - **Cache TTL:** 1800s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `playlistId` | string | path | yes | Playlist ID, or a full YouTube playlist URL | | `page` | number | query | no | Page number. Default 1, 100 videos per page. Upstream stops offering a cursor after ~2 pages, so deeper pages come back empty | | `gl` | string | query | no | Two-letter country code | | `hl` | string | query | no | Interface language code | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/:playlistId?page=1&gl=US&hl=en" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/:playlistId?page=1&gl=US&hl=en", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/:playlistId?page=1&gl=US&hl=en", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "count": 10, "videos": [ { "url": "https://www.youtube.com/watch?v=DcKEPl-MpLA", "title": "How Google Search continues to improve results", "channel": "Google", "videoId": "DcKEPl-MpLA", "duration": 236, "thumbnail": "https://i.ytimg.com/vi/DcKEPl-MpLA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDHfSGJ1-2RQ0-n9ok-cve-4i_AIw", "durationText": "3:56", "viewCountText": "274K views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=0eKVizvYSUQ", "title": "How Google Search Works (in 5 minutes)", "channel": "Google", "videoId": "0eKVizvYSUQ", "duration": 316, "thumbnail": "https://i.ytimg.com/vi/0eKVizvYSUQ/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDsjWS28Il8orntjudOP2IpTr7YYg", "durationText": "5:16", "viewCountText": "20M views", "publishedTimeText": "6 years ago" }, { "url": "https://www.youtube.com/watch?v=WbSouimbtjU", "title": "How real people make Google Search better", "channel": "Google", "videoId": "WbSouimbtjU", "duration": 124, "thumbnail": "https://i.ytimg.com/vi/WbSouimbtjU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAGcwbVKoZhzUsbmjqno98lkW_O-w", "durationText": "2:04", "viewCountText": "239K views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=us9tUY_yN7Y", "title": "How Autocomplete works on Google Search", "channel": "Google", "videoId": "us9tUY_yN7Y", "duration": 115, "thumbnail": "https://i.ytimg.com/vi/us9tUY_yN7Y/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDwTAWFoLScB_Ez7xVfy8pEHnr0xw", "durationText": "1:55", "viewCountText": "154K views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=AhvkIr2pghE", "title": "How your location makes Google Search more helpful", "channel": "Google", "videoId": "AhvkIr2pghE", "duration": 190, "thumbnail": "https://i.ytimg.com/vi/AhvkIr2pghE/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAuqj8-2QrurjxRQmXzG2uv5beSRA", "durationText": "3:10", "viewCountText": "113K views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=TnhKznlJfTM", "title": "How Google keeps you safe on Search", "channel": "Google", "videoId": "TnhKznlJfTM", "duration": 110, "thumbnail": "https://i.ytimg.com/vi/TnhKznlJfTM/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCcgOT7jpNNeKV6GXK7GOs-d5B4Yg", "durationText": "1:50", "viewCountText": "39M views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=j0q_7SRcLWY", "title": "How ads appear in Google Search", "channel": "Google", "videoId": "j0q_7SRcLWY", "duration": 160, "thumbnail": "https://i.ytimg.com/vi/j0q_7SRcLWY/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCihCqbaJ5cyTm1DJPDpMmTzejFhA", "durationText": "2:40", "viewCountText": "98K views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=OJ_1BZ7ZrbA", "title": "How Google Search reacts in critical moments", "channel": "Google", "videoId": "OJ_1BZ7ZrbA", "duration": 107, "thumbnail": "https://i.ytimg.com/vi/OJ_1BZ7ZrbA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB_T938Tnpk2sIcte6sDlINuP165A", "durationText": "1:47", "viewCountText": "437K views", "publishedTimeText": "5 years ago" }, { "url": "https://www.youtube.com/watch?v=eQOqBidkcfw", "title": "How Google Search tackles misspelling | Search", "channel": "Google", "videoId": "eQOqBidkcfw", "duration": 108, "thumbnail": "https://i.ytimg.com/vi/eQOqBidkcfw/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBNjLc5SP8S3bjYym_5iUSo0PHF1Q", "durationText": "1:48", "viewCountText": "59K views", "publishedTimeText": "4 years ago" }, { "url": "https://www.youtube.com/watch?v=2lR8Fzays4I", "title": "How BERT helps Google Search understand language | Search", "channel": "Google", "videoId": "2lR8Fzays4I", "duration": 183, "thumbnail": "https://i.ytimg.com/vi/2lR8Fzays4I/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCbe1eDP2ojgLGBVYGoLjw4qpEIDw", "durationText": "3:03", "viewCountText": "77K views", "publishedTimeText": "4 years ago" } ], "hasMore": true, "nextPage": 2, "playlist": { "url": "https://www.youtube.com/playlist?list=PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r", "title": "How Search Works", "playlistId": "PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r", "viewCountText": "162,752 views", "videoCountText": "10 videos" } } ``` --- ### Search Within Channel Cari video di dalam satu channel YouTube. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/:channel` - **Cache TTL:** 900s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `channel` | string | path | yes | Channel handle (@user), channel ID (UCxxx), or a full YouTube URL | | `query` | string | query | yes | Search terms within that channel | | `gl` | string | query | no | Two-letter country code | | `hl` | string | query | no | Interface language code | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/:channel?query=chocolate&gl=US&hl=en" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/:channel?query=chocolate&gl=US&hl=en", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/:channel?query=chocolate&gl=US&hl=en", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "count": 0, "query": "chocolate", "videos": [], "channel": "UCX6OQ3DkcsbYNE6H8uQQuVA" } ``` --- ### Get Music Charts Papan chart musik YouTube untuk negara tempat server berada. Pakai playlistId-nya di endpoint playlist buat baca lagunya. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:youtube-scraper/music-charts` - **Cache TTL:** 1800s **Parameters:** _No parameters._ **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:youtube-scraper/music-charts" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/music-charts", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:youtube-scraper/music-charts", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "charts": [ { "url": "https://music.youtube.com/playlist?list=OLAK5uy_n7Ig_LAUbKE6_ZeQ1pwHmJcEhwX7BekBo", "title": "Trending 20 Indonesia", "subtitle": "Chart • YouTube Music", "thumbnail": "https://yt3.googleusercontent.com/BhSX1G3hoGzpiuZlyfGJ_JmzSv1nyOG2C_uw9n_IUid-jiNDvf_UvYVVPSpZ3GwAewiDnEpf1VU=s576", "playlistId": "OLAK5uy_n7Ig_LAUbKE6_ZeQ1pwHmJcEhwX7BekBo" }, { "url": "https://music.youtube.com/playlist?list=PL4fGSI1pDJn4lW6MJA2q37CfnraqAizqE", "title": "Daily Top Music Videos - Indonesia", "subtitle": "Chart • YouTube Music", "thumbnail": "https://yt3.googleusercontent.com/K4qIvSWDZp1EFDoXTdfZUduvWKrVXL4LBq-ldC_JaTNd0gKbj9i9RTcyU40sU3aK159HfFlDxGcp=s576", "playlistId": "PL4fGSI1pDJn4lW6MJA2q37CfnraqAizqE" }, { "url": "https://music.youtube.com/playlist?list=PL4fGSI1pDJn5QPpj0R4vVgRWk8sSq549G", "title": "Top 100 Music Videos Indonesia", "subtitle": "Chart • YouTube Music", "thumbnail": "https://yt3.googleusercontent.com/TfXZERTeKShtvTyI59SVIl3BEJvSbwdU5c_phyqKULSDMvTT-gXdfzBfcNRoRVZWFM9nTPX2eQ=s576", "playlistId": "PL4fGSI1pDJn5QPpj0R4vVgRWk8sSq549G" } ], "country": "Indonesia", "chartCount": 3 } ``` --- _Generated: 2026-09-25T14:34:36.555Z_