DataForSEO · Ranked keywords
dataforseo/domains/ranked-keywordsGet SEO and search ranking data with DataForSEO · Ranked keywords from Alexandria through one Spiral API key. Keywords a domain or page ranks for on Google, with each keyword's volume and the ranking URL, position, and estimated traffic. Use serp/google-organic to check one keyword live. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
Up to $0.0576147 per run.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
target required | text | — | Domain without https:// or www., a subdomain, or an absolute page URL. |
limit | number 1 to 700 | 100 | Items to return, 1 to 700. DataForSEO allows 1000 (its default is 100); this connector stops at 700 so a call stays within 100 credits. Omitted, 100 is sent. |
offset | number 0 to … | — | Items to skip, for the next page. Default 0. |
filters | text | — | JSON array of filter conditions in the DataForSEO syntax, at most 8, such as ["keyword_info.search_volume",">",100]. |
order_by | list | — | Up to 3 sorting rules, each field,direction, such as keyword_info.search_volume,desc. |
item_types | list | — | SERP element types to include, such as organic, paid, featured_snippet, local_pack. Default organic. |
language_code | text | — | Language code, such as en. Use this or language_name. |
language_name | text | — | Full language name, such as English. Use this or language_code. |
location_code | number | — | DataForSEO location code, such as 2840 for the United States. Use this or location_name. |
location_name | text | — | Full location name, such as United States or London,England,United Kingdom. Use this or location_code. |
ignore_synonyms | true or false | — | Return only core keywords. Default false. |
load_rank_absolute | true or false | — | Add metrics_absolute, the distribution by rank_absolute. Default false. |
historical_serp_mode | one of live, lost, all | — | live (default) for current rankings, lost for lost ones, or all. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "dataforseo/domains/ranked-keywords",
"input": {
"target": "<target>"
}
}'Frequently asked questions
How much does DataForSEO · Ranked keywords cost?
Up to $0.0576147 per run. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use DataForSEO · Ranked keywords through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "dataforseo/domains/ranked-keywords"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use DataForSEO · Ranked keywords?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use DataForSEO · Ranked keywords?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.