Profile Playlists
A channel's playlists, 30 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe channel's handle, with or without @.
channelId?stringThe channel's id, instead of handle.
url?stringThe channel's link, instead of either.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*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 }}