S

SocialFetch · Youtube Playlists

by SocialFetch

GETBase

$0.014

per call · USD Coin on Base

Get a YouTube playlist by playlist id.

Endpoint

GET https://api.socialfetch.dev/v1/youtube/playlists

3

Calls / 30d

2

Unique payers / 30d

Aug 26

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.socialfetch.dev/v1/youtube/playlists", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.socialfetch.dev/v1/youtube/playlists?playlistId=PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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"
  }
}

Payment details

Pay to0x02c2fcafce36b4aadb39625866bc6b1699d83043
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from SocialFetch & similar services