Skip to content

Playlist

GET/v1/youtube/playlist1 credit

Returns a playlist's title, owner, total video count and its videos.

01Query parameters

NameTypeDescription
playlist_idrequiredstringPlaylist id or playlist URL (e.g. `UUX6OQ3DkcsbYNE6H8uQQuVA`).
continuationTokenoptionalstringThe `continuationToken` from the previous page. Send it with the same `playlist_id`.

02Request

curl "https://api.scrapesocial.ai/v1/youtube/playlist?playlist_id=UUX6OQ3DkcsbYNE6H8uQQuVA" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/youtube/playlist?playlist_id=UUX6OQ3DkcsbYNE6H8uQQuVA

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "title": "Uploads from MrBeast",
  "owner": {
    "id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
    "name": "MrBeast",
    "url": "https://www.youtube.com/@MrBeast",
    "handle": "MrBeast"
  },
  "totalVideos": 1009,
  "videos": [
    {
      "id": "mND4T0lzg_g",
      "title": "How People Treat You Based on Subscribers",
      "thumbnail": "https://i.ytimg.com/vi/mND4T0lzg_g/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB3z_cZ71HPDxXkGlXMCLU5-ZGb6Q",
      "url": "https://www.youtube.com/watch?v=mND4T0lzg_g",
      "lengthText": "0:30",
      "lengthSeconds": 30,
      "channel": {
        "title": "MrBeast",
        "url": "https://www.youtube.com/@MrBeast"
      }
    },
    {
      "id": "RE3_PGwDwhw",
      "title": "Lose 150 Lbs Together, Win $250,000",
      "thumbnail": "https://i.ytimg.com/vi/RE3_PGwDwhw/hqdefault_custom_3.jpg?sqp=CLzt-NYG-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAwcBUhKZZYRerVurs4DTuiutSTrw",
      "url": "https://www.youtube.com/watch?v=RE3_PGwDwhw",
      "lengthText": "43:17",
      "lengthSeconds": 2597,
      "channel": {
        "title": "MrBeast",
        "url": "https://www.youtube.com/@MrBeast"
      }
    }
  ],
  "continuationToken": "CE8SPBILWkZvTkJ4cFhlbjQiGFVVWDZPUTNEa2NzYllORTZIOHVRUXVWQThO-gEQNThCRjI0OEY0MzBERTlDMxgCggEeUFQ6Q0U4aUVEWkRPRVpDTmtOR05qZzROVGsxTnpj"
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

About 79 videos per page; each page costs 1 credit. The first page has `title`, `owner`, `totalVideos` and `videos`; later pages only `videos` and `continuationToken`, which is null on the last page. An unknown playlist answers 404, a value that is not a playlist id or URL 400.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.