Video search results
dataforseo/serp_youtube_organic_liveReturn video, channel, and playlist results for a keyword.
- call
- Price: $0.0024
- DataForSEO
- 3 min
Overview
Searches the video platform and returns the ranked blocks of results it produces. Items are typed: videos come back with title, canonical URL, video identifier, publishing channel, view count, publication date, and duration; channels come back with their subscriber-facing metadata; playlists come back with a preview of what they contain. Because the platform lays results out in named blocks, each item carries a block rank and block name alongside its overall position, and parsing depth is expressed in blocks rather than individual results.
One results page of typed video, channel, and playlist items with their metadata and block rank.
Input
These go in the input object of the run request.
| Field | Type | Required | Description |
|---|---|---|---|
| keyword | string | Yes | The search query to run, up to 700 characters. |
| location_code | integer | Yes | Which market to search from. |
| language_code | string | Yes | Interface and result language. |
| block_depth | integer | No | How many result blocks to parse. Default: 20Maximum: 200 |
| device | string | No | Which device to emulate. Allowed: desktop, mobile Default: "desktop" |
Requests up to 1 MB.
Example
Use your own API key and a saved idempotency key for each new job. Replace image or media placeholders with your own publicly reachable HTTPS URLs. Keep the same key and request body when recovering a timeout.
# Set once per job; reuse this key and the identical body after a timeout.
: "${AGENTSKY_IDEMPOTENCY_KEY:?Set a unique, saved key for this job}"
curl --fail-with-body https://gateway.agentsky.dev/v1/run \
-H "authorization: Bearer $AGENTSKY_API_KEY" \
-H "content-type: application/json" \
-H "Idempotency-Key: $AGENTSKY_IDEMPOTENCY_KEY" \
-d '{"provider":"dataforseo","endpoint":"serp_youtube_organic_live","input":{"keyword":"how to make sourdough","location_code":2840,"language_code":"en","block_depth":20}}'
# If status is READY/RUNNING, poll GET /v1/runs/{runId} with the same API key.Pricing
$0.0024 per call using your plan when signed in. Reported usage is billed under your account plan. Read the final customer charge from price.amount.value after the run finishes. A RUNNING response is not the final bill.
