YouTube-Video-API
Vollständige Metadaten eines Videos oder Shorts per URL oder ID: Titel, Beschreibung, Kanal, Aufruf- und Like-Zahlen und Veröffentlichungsdatum.
0,70 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.
Official Video
Rick Astley
1.5B views · Oct 25, 2009
The official video.
{"id": "dQw4w9WgXcQ","title": "Official Video","channel": "Rick Astley","durationMs": 213000,"views": 1540000000,"likes": 17200000,"createdUtc": 1256453853,"description": "The official video.",... 7 weitere Felder}
Preise und Anbieter
Preise der YouTube-Video-API: eine API, 6 austauschbare Anbieter
Der günstigste Anbieter bedient zuerst. Fällt er aus, übernimmt der nächste im selben Aufruf.
Ausprobieren
YouTube Video mit einer Anfrage abrufen
Dieses Beispiel zeigt 10 von 18 Feldern. Alle Felder ansehen
{
"found": true,
"data": {
"id": "dQw4w9WgXcQ",
"title": "Official Video",
"channel": "Rick Astley",
"durationMs": 213000,
"views": 1540000000,
"likes": 17200000,
"createdUtc": 1256453853,
"description": "The official video."
}
}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.
- idstring
YouTube-Video-ID. Ein Short nutzt dieselbe ID wie jedes andere Video.
- requireFieldsarray
Optional; wenn weggelassen, bleibt das Routing unverändert, und die günstigste Quelle bedient. Nenne die Ausgabefelder, die diese Anfrage zurückgeben können muss, zum Beispiel `authorAvatarUrl`, und sie wird nur von einer Quelle bedient, die jedes davon zurückgibt. Felder, die du nicht nennst, werden weiterhin zurückgegeben, sobald die bedienende Quelle sie hat. Das kann deinen Preis erhöhen: Wenn die günstigste Quelle ein genanntes Feld nicht zurückgeben kann, bedient eine teurere Quelle, und dir wird ihr Preis genannt und berechnet. Ein genanntes Feld kann bei einem Video, das es tatsächlich nicht hat trotzdem fehlen. Eine Kombination zu nennen, die keine einzelne Quelle zusammen zurückgibt, wird als ungültige Eingabe ohne Berechnung abgelehnt. Eine Quelle, die für ein Feld nur einen gerundeten oder gekürzten Wert zurückgibt, zählt nicht als Quelle, die es zurückgibt.
- urlstring
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Vollständige YouTube-Video-URL. Shorts (youtube.com/shorts/...), youtu.be-, Live- und Embed-URLs funktionieren alle.
Antwort
JSON, ein Beispielwert pro Feld.
The video result, or null when not found.
- authorAvatarUrlstringkann erfordern
URL of the publishing channel's avatar image.
- authorIdstring
YouTube channel ID of the publishing channel.
- authorUrlstring
Canonical URL of the publishing channel, tracking query parameters stripped.
- categorystring
YouTube category the video is filed under, for example "Music".
- channelstring
Rick Astley
Name of the channel that published the video. Populated whenever the provider has data for the entity.
- commentsintegerkann erfordern
Number of comments. Some sources round large counts (2.4M instead of 2,457,538); name `comments` in requireFields to be served only by a source that returns the exact count.
- createdUtcnumber
1256453853
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
- descriptionstringkann erfordern
The official video.
Video description text. Some sources return it as YouTube displays it, with long links shortened (https://colab.research.google.com/dri...) and YouTube or social links replaced by their titles; name `description` in requireFields to be served only by a source that returns every link intact.
- durationMsinteger
213000
Duration of the video in milliseconds.
- idstring
dQw4w9WgXcQ
Unique identifier of the video. Populated whenever the provider has data for the entity.
- imagestring
URL of the video thumbnail image.
- keywordsstring[]
Keywords the uploader tagged the video with.
- likesinteger
17200000
Number of likes.
- titlestring
Official Video
Title of the video. Populated whenever the provider has data for the entity.
- viewsinteger
1540000000
Number of views.
- foundboolean
true
Whether the video was found.
- 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 verkaufst diese API? Hier ist das vollständige Schema, das dein Endpoint zurückgeben muss.
FAQ
Über die YouTube-Video-API
Die AnyAPI-YouTube-Video-API liefert YouTube-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/youtube.video. Vollständige Metadaten eines Videos oder Shorts per URL oder ID: Titel, Beschreibung, Kanal, Aufruf- und Like-Zahlen und Veröffentlichungsdatum. AnyAPI routet jede Anfrage über 6 Quellen und weicht automatisch aus, wenn eine ausfällt. Sie kostet ab 0,70 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 99,8% der YouTube Video-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 3,8 Sekunden über 487.282 gemessene Aufrufe.