Keyword, competitor, backlink and AI answer data
seo_researchData from the person’s own DataForSEO or Ahrefs account, which costs them credits. It uses the key the person saved on their seoskill.dev account (or on this machine for the CLI). serp or ai_answers with a site as target and no keywords checks the tracked searches or AI questions in the site's business context and keeps the result in its progress. Actions: provider is optional: without it the call uses the saved key, DataForSEO when both are saved. In the CLI and the local MCP server, serp can also use a provider package installed on this machine that supplies live search results: pass its id as provider. The target is a domain (the whole site), a path ending in / such as example.com/blog/ (every URL under it), or one page; scope overrides that. keyword_metrics (keywords: volume, difficulty, CPC; or target a Search Console site with no keywords: its top queries by impressions that the provider rates at zero or does not know, zero-volume keywords, in one call of up to 700 queries, about $0.10 on DataForSEO or 100 on Ahrefs), keyword_ideas (up to 5 seed keywords: searches that contain each seed, by volume), ranked_keywords (target: keywords a site, subfolder or page ranks for, with the provider's traffic total for the whole target), top_pages (target: the pages with the most estimated organic traffic), serp (keywords, up to 5: the ranking pages with their organic position beside DataForSEO's rank_absolute, which also counts AI Overviews and other blocks, plus the AI Overview's sources and the People Also Ask questions; device desktop or mobile, DataForSEO only; each with its domain's authority: DataForSEO domain_rank 0 to 100, Ahrefs domain_rating; depth sets results per keyword, default 20; rows run position by position across the keywords), index_check (DataForSEO only; target: one page URL; keywords: up to 2 exact phrases from the page, default its H1 or title. Searches Google for site: and each "" on desktop and mobile, retries failed searches, treats Google's fallback to unrelated sites as no match, and says indexed, not found or unknown with each search's evidence; about $0.01 a page), serp_overlap (2 to 10 keywords: for each pair, how many of their top 10 pages and sites are the same, to decide one page or several; results behind a Google redirect link are compared by their breadcrumb's site and path, and counted, not compared, when it is shortened), mentions (DataForSEO only; target: a domain; brand: up to 3 brand names. Pages on other sites that name the domain or brand, one per site, from DataForSEO's content index, and whether each site already links to the target in DataForSEO's backlink index; sites with no link come first, to ask for the link. About $0.03 a term plus one backlinks call, under $0.10 a run), competitors (target: domains that share keywords; when the target is one of the person's sites, the competitors in its business context come first, with in_context true), backlinks (target: referring domains), pages_by_backlinks (target: the pages with the most referring domains), link_gap (target and 2 to 5 competitors, or none to use the first 5 in the target's business context: referring domains that link to two or more competitors and not the target, highest authority first, from each site's top 1,000 referring domains; costs one backlinks call per site). With pages true, backlinks and link_gap (DataForSEO only) return linking pages instead of domains: each page's title, the words around the link, how many competitors it links and a guessed context (listicle, review, directory, forum and so on), with spam left out, from one call of up to 1,000 pages, about $0.03 to $0.06; use them to find link and listicle targets. ai_answers (DataForSEO only; target: the site. Without keywords it takes the site’s top 10 chat-style and long questions from Search Console’s AI-shaped queries itself. With up to 10 questions in keywords it asks those instead, and the target can be any domain, such as a competitor's. Each answer row also lists the other sites it cites, and the notes rank them. Answers come from DataForSEO's queue: answers not ready after about 40 seconds are returned as tasks, already paid for; call again with the same target and those tasks to read them at no cost. Asking the same questions again the same day (UTC) reads that run back at no cost too; refresh true asks again and pays. samples (1 to 5) asks each question that many times and reports how often the answers cite or name the site, a rate instead of one sample; each sample costs a full run. It asks ChatGPT search, the Gemini app, Google AI Mode and Google AI Overviews each one and says whether the answer cites or mentions the site. When the target is one of the person's sites, the competitors in its business context are judged on the same answers at no extra cost: each row lists the ones it cites or names, and the notes give share of voice. Each ChatGPT row lists the web searches ChatGPT ran (fan-out), and the notes rank the most common; to see them for any questions, pass the questions in keywords with any target. Web search is not forced: forcing costs the same but makes ChatGPT search questions it answers from memory, so "none returned" means it answered without searching. Gemini, AI Mode and AI Overviews do not report their searches. DataForSEO’s queue prices are about $0.0096 a question across the four engines, so about $0.10 a run: tell the person before running it. With up to 3 competitors and the site as target, it instead reads DataForSEO's LLM mentions database for ChatGPT and AI Overviews and ranks the pages cited by buyer answers that name a competitor, the pages to get the site onto; about $0.35 a site, tell the person first). Rows with a domain, and the target, get a free Ahrefs domain_rating column. Numbers are provider estimates, not Search Console data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "seo_research"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| also | No | ai_answers only: the brand's other domains, such as claude.ai beside claude.com. A citation to any of them counts as citing the target. | |
| brand | No | ai_answers and mentions: the brand names that count as a mention, such as Datadog for datadoghq.com. Default: each domain's name for ai_answers; mentions searches the domain itself plus up to 3 names. | |
| depth | No | serp only: results per keyword, default 20. Deeper costs more. | |
| pages | No | backlinks and link_gap: linking pages with the words around each link, instead of domains. | |
| scope | No | Optional: domain, prefix or exact, to read the target another way than its shape says. | |
| tasks | No | ai_answers only: the tasks an earlier run returned as not ready, to read back at no cost. | |
| action | Yes | ||
| detail | No | summary first. rows: the next page of rows. full: every field as JSON. | summary |
| device | No | serp only: desktop (default) or mobile. Google ranks pages differently on each. DataForSEO only. | |
| offset | No | rows only: the first row to return. | |
| target | No | Domain (the whole site), a path ending in / for every URL under it, such as example.com/blog/, or one page. | |
| country | No | Two-letter country code. | us |
| refresh | No | ai_answers only: ask again and pay, instead of reading back the run of the same questions from earlier today. | |
| samples | No | ai_answers only: how many times to ask each question, to report how often answers cite or name the site. Each sample costs a full run. | |
| keywords | No | ||
| provider | No | dataforseo or ahrefs. Optional: without it, the saved key; DataForSEO when both are saved. For serp in the CLI and the local MCP server it can also be the id of an installed provider package with live search results. | |
| competitors | No | link_gap: 2 to 5 competitor domains. ai_answers: up to 3. |