Get a YouTube playlist by playlist id
Get a YouTube playlist by playlist id.
14000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-26
updated
Provider
api.socialfetch.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x02C2fCAfCe36B4AAdB39625866Bc6B1699d83043",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "14000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"playlistId": "PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS"
},
"type": "http"
},
"output": {
"example": {
"data": {
"lookupStatus": "found",
"playlist": {
"id": "PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS",
"owner": {
"displayName": "Lovely Tunes",
"handle": "lovelytunes7622",
"platform": "youtube",
"platformUserId": "UC0-wiBH12UgtWqLjo-EvpOw",
"profileUrl": "https://www.youtube.com/@lovelytunes7622"
},
"title": "Songs with Lyrics 2026 - New Songs & Music",
"totalVideos": 100
},
"videos": [
{
"channelTitle": "LatinHype",
"channelUrl": "https://www.youtube.com/@LatinHype",
"durationSeconds": 255,
"durationText": "4:15",
"id": "AdBzzpq3xV4",
"thumbnailUrl": "https://i.ytimg.com/vi/AdBzzpq3xV4/hqdefault.jpg",
"title": "Lady Gaga, Bruno Mars - Die With A Smile",
"url": "https://www.youtube.com/watch?v=AdBzzpq3xV4"
}
]
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example",
"version": "v1"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"playlistId": {
"description": "YouTube playlist id, or a YouTube playlist URL (the `list` query value is used when present).",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
"required": [
"playlistId"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.socialfetch.dev/v1/youtube/playlists" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.socialfetch.dev/v1/youtube/playlists");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.socialfetch.dev/v1/youtube/playlists")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/3084.json, and this resource appears in /discovery/resources and /discovery/search.