78trust / 100
Youtube Playlists
by SocialFetch in News & content
x402 APIPassing, checked 21 min ago
Get a YouTube playlist by playlist id.
GET https://api.socialfetch.dev/v1/youtube/playlists
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 230 ms typical, 273 ms slowest 5%
- Last check
- 21 min ago
- Next check
- in 9 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.socialfetch.dev/v1/youtube/playlists?playlistId=PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.socialfetch.dev%2Fv1%2Fyoutube%2Fplaylists
const res = await pay("https://api.socialfetch.dev/v1/youtube/playlists?playlistId=PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS");
console.log(await res.json());Example input
{
"playlistId": "PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS"
}Example output
{
"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"
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 21 min ago | Passed | 402 | 222 ms | $0.014 |
| 4 h ago | Passed | 402 | 241 ms | $0.014 |
| 7 h ago | Passed | 402 | 212 ms | $0.014 |
| 11 h ago | Passed | 402 | 263 ms | $0.014 |
| 15 h ago | Passed | 402 | 273 ms | $0.014 |
| 18 h ago | Passed | 402 | 154 ms | $0.014 |
| 23 h ago | Passed | 402 | 273 ms | $0.014 |
| 26 h ago | Passed | 402 | 175 ms | $0.014 |
| 31 h ago | Passed | 402 | 230 ms | $0.014 |