Start site audit
start_site_auditStart the site audit of one market: the observed state of the site a content map is built on. It crawls the site's pages and internal links (DataForSEO OnPage), reads the keywords the domain already ranks for in that market, picks up to three competitors there (the ones the profile names with their website first, then sites that rank for at least 3 of the searches in the topic bank, looked up when the bank holds at least 5 topics and the profile leaves a slot open, never a generic platform such as YouTube, Reddit or Wikipedia, then domains that share at least 5 of the site's rankings), reads the keywords they rank for and the site does not, and, when this audit's funding covers it, how AI answers mention the domain (Google AI Overviews in every market; ChatGPT answers exist for us-en only). market is a workspace market id from get_profile markets; left out, the main market. Pages and links are the site's, not a market's: when a finished audit of another market crawled the same site in the last 7 days, the new audit reads that crawl instead of crawling again and pays no crawl, and its audit view names it in crawlFrom. A workspace runs one audit at a time. While a run of the same market is in flight, any call, with or without confirm, returns that run as started: true, resumed: true and the audit, and spends nothing more, so repeating the call is safe. Otherwise, without confirm it is free and changes nothing: it returns started: false, a self-contained message naming the market, and preview with market (id, name, primary), the estimate for that market (estimated cost in USD; the crawl is left out when it is read from another audit), crawlFrom (auditId, market and crawledAt of the audit whose crawl is reused; null when this audit crawls), mentionPlatforms (chatgpt and google_aio, or google_aio alone outside us-en), funding (included: seodraft funds this audit; balance: it runs on the user's own DataForSEO balance, always the case when their account is connected), daily (on balance only: ceilingUsd, the rolling 24h ceiling, which is perMarketUsd times the workspace's markets; spentUsd in that window; auditsThatFit, how many audits at this estimate still fit, this one included; null when included), the caps (pages, rankingRows, competitors, gapRowsPerCompetitor, mentionRows, briefs, maxUsd), ai (false when the AI answers stage will be skipped) and the domain, so the human can see the cost before anything is spent, plus notices. With confirm: true it starts the run and returns started: true, resumed: false and the audit (auditId, market, crawlFrom, mentionPlatforms, status, stages, funding, estimatedCostUsd, costUsd, notices). notices is a list of { code, message } read from the profile as it is now, empty when there is nothing to fix: profile_competitors_without_domains means the profile names competitors without their websites, so no audit compares the site against them until each one is saved as its name with its domain, such as "Surfer (surferseo.com)"; its message is meant to be relayed to the human as is. The audit then advances in steps through site_audit_status. A refusal is started: false with refused and a self-contained message meant to be relayed to the human as is: unknown_market (market is not one of the workspace's markets; nothing is read or spent), audit_running (an audit of another market is in flight; this one can start once it ends), no_site_url (the profile has no site URL; save it with update_profile), market_requires_own_account (the included audit covers the main market only; an audit of another market runs on the user's own DataForSEO account, connected in Profile), allowance_spent (the included audit was already used; nextAllowanceAt, when present, is when the next one is available, and connecting their own DataForSEO account in Profile runs one now on their balance), domain_already_audited (another workspace already used the included audit for this domain; their own DataForSEO account is the way to run it), platform_disabled (seodraft funds no audit for this workspace right now; same way out), no_access (the account cannot run an audit), or spend_limit (the estimate is above the per-audit ceiling or a daily ceiling is reached; nothing is charged). An audit never blocks onboarding: refused or failed, the rest of the workflow runs as before.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "start_site_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | The workspace market this call measures in, as an id from get_profile markets ("ar-es", "br-pt"). Left out, the main market. An id outside the workspace's markets is refused with reason unknown_market before anything is spent. | |
| confirm | No | ||
| workspaceId | No | The workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now. |