Sources › Social media › Youtube › Get Playlist

Youtube Playlist API

Isi sebuah playlist YouTube.

YoutubeGET /playlistAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/:playlistId

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 30 minutes.

Parameters

NameTypeInRequiredDescription
playlistIdstringpathYesPlaylist ID, or a full YouTube playlist URL Example: PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r
pagenumberqueryNoPage number. Default 1, 100 videos per page. Upstream stops offering a cursor after ~2 pages, so deeper pages come back empty Example: 1
glstringqueryNoTwo-letter country code Example: US
hlstringqueryNoInterface language code Example: en

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r?page=1&gl=US&hl=en" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r?page=1&gl=US&hl=en", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r",
    params={"page":"1","gl":"US","hl":"en"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "social-media:youtube-scraper",
  "data": {
    "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"
    }
  },
  "timestamp": "2026-05-27T13:36:09Z"
}

Frequently asked questions

How do I call the Youtube Playlist API?

Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/playlist/PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r with your Zapi key in the x-api-key header. Parameters — required: playlistId; optional: page, gl, hl. The response is JSON in the { project, data, timestamp } envelope.

What does the Youtube Playlist API return?

Isi sebuah playlist YouTube. The example response has the fields page, count, videos, hasMore, nextPage, playlist. Each item in videos has fields such as url, title, channel, videoId, duration, thumbnail, durationText, viewCountText.

Is the Youtube Playlist API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Youtube Playlist API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "youtube-scraper" and endpoint "playlist".

What other Youtube API endpoints are there?

It has 12 endpoints. Besides Get Playlist: Get User Profile, Get User Videos, Get Video Detail, Get Video Comments, Search, Search Within Channel, and 5 more.