Web research5 min readBy Purrkey team

How to list a domain's ranked keywords with DataForSEO

Get the Google keywords a domain ranks for, with volume, difficulty, intent, rank, URL and estimated traffic in one catalog call

On this page

You have five competitor domains and need the Google keywords each one ranks for, so you can decide which pages to improve first. The deliverable is a worksheet with one row per keyword and the fields that let you sort by estimated traffic and ranking position

The task and the table you want

Run one call per domain. For a gap check, set limit to 100 so each call returns the largest slice the tool returns. Use your own competitor domain as the target

The worksheet has one row per keyword. target and matched repeat on each row. The table feeds a decision about which competitor keyword gaps to target first: look for rows with etv, then compare rank and keywordDifficulty before choosing a page to improve

targetmatchedkeywordsearchVolumecpckeywordDifficultyintentrankrankAbsoluteurltitleetvisNew
(target)0(keyword)00.00(intent)00(url)(title)0.0false
(target)0(keyword)nullnullnullnullnullnullnullnullnullnull

Values here are placeholders showing the shape. No call has been run for this article, so the rows show the columns, not results

What the tool takes

dataforseo.labs.ranked_keywords takes a required target, which the contract describes as a bare domain. The optional inputs are location_code, an integer with default 2840 for the United States; language_code, a string with default en; and limit, an integer from 1 to 100 with default 25

The catalog route is POST /v1/runs with toolId dataforseo.labs.ranked_keywords. The contract lists the input properties above. It does not say those are the only fields the service accepts

If you need seed keywords before the domain gap check, the companion guide on keyword ideas by seed covers a different DataForSEO tool

Run one call per domain and cap the rows

The limit field is capped at 100 keywords per call. A single call cannot return more than 100 keyword rows. For five domains at limit 100, plan five calls, not one call with five targets

Set location_code and language_code once for the market you care about, then keep them the same across the five calls. A comparison with mixed markets is hard to read. If a domain has more than 100 ranked keywords, the first call gives you the first slice; a second call with the same target adds another slice

How to read the response fields

The response has target, matched and keywords. keywords is an array with a maximum of 100 items in the contract. The required field on each item is keyword. The optional fields are searchVolume, cpc, keywordDifficulty, intent, rank, rankAbsolute, url, title, etv and isNew

For the decision, sort by etv descending, then by rank ascending. etv is estimated traffic, so it shows which keywords pull traffic. rank and rankAbsolute show position. searchVolume and keywordDifficulty show demand and difficulty. url and title show the page that holds the ranking. intent groups keywords by search intent. isNew marks keywords the response flags as new

Several fields can be null, including searchVolume, cpc, keywordDifficulty, intent, rank, rankAbsolute, url, title, etv and isNew. Treat null as missing data, not as zero

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list ranked Google keywords for five competitor domains. Check the current inputs and price of dataforseo.labs.ranked_keywords before running anything. Call the tool once per domain with location_code 2840, language_code en, and limit 100. Return one table with columns target, matched, keyword, searchVolume, cpc, keywordDifficulty, intent, rank, rankAbsolute, url, title, etv, isNew. Sort by target, then etv descending, then rank ascending. Keep null values as null. Do not fill missing fields and do not invent keywords.

Example domains to replace:
acme-plumbing.example
acme-dental.example
acme-roofing.example
acme-legal.example
acme-hardware.example

The five domains in the prompt are placeholders. Swap in the real competitor domains before you run the prompt. The verifier contract rejects reserved placeholder TLDs, so do not carry these placeholders into a verification step. The prompt uses five calls at the 100-row cap

Estimated tool cost

The catalog lists the unit as max_call: "Maximum per call. Successful runs settle at DataForSEO's actual charge, with no markup." The totals below are ceilings. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
One domain default checkcalls x max price$0.03 per call1$0.03
Five domain gap checkcalls x max price$0.03 per call5$0.15

The one-domain check uses the default limit of 25. The five-domain gap check uses limit 100 on each call. Both plans are one call per domain

Open the tool page

Check the current inputs and price on the Ranked Keywords tool page before you run the five-domain gap check

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with DataForSEO.
Explore DataForSEO tools and pricing

FAQ

How do I list the Google keywords a domain ranks for?

Call dataforseo.labs.ranked_keywords once with the bare domain as target. Set limit to 100 for the largest slice per call, then sort the returned rows by etv and rank.

What inputs does dataforseo.labs.ranked_keywords take?

The contract lists a required target and optional location_code, language_code and limit. location_code defaults to 2840, language_code defaults to en, and limit runs from 1 to 100 with a default of 25.

What fields come back for each ranked keyword?

Each item has a required keyword plus optional searchVolume, cpc, keywordDifficulty, intent, rank, rankAbsolute, url, title, etv and isNew. Several of those fields can be null.

Can one call return more than 100 keywords?

No. The limit input has a maximum of 100, and the keywords array has a maximum of 100 items in the contract.

How much does a five-domain ranked keyword check cost?

At most $0.15 for five calls at $0.03 per call. The catalog says the price is a maximum per call, with successful runs settling at DataForSEO's actual charge and no markup.

What do location_code 2840 and language_code en mean?

The contract says 2840 is the United States and en is the default language code. The guide keeps both settings the same across the five competitor calls.

Next step

Try this with DataForSEO

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See DataForSEO tools

Share this article