YouTube

Retrieve the playlists tab for a YouTube channel

Lists the playlists on a YouTube channel's Playlists tab. id accepts a channel id, @handle, /c or /user path, or a full channel URL. Each item has its playlist id, title, video count, thumbnail and URL. Pass the returned continuation_token back as continuation_token to get the next page.

get/youtube/channel/{id}/playlists

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/youtube/channel/{id}/playlists
  • Auth: API key in header x-api-key

Path parameters

idstring required

Channel ID, @handle, /c path, /user path, or full YouTube channel URL

Query parameters

continuation_tokenstring

Pagination token returned by a previous request

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "channel_id": "UCXZCJLdBC09xxGZ6gcdrc6A",
    "channel_title": "OpenAI",
    "channel_url": "https://www.youtube.com/@OpenAI",
    "continuation_token": "NEXT_TOKEN",
    "handle": "@OpenAI",
    "items": [
      {
        "badges": [
          "HD",
          "CC"
        ],
        "channel_id": "UCXZCJLdBC09xxGZ6gcdrc6A",
        "channel_thumbnail": "https://yt3.ggpht.com/example=s68-c-k-c0x00ffffff-no-rj",
        "channel_title": "OpenAI",
        "description_snippet": "A concise walkthrough of GPT features.",
        "duration": "12:34",
        "duration_seconds": 754,
        "handle": "@OpenAI",
        "playlist_id": "PL1234567890abcdef",
        "position": 1,
        "published_text": "2 days ago",
        "short_view_count": "123K views",
        "subscriber_count": "1.93M subscribers",
        "thumbnail": "https://i.ytimg.com/vi/abc123/hq720.jpg",
        "title": "ChatGPT Explained",
        "type": "video",
        "url": "https://www.youtube.com/watch?v=abc123",
        "video_count": "9 lessons",
        "video_id": "abc123xyz89",
        "view_count": "123,456 views"
      }
    ],
    "query": "gpt",
    "thumbnail": "https://yt3.googleusercontent.com/example=s176-c-k-c0x00ffffff-no-rj"
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.