Ranked keywords
dataforseo/labs_google_ranked_keywords_liveList the keywords a domain already ranks for, with position and traffic metrics.
- call
- Price: —
- DataForSEO
- 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.
| Field | Type | Required | Description |
|---|---|---|---|
| target | string | Yes | Domain 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_code | integer | No | Location code. Optional. |
| language_code | string | No | Language code. Optional. |
| location_name | string | No | Which market to report on; omit for every market on record. |
| language_name | string | No | Which language to report on; omit for every language on record. |
| limit | integer | No | How many rows to return. Default: 100Maximum: 1000 |
| order_by | array | No | Sort rules for the returned rows. |
| filters | array | No | Up 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.
