DataForSEO logo

Ranked keywords

by DataForSEO

dataforseo/labs_google_ranked_keywords_live

List the keywords a domain already ranks for, with position and traffic metrics.

Billed per
call
Price
Price: —
Provider
DataForSEO
Timeout
3 min

Overview

Takes a website, subdomain, or single page and returns the queries it currently holds rankings for. Every keyword comes with its search metrics — monthly volume, competition, cost per click, bid ranges — alongside the result that earned the position, including the exact position, ranking URL, and result type. Aggregate metrics summarise the whole profile: how many results fall into each position band, an estimated monthly organic traffic figure, and what that traffic would cost to buy through ads instead.

Position-band counts and traffic estimates for the target, plus one row per ranking keyword with its metrics and ranking result.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
targetstringYesDomain name or page url. the domain name of the target website, subdomain or URL of the target webpage; the domain name must be specified without https:// or www. ; the subdomain must be specified without https:// ; the webpage URL must be specified with https:// or www.
location_codeintegerNoLocation code. Optional.
language_codestringNoLanguage code. Optional.
location_namestringNoWhich market to report on; omit for every market on record.
language_namestringNoWhich language to report on; omit for every language on record.
limitintegerNoHow many rows to return.
Default: 100
Maximum: 1000
order_byarrayNoSort rules for the returned rows.
filtersarrayNoUp to eight conditions the returned rows must meet.

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":"labs_google_ranked_keywords_live","input":{"target":"example.com"}}'
# 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