YouTube-API

YouTube-Playlist-API

Liste jedes Video einer YouTube-Playlist auf (Titel, Länge und Kanal pro Video plus Playlist-Inhaber und Summen).

1,20 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.

Lo-fi Beats to Focus To - YouTube
youtube.com/playlist?list=PLxK2osoDoY4gAiRxvIYUY5Fz4uMtVYnCk
YouTube
Sign in

Lo-fi Beats to Focus To

Playlist · 3 videos

Play all
58:12

Rainy Window - lofi hip hop mix

Driftline Records

2
3
Was die API zurückgegeben hatvideos[0]
{
"id": "aK7pQm3nVxY",
"title": "Rainy Window - lofi hip hop mix",
"url": "https://www.youtube.com/watch?v=aK7pQm3nVxY",
"thumbnail": "https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg",
"lengthText": "58:12",
"lengthSeconds": 3492,
"channel": "Driftline Records"
}
Verfügbarkeit
94,38%
30d · 249 Aufrufe
Anfragen
249
30 T · wöchentlich, letzte 12 Wochen
Antwort
1,2s
Median · 30d

Preise

Preise der YouTube-Playlist-API

Du zahlst
12,00 USD
1,20 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 83 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

YouTube Playlist mit einer Anfrage abrufen

Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.

Dieses Beispiel zeigt 16 von 18 Feldern. Alle Felder ansehen

{
  "found": true,
  "data": {
    "title": "Lo-fi Beats to Focus To",
    "owner": "Driftline Records",
    "totalVideos": 3,
    "authorId": "UC9Qz1s5o8vX3P0nZk4Rr6bA",
    "authorUrl": "https://www.youtube.com/@driftlinerecords",
    "authorHandle": "driftlinerecords",
    "videos": [
      {
        "id": "aK7pQm3nVxY",
        "title": "Rainy Window - lofi hip hop mix",
        "url": "https://www.youtube.com/watch?v=aK7pQm3nVxY",
        "thumbnail": "https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg",
        "lengthText": "58:12",
        "lengthSeconds": 3492,
        "channel": "Driftline Records"
      },
      {
        "id": "bL8qRn4oWyZ",
        "title": "Late Night Study Session - chill beats",
        "url": "https://www.youtube.com/watch?v=bL8qRn4oWyZ",
        "thumbnail": "https://i.ytimg.com/vi/bL8qRn4oWyZ/hqdefault.jpg",
        "lengthText": "1:12:40",
        "lengthSeconds": 4360,
        "channel": "Driftline Records"
      },
      {
        "id": "cM9rSo5pXzA",
        "title": "Coffee Shop Ambience with Soft Piano",
        "url": "https://www.youtube.com/watch?v=cM9rSo5pXzA",
        "thumbnail": "https://i.ytimg.com/vi/cM9rSo5pXzA/hqdefault.jpg",
        "lengthText": "45:03",
        "lengthSeconds": 2703,
        "channel": "Driftline Records"
      }
    ]
  }
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-11-21 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • playlistIdstring

    PLxK2osoDoY4gAiRxvIYUY5Fz4uMtVYnCk

    Die Playlist-ID: der Parameter „list“ in einer Playlist-URL (z. B. „PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi“).

  • cursorstring

    The nextCursor from the previous page, to get the next page of videos. Send the same playlistId with it.

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

datadata
  • authorHandlestring

    driftlinerecords

    The playlist owner's @handle, without the leading @.

  • authorIdstring

    UC9Qz1s5o8vX3P0nZk4Rr6bA

    YouTube channel ID of the playlist owner.

  • authorUrlstring

    https://www.youtube.com/@driftlinerecords

    Canonical URL of the playlist owner's channel, tracking query parameters stripped.

  • nextCursorstring

    Opaque cursor for the next page of videos, or null when there are no more. Pass it back as cursor to continue.

  • ownerstring

    Driftline Records

    Name of the channel that owns the playlist. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.

  • titlestring

    Lo-fi Beats to Focus To

    Playlist title. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.

  • totalVideosinteger

    3

    Number of videos in the playlist. Filled on the first page only; null on a page fetched with cursor.

each videodata.videos[]

Populated whenever the provider has data for the entity.

  • channelstring

    Driftline Records

    Populated whenever the provider has data for the entity.

  • idstring

    aK7pQm3nVxY

    Populated whenever the provider has data for the entity.

  • lengthSecondsinteger

    3492

  • lengthTextstring

    58:12

    Populated whenever the provider has data for the entity.

  • thumbnailstring

    https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg

    Populated whenever the provider has data for the entity.

  • titlestring

    Rainy Window - lofi hip hop mix

  • urlstring

    https://www.youtube.com/watch?v=aK7pQm3nVxY

    Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

FAQ

Über die YouTube-Playlist-API

Die AnyAPI-YouTube-Playlist-API liefert YouTube-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/youtube.playlist. Liste jedes Video einer YouTube-Playlist auf (Titel, Länge und Kanal pro Video plus Playlist-Inhaber und Summen). AnyAPI liefert ein normalisiertes Schema, egal welche Quelle antwortet. Sie kostet ab 1,20 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 94,4% der YouTube Playlist-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 1,2 Sekunden über 249 gemessene Aufrufe.

Sie kostet ab 1,20 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Liste jedes Video einer YouTube-Playlist auf (Titel, Länge und Kanal pro Video plus Playlist-Inhaber und Summen). Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 94,4% der YouTube Playlist-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 1,2 Sekunden über 249 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 83 YouTube-Playlist-Aufrufe zu je 0,0012 USD.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/youtube.playlist mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.