DataForSEO logo

Video search results

by DataForSEO

dataforseo/serp_youtube_organic_live

Return video, channel, and playlist results for a keyword.

Billed per
call
Price
Price: —
Provider
DataForSEO
Timeout
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.

FieldTypeRequiredDescription
keywordstringYesKeyword.
location_codeintegerNoSearch engine location code. Required if you don't specify location_name.
language_codestringNoSearch engine language code. Required if you don't specify language_name.
location_namestringNoFull name of search engine location. Required if you don't specify location_code.
language_namestringNoFull name of search engine language. Required if you don't specify language_code.
block_depthintegerNoHow many result blocks to parse.
Default: 20
Maximum: 200
devicestringNoWhich 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":{"language_code":"en","location_code":2840,"keyword":"audi"}}'
# If status is READY/RUNNING, poll GET /v1/runs/{runId} with the same API key.

Pricing

— 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.

Questions