keywordstring
Search query.
https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/organic/live/advancedYouTube search results for a keyword: videos, channels and playlists with titles, views, durations and upload dates.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns the YouTube search results page for a keyword, as a list of ranked items. Each item carries the channel that published it. You send a keyword, plus an optional location_code and language_code.
location_code and language_code values.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/organic/live/advanced" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "coffee", "location_code": 2840, "language_code": "en"}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | No | Search query. |
language_code | string | No | Language code, e.g. "en". |
location_code | integer | No | Location code, e.g. 2840 for the United States. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"data": {
"api": "serp",
"device": "desktop",
"function": "live",
"keyword": "coffee",
"language_code": "en",
"location_code": 2840,
"os": "windows",
"se": "youtube"
},
"id": "11030829-1614-0139-0000-8c15c5d6ecc7",
"path": [
"v3"
],
"result": [
{
"check_url": "https://www.youtube.com/results?search_query=coffee",
"datetime": "2026-11-03 08:29:37 +00:00",
"item_types": [
"youtube_video"
],
"items": [
{
"badges": null,
"block_name": null,
"block_rank": 2,
"channel_id": "UCI4_-vEalUX3qB7DSQLbgUw",
"channel_logo": "https://yt3.ggpht.com/ytc/AIdro_kGbzuHsf8CGdiFeKVM3TKi9r4JmymtqTsx0WMjsLQvZuItYd…",
"channel_name": "LsLs",
"channel_url": "https://www.youtube.com/@LsLs-r5h",
"description": "We poured through the coffee aisle so you don't get shortchanged at the register…"
}
],
"items_count": 26,
"keyword": "coffee",
"language_code": "en",
"location_code": 2840
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "6.5972 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "6.6636 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].check_url | The YouTube search URL that matches the query, so you can open the same results in a browser. |
tasks[].result[].datetime | Time the results were collected, in the format 2026-11-03 08:29:37 +00:00. |
tasks[].result[].item_types | List of item types found in the results. In this response it holds youtube_video. |
tasks[].result[].items_count | Number of items in the result for this keyword. |
tasks[].result[].items[].block_rank | Rank of the item's block on the results page, starting at 1. |
tasks[].result[].items[].channel_id | YouTube ID of the channel that published the item. |
tasks[].result[].items[].channel_name / tasks[].result[].items[].channel_url | Display name of the channel and the link to its YouTube page. |
tasks[].result[].items[].channel_logo | URL of the channel's logo image. |
tasks[].result[].items[].description | Text snippet from the item. It is null when none is shown. |
tasks[].data.device / tasks[].data.os | Device and operating system used for the search. In this response they are desktop and windows. |
location_code value 2840 for the United States and en for language_code.tasks[].result[], and the ranked entries from items[] inside each result.badges, block_name and description, can be null.id such as 11030829-1614-0139-0000-8c15c5d6ecc7, and tasks_error shows how many tasks failed.Billed at the actual cost of each call, about $0.002 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/organic/live/advanced" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "coffee",
"language_code": "en",
"location_code": 2840
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
keywordstringSearch query.
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
DataForSEO YouTube Search ResultsDiese API DataForSEO | Ab $0.002 pro Aufruf | JSON |
DataForSEO | Ab $0.0102 pro Aufruf | JSON |
DataForSEO | Ab $0.000724 pro Aufruf | JSON |
DataForSEO | $0.004 pro Aufruf | JSON |
DataForSEO | Ab $0.00162 pro Aufruf | JSON |
DataForSEO | Ab $0.001105 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/organic/live/advanced mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.002 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: keyword (string), location_code (integer) und language_code (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. DataForSEO YouTube Search Results läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für DataForSEO API beantragen.