SEO Skill

seo research

Keyword metrics, rankings, top pages, SERPs, competitors, backlinks and AI answer citations from your own DataForSEO or Ahrefs account.

Use it when you need data from outside your own site: search volume for a keyword, who ranks for it, or what a competitor ranks for. You need a key from DataForSEO or Ahrefs, and each request uses your credits with them. For the hosted MCP, the API keys guide shows how to add one. For the CLI, connect a provider once:

seo providers dataforseo connect
seo providers ahrefs connect

What you can ask for

ActionGive itWhat comes back
keyword_metricsUp to 100 keywordsSearch volume, keyword difficulty and cost per click
keyword_ideasUp to 5 seed keywordsSearches that contain each seed, highest volume first
ranked_keywordsA site, subfolder or pageThe keywords it ranks for, and the provider’s traffic estimate for the whole target
top_pagesA site or subfolderThe pages with the most estimated search traffic
serpUp to 5 keywordsThe pages that rank for each one, with each domain’s authority
index_checkOne page URLWhether Google returns the page, on desktop and mobile (DataForSEO only)
serp_overlap2 to 10 keywordsFor each pair, how many top 10 pages and sites they share
competitorsA domainDomains that rank for the same keywords
backlinksA site, subfolder or pageReferring domains
pages_by_backlinksA site or subfolderThe pages with the most referring domains
link_gapYour domain and 2 to 5 competitorsSites that link to two or more competitors and not to you
ai_answersAny site (DataForSEO only)Whether AI answers cite or mention the site, for its own AI-style questions or up to 10 of yours

Each request also takes a two-letter country code. The default is us. Link data covers every country. Every DataForSEO result says what the request cost, from DataForSEO’s own numbers.

Pick a site, a subfolder or one page

The shape of the target decides what gets read. A bare domain such as example.com is the whole site with its subdomains. A path that ends in a slash, such as example.com/blog/, is every page under it. Any other path is that one page. To read a target another way, add --scope domain, --scope prefix or --scope exact.

seo research top_pages --target example.com/blog/
seo research pages_by_backlinks --target example.com/blog/
seo research ranked_keywords --target https://example.com/pricing

A teardown usually starts here: the top pages show where a site’s search traffic comes from, and the pages by backlinks show which content earns its links.

Run research

Ask your agent. You don’t need to name a provider: research uses the key you saved, and DataForSEO when you saved both.

Show the keywords competitor.com ranks for in the UK

The hosted MCP runs seo_research. In a terminal, put the action first:

seo research keyword_metrics --keywords "seo audit,seo report" --country us
seo research ranked_keywords --provider ahrefs --target competitor.com --country gb

Add --provider (or provider in the MCP tools) to choose one when you saved both keys. Asking for a provider you have no key for stops with how to add it.

Use another source for search results

serp can also come from a provider package you installed, such as one built from the provider template for a search results API. Install and connect the package, then pass its name as the provider:

seo providers install <package-name>
seo providers connect <provider-id>
seo research serp --provider <provider-id> --keywords "seo audit"

The rows look the same as DataForSEO’s, and the result shows the cost the package reports. Packages run in the CLI and the local MCP server (seo mcp serve), not on the hosted server, and they answer serp only.

link_gap lists the sites that link to at least two of your competitors and not to you, with the highest authority first. These are the sites most likely to link to you too.

seo research link_gap --provider ahrefs --target example.com --competitors example.org,example.net

It reads the top 1,000 referring domains of each site, one backlinks request per site. When a site has more than that, the list stops at the lowest authority it read and says so, rather than guessing below it. With DataForSEO, the top 200 rows are sorted by Domain Rating. URL shorteners, link lists and coupon or site-stats directories link to almost every site, so they’re left out, and the result names each one.

Read SERPs and check overlap

serp reads 20 results per keyword unless you set --depth (1 to 100). Deeper costs more: DataForSEO charges about five times as much for 100 results as for 10. With several keywords, the rows run position by position, so every keyword shows up on the first page.

Each serp row has two positions. position is the organic position: the page is the nth organic link. DataForSEO’s rank_absolute counts every block from the top of the page, including AI Overviews, People Also Ask, videos and images, so a third organic link can have a rank_absolute of 7. Quote position when you say where a page ranks. ranked_keywords rows carry both numbers too.

Google ranks pages differently on phones. Add --device mobile to read the mobile results (DataForSEO only). When a results page shows an AI Overview, the notes list the sites it cites and the JSON has the full list as aiOverviews. DataForSEO retries a search that fails on Google’s side up to three times before it lists the keyword as failed.

seo research serp --keywords "feature flags" --device mobile

serp_overlap helps you decide whether a set of searches needs one page or several. It reads the top 10 for each keyword and counts the pages and sites each pair shares. Lots of shared pages usually means Google treats the searches as one topic.

seo research serp_overlap --keywords "seo migration checklist,website migration seo,site migration"

DataForSEO returns most results as Google redirect links with no exact page, so the result says how many pages it could compare. When that’s only a few, compare sites, or use Ahrefs.

Check whether Google has indexed a page

index_check asks Google for site: plus the page URL, and for an exact phrase from the page, on desktop and mobile. The phrase comes from the page’s H1 or title and its meta description, or pass up to 2 of your own with --keywords.

seo research index_check --target https://example.com/docs/feature-flags

The answer is indexed, not found or unknown, with every search beside it. When nothing matches a site: search, Google drops the filter and shows unrelated sites. Those are marked fallback and count as no match. A search that still fails after retries makes the answer unknown. It costs about $0.02 to $0.04 a page.

This is Google search, not Search Console. A page can be indexed and still not show for a site: search, so not found is evidence, not proof. For a site you own, seo page and seo index read Google’s URL Inspection instead.

Page through results without paying again

A research result is kept for a day. The next page, and the same rows with --detail full, are read from it at no new cost, and the result says so. --detail full gives every row that was read. Add --refresh to ask the provider again.

Read search volumes in the provider’s own terms

DataForSEO’s search volume is Google Ads’ monthly average over the last 12 months. Ahrefs estimates its own volumes. The two can differ two to eight times for the same keyword, so compare keywords within one provider. A keyword with no volume is listed as no data, because its volume is unknown, not zero.

Read traffic estimates in the provider’s own terms

ranked_keywords gives a total for the whole target next to its rows, named in the provider’s own metric. DataForSEO’s etv multiplies each keyword’s volume by a click-through rate for its position, over the keywords in DataForSEO’s database. Ahrefs’ organic traffic comes from its own keyword database and click model. The two can differ tenfold for the same page, so compare a site with itself in one provider, never one provider’s number with the other’s.

When a provider has more rows than one request reads, the result says how many it has and how many were read.

When a result is empty

An empty result always says why. A serp with no results means Google showed an empty page twice, which happens for rare or filtered searches and doesn’t mean nothing ranks. Keywords with no metrics are listed as having no data, and their volume is unknown, not zero. An empty top pages, backlinks or ranked keywords list means the provider has nothing for that target in its database, which doesn’t show the site has no traffic or links. DataForSEO returns many SERP results as Google redirect links. Those rows keep the domain and a shortened url_hint, and the notes count them. Use Ahrefs when you need the exact pages.

Check whether AI answers cite your site

ai_answers starts from questions people already ask about your site. It takes the top 10 chat-style and long questions from the AI queries section of your Search Console data, so you need Google connected as well as a DataForSEO key.

seo research ai_answers --target example.com --country gb

To ask your own questions, pass up to 10 in --keywords. Then the target can be any site, such as a competitor’s, and Google doesn’t need to be connected:

seo research ai_answers --target example.org --keywords "what is the best crm for a small team,how do I import contacts"

Each question goes to ChatGPT search, Google AI Mode and Google AI Overviews. Every row says whether the answer cited a page on your site, mentioned it by name, did neither, or showed no AI answer at all. ChatGPT rows also name the model DataForSEO reports for the answer. A run of 10 questions costs about 7 cents of DataForSEO credit, and the result shows what it actually cost. Each row also lists the other sites the answer cites, and the notes rank the sites cited most.

Answers come from DataForSEO’s queue and usually take about 15 seconds. Through the MCP server, any answers not ready after about 40 seconds come back as tasks that are already paid for. Ask again with the same target and those tasks to read them at no cost. The CLI waits up to four minutes, and prints the same tasks if any are still waiting; pass them with --tasks.

To see more rows, use the next-page command the result gives you. It passes every answer’s task, so the answers are read back at no cost instead of asked again.

The check looks for your site’s name in each answer, taken from the domain unless you give it. When the brand name differs from the domain, or a brand uses several domains, say so:

seo research ai_answers --target claude.com --also claude.ai --brand Claude --keywords "what is claude code"

A citation to any of the domains counts as cited, and the result names the domains and the brand names it matched. Placeholder sites in an answer, such as yourdomain.com, and images in ChatGPT’s answers are never counted as citations.

Treat each row as one sample. Ask the same question tomorrow and the answer can change, so a “neither” today is not proof you will never be cited.

Authority columns

With DataForSEO, each serp result gets domain_rank, DataForSEO’s own authority score from 0 to 100. It is a different scale from Domain Rating.

Rows with a domain, and the target itself, also get a Domain Rating column, Domain Rating by Ahrefs. The hosted MCP adds it for free. In the CLI it needs an Ahrefs key, and the result says so when it’s missing.

Estimates, not your data

Provider numbers are estimates from their own index. They are kept apart from your Search Console data and never mixed into it. When you need to know what your own pages actually get, use the SEO report or seo data.