Skip to Content

Profile Playlists

A channel's playlists, 30 a page.

GET
/v1/youtube/profile/playlists

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The channel's handle, with or without @.

channelId?string

The channel's id, instead of handle.

url?string

The channel's link, instead of either.

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.youtube.profilePlaylists({ handle: "LinusTechTips" });
Example Response
{  "data": [    {      "id": "PLXm3b2ZSqTsc",      "name": "Home Security",      "url": "https://www.youtube.com/playlist?list=PLXm3b2ZSqTsc",      "coverUrl": "https://i.ytimg.com/vi/skdOVaiRq1c/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLD7odfCefib_H5TOgZvBrxCaHJ-Sw",      "posts": 1,      "ext": {        "description": null,        "views": null,        "owner": null,        "updatedText": null,        "podcast": false      }    },    {      "id": "PLPXG0FHDlqWU",      "name": "Vibe Coding",      "url": "https://www.youtube.com/playlist?list=PLPXG0FHDlqWU",      "coverUrl": "https://i.ytimg.com/vi/DZSYaQmxBLM/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBLKZ0RlZVrZ03Pi8oQE8fAq6jQOQ",      "posts": 2,      "ext": {        "description": null,        "views": null,        "owner": null,        "updatedText": null,        "podcast": false      }    }  ],  "pagination": {    "nextCursor": "4qmFsgJ4EhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaKkVnbHdiR0Y1YkdsemRITVlBeUFBTUFFNEFlb0RCME5uVGtSUmFsRSUzRJoCL2Jyb3dzZS1mZWVkVUNYdXFTQmxIQUU2WHcteWVKQTBUdW53cGxheWxpc3RzMTA0",    "hasMore": true  }}