canonry

SEO data

Phase one adds stored keyword metrics, ranked keywords and domain intelligence through a provider-neutral adapter contract. DataForSEO Labs is the first adapter. Market rankings add the project’s Google position for its tracked queries, searched from each market’s location (DataForSEO’s live Google results). Refresh runs on request or on a project schedule; this does not add Lighthouse, performance audits or a crawler.

Host configuration

Credentials and financial policy live in the host config file and reload when it changes. A temporary read or validation failure pauses dispatch without cancelling queued refreshes. Neither credentials nor financial policy appears in customer API, CLI, MCP, browser or Aero responses. Hosted administrators cannot change this policy.

seo:
  enabled: true
  fundingMode: hosted # self-hosted also uses host-local policy
  connections:
    search:
      provider: dataforseo
      label: Search data
      enabled: true
      login: your-api-login
      password: your-api-password
  policy:
    maxRunCostMicros: 250000
    accountDailyLimitMicros: 2000000
    accountMonthlyLimitMicros: 10000000
    projectMonthlyLimitMicros: 2000000

Amounts are integer microUSD: 1,000,000 equals one US dollar. These are example host limits, not pricing promises. Connections using the same funding account share one ledger.

The dashboard and Aero name a source by its connection label, never by the vendor behind it. Provider ids and vendor dataset prefixes stay in API, CLI and MCP provenance for operators; choose the label you want clients to read.

The SEO tab and Aero call the datasets Searches you rank for (ranked-keywords), Search demand (keyword-metrics), Domain comparison (domain-intelligence), Market rankings (market-rankings), Organic competitors (competitor-discovery) and Search gaps (keyword-gaps). A term people type into Google is a search there, never a keyword, so it does not read as one of the project’s tracked queries. Wire names stay as they are.

Profile and refresh

Read canonry seo context <project> --format json for connection IDs and supported scopes. Save an explicit locale and target:

{
  "name": "US organic search",
  "connectionId": "search",
  "capabilities": ["keyword-metrics", "domain-intelligence", "ranked-keywords"],
  "targets": [{"kind": "domain", "value": "example.com", "includeSubdomains": true}],
  "keywords": ["example category"],
  "locationCode": 2840,
  "languageCode": "en",
  "limit": 100,
  "scope": {"kind": "project"}
}
canonry seo profile set example us-organic --file seo-profile.json --format json
canonry seo refresh-intent example us-organic --format json
canonry seo sync example --intent-token '<returned token>' --idempotency-key '<unique key>' --format json
canonry seo run show example '<run id>' --format json
canonry seo overview example --profile-id us-organic --format json
canonry seo ranked-keywords example --profile-id us-organic --run-id '<evidence run id>' --limit 50 --offset 0 --format json

Reuse the same intent and key when retrying a submission. Each intent admits at most one refresh, even when retried with a different key. Changed identity conflicts. An expired intent cannot start a new job; an accepted exact replay returns its saved receipt. Deleted history cannot make an accepted intent reusable. Profile edits and evidence reads never start provider work.

The seo MCP toolkit mirrors the CLI through the public API. Use canonry_help with intent seo. A narrow seo.run grant refreshes and cancels; seo.write manages profiles. Neither grants general writes. Read-only credentials can inspect data and prepare a local intent but cannot submit it.

Scheduled refresh

A seo-sync schedule refreshes every saved profile of the project on its own cadence. Each refresh is stored, so keyword metrics, ranked keywords and domain intelligence build a history, one snapshot per refresh. Monthly suits most projects: provider volumes update monthly and ranking snapshots are often weeks old.

canonry schedule set example --kind seo-sync --cron '0 7 2 * *' --timezone UTC --format json
canonry schedule show example --kind seo-sync --format json
canonry schedule disable example --kind seo-sync

The schedule is the standing approval for that paid work, so creating, changing or enabling one requires seo.run and, for a signed-in person, an administrator account. Disabling or removing one needs only ordinary write access. It needs at least one saved profile.

Each firing admits one refresh per profile under the same host policy as a manual refresh, with an idempotency key built from the schedule, the firing minute and the profile, so a repeated firing returns the earlier receipt instead of paying twice. A firing is skipped while a seo-sync run for the project is queued or running. A profile that cannot be admitted (policy limit, stale Advanced scope, source not configured) leaves a failed seo-sync run with the reason; canonry runs <project> --kind seo-sync shows it. Profile edits apply from the next firing.

Alerts

The seo.data.recent-refresh doctor check watches an enabled seo-sync schedule. It is part of the six-hourly health pass, so a new warning reaches health.degraded like any other data check. Both findings are warnings and never urgent:

A schedule that has no time it can run (for example a cron for February 31) warns seo.data.schedule-invalid. A project without an enabled seo-sync schedule is skipped. Time a schedule spends disabled never counts: once it is turned on, its first firing gets a full cycle and the firings from before the pause are ignored.

canonry doctor --project example --check seo.data.recent-refresh --format json

Scope and metrics

Simple projects use project scope. Advanced profiles pin expectedPlanRevision and a project, group, market or Property key from the context response. The server freezes that plan lineage, rejects stale revisions and never widens a path Property into a domain. Scope selection does not invent targets or keywords.

DataForSEO domain intelligence requires a domain with subdomains included. Exact-host ranked keywords and keyword-only profiles for path/entity Properties are separate supported cases.

Overview metrics describe the first target in the profile. They do not sum overlapping targets or competitors. Rows preserve provider, dataset, engine, locale, collection date and available source date. Null means unavailable; zero remains zero. Page totals count stored rows, not the entire keyword universe.

Search volume, difficulty, CPC and traffic are vendor estimates. CPC and estimated traffic value are SEO research metrics; their currency is unrelated to execution costs. Search Console observations, analytics and AI citation and mention coverage retain their own metrics and denominators.

Market rankings

Market rankings report where the project’s site ranks on Google for its own tracked non-brand queries, the same queries AI visibility measures, with each query searched from its market’s location. They never use a separate keyword list, so a market’s rankings and its AI answers describe the same queries.

{
  "name": "Market rankings",
  "connectionId": "search",
  "capabilities": ["market-rankings"],
  "targets": [{"kind": "domain", "value": "example.com", "includeSubdomains": true}],
  "keywords": [],
  "locationCode": 2840,
  "languageCode": "en",
  "limit": 100,
  "scope": {"kind": "project", "expectedPlanRevision": 12},
  "rankings": {
    "locations": [
      {"key": "north-metro", "locationCode": 200623, "label": "Dallas-Ft. Worth, TX"},
      {"key": "south-metro", "locationCode": 200618, "label": "Houston, TX"}
    ],
    "depth": 50,
    "device": "mobile",
    "searchText": "query-without-market-region"
  }
}
canonry seo market-summary example --profile-id market-rankings --format json
canonry seo market-summary example --profile-id market-rankings --region north-metro --format json
canonry seo market-rankings example --profile-id market-rankings --outcome needs-work --sort=rank --format json
canonry seo market-rankings example --profile-id market-rankings --region north-metro --search "pet friendly" --limit 100 --format json

Every search the refresh planned has a row in each market it answers, and searchStatus says how the search ended:

A search that Google itself answered with an error is sent once more at the end of the refresh, after every other search, under the same spending limits. Its row then shows how the retry ended, and Refresh history marks it “retried once”. A retry is never retried, other failures are not retried, and a retry that would pass a spending limit is skipped; the next refresh searches every failed search again. regionKey and regionLabel name the market’s top-level group. Rows read in region, market and search-text order.

Reading the results by outcome

The list read also says where each query landed (outcome) and whether a tracked rival ranks ahead of the site (rivalAhead):

Outcome Meaning
page-1 Google rank 1 to 10
ranks-11-20 Rank 11 to 20, the closest to page 1
ranks-21-plus Rank 21 or deeper within the checked results
not-ranked A completed search, and the site is not in the requested depth
partly-checked A partial search that did not reach the site: ranks past its depth were never checked, so it never counts as not ranked
failed The search returned no usable results
cancelled The search never ran

A rank found in a partial search stands. rivalAhead is true when a tracked competitor ranks above the site, or ranks while the site is not in the checked results. needs-work is the filter for ranks 11 and deeper, not ranked and partly checked: everything off page 1 that came back.

canonry seo market-summary (GET /projects/:name/seo/market-rankings/summary, MCP canonry_seo_market_summary) counts the rows by outcome. The outcome counts add up to queries; needsWork and rivalAhead overlap them. With no region or market it adds one group per region (a market without a region stands alone); with --region one group per market; with --market none. Groups come in needs-work order: most ranks 11-20, then most ranks 21 and deeper, then name. regionLabel and marketLabel name the selected region and market, and depth is the depth each search asked for.

canonry seo market-rankings (GET /projects/:name/seo/market-rankings, MCP canonry_seo_market_rankings) returns the rows. --market and --region narrow them (both apply when given), --outcome takes one outcome, needs-work or rival-ahead, and --search (q) matches the query, the searched text or the market label, ignoring case. --sort orders them: market (the default) by region, market and searched text; rank best first, then partly checked rows, then rows not in the results with the strongest rival first, then searches with no result; -rank rows not in the results first, then partly checked rows, then the worst rank; query and -query by query text. Write a dash-led order as --sort=-rank.

Dashboard

SEO opens on Overview for the selected profile. Domain intelligence starts with searches in Google’s top 10 when that metric has enough readings. Ranked searches and estimated organic traffic are also selectable. Market rankings charts the number of tracked non-brand query and market pairs on page one. Profiles with saved ranked-keyword results can chart the organic position of one search across refreshes. Choose another saved search from the chart. Pick a 30-, 90- or 180-day range, ending on the latest observation. A gap marks an unavailable reading, and one reading has no change to report. Latest rankings opens the saved breakdown. If ranking readings are unavailable, search demand uses the source’s saved calendar-month estimates for a selected search.

The refresh toolbar shows progress, the last saved data and the next scheduled refresh. Refresh history opens the saved jobs, with details and cancellation where available. Links from project Activity or a completion notification open the exact refresh. View saved data opens that refresh’s evidence.

canonry seo trends example --profile-id us-organic --days 90 --format json
canonry seo trends example --profile-id us-organic --keyword "solar installer" --format json

The stored read is GET /projects/:name/seo/trends and MCP canonry_seo_trends. Observations share the measurement scope, primary target, and relevant source settings. Renaming a profile preserves comparable history. Market observations also share the query and market basket and search settings. A trend change compares the first and latest reported value in the range. For ranked-keyword trends, omitting keyword picks a saved search with the most usable readings. A missing position means the refresh’s saved sample did not supply a rank for that search. Estimated organic traffic is the provider’s estimate. Search Engines and site analytics report their own measured performance.

The Market rankings view shows Google rank counts with a caption naming the queries they leave out (partly checked, failed, not searched), followed by regions or markets five at a time and queries ten at a time. The queries open on Needs work, closest to page 1 first. Show picks another outcome, Find a query searches, and the Query and Google rank headers re-sort. The URL preserves the scope and filters (seoRegion, seoMarket, seoShow, seoQ, seoSort). Each row’s Details shows the ranking page, the searched text and location, the position on the page, the tracked competitors and the source. Market-rankings profiles are set up through the API, CLI or MCP. The web editor keeps their search settings when editing other fields.

A refresh runs its searches one at a time, so a large one takes a while. Restarting the server mid-search leaves that search for operator reconciliation, as with any paid request; avoid restarts while a market-rankings refresh runs.

Aero analysis

Aero can prioritize keyword and ranking opportunities from saved evidence with the SEO analysis playbook. It recommends page inspections, content research, or missing-data checks with supporting evidence and scope limits. Priorities are qualitative recommendations, not opportunity scores or traffic forecasts. Aero cannot edit SEO profiles, start paid SEO refreshes or schedule them.

Execution and recovery

Admission reserves the bounded task set atomically against account and project policy. Durable tasks record submission before HTTP work. Exact retries do not dispatch again. Partial results, failed tasks, cancellation and unknown outcomes remain distinct. A refresh keeps previous completed or partial evidence visible.

Only documented rejection permits retry, with one exception: a market-rankings search that failed because the search engine returned an error, with a known charge, gets one new attempt with its own reservation at the end of its refresh (see “Market rankings”). Explicit zero-cost provider refusals release their reservations. Ambiguous paid responses retain the reservation and block that account until a host operator verifies the upstream receipt. If a received result cannot be saved temporarily, the runtime retains it and retries persistence without another provider call; losing that process before persistence still requires reconciliation. Restart recovery does not resubmit accepted work. Deleting project or run history does not erase outstanding liability.

Operator receipt endpoints require a direct bearer key ID listed in host-only CANONRY_OPERATOR_KEY_IDS. Reconciliation also requires seo.run. Customer roles, wildcard scope alone, browser sessions, delegated tokens and project keys cannot grant operator authority. Operator tools are excluded from Aero; ordinary audit events contain safe identifiers only.

The SEO surface does not synthesize visibility share, rank movement, backlink coverage or SERP-feature opportunity scores. Those require their own data and comparable snapshots; market rankings store each refresh so rank movement can be compared later. Existing Search Console, backlinks and Agent Readiness surfaces remain the sources for their current metrics.

Organic search competitors and gaps

competitor-discovery finds domains that share organic ranking searches with each explicit Target. keyword-gaps compares each Target against one to five explicit competitors. Both are Google Labs database research at the profile’s location and language, not live market rankings. Saving a profile never discovers competitors, starts a refresh or expands the tracked competitor list.

{
  "name": "US search competitors",
  "connectionId": "search",
  "capabilities": ["competitor-discovery", "keyword-gaps"],
  "targets": [{"kind": "domain", "value": "example.com", "includeSubdomains": true}],
  "competitors": [{"kind": "domain", "value": "competitor.com", "includeSubdomains": true}],
  "keywords": [],
  "locationCode": 2840,
  "languageCode": "en",
  "limit": 100,
  "scope": {"kind": "project"}
}

The provider cannot constrain these endpoints to exact hosts or Property footprints. Both Simple and Advanced projects support whole-domain research in project scope. For Advanced projects, include the current expectedPlanRevision in scope. Property, group and market selections show recovery guidance to select project scope; they never silently broaden a footprint. Each stored row retains its Target and source locale; the run retains its selected profile and frozen plan context.

A discovery task returns bounded competitor rows with shared-search counts, average position, organic search count and estimated traffic where supplied. Gap refreshes reserve two tasks for each Target/competitor pair: shared searches and searches missing from the Target’s provider database results. These disjoint populations are priced before admission under the existing host and project limits. Comparison domains, location, language, row limit and capability are part of execution identity. Adding a competitor changes the profile revision and invalidates an unaccepted refresh intent.

The saved gap rows distinguish:

The kind=shared read filter includes both shared and outranked rows. missing and outranked filters select that exact kind. A signed rankGap is Target position minus competitor position: positive means the competitor is ahead; it is null when the Target has no observed rank. Filtering precedes pagination. List totals count saved rows, not every ranking search in the provider’s database. No competitive percentage pools branded and non-brand searches.

canonry seo competitors example --profile-id us-search-competitors --format json
canonry seo keyword-gaps example --profile-id us-search-competitors --kind missing --format json

The matching stored GETs are /projects/:name/seo/competitors and /projects/:name/seo/keyword-gaps; both accept profileId, runId, limit, offset and sort, and gaps also accepts kind. Sorting applies to the full saved result after filtering and before pagination. Prefix a sort key with - for descending; missing metrics stay last in either direction. Omit sort to retain stored order. Competitors supports domain, shared, position and traffic; gaps supports keyword, kind, target-rank, competitor-rank, rank-gap and volume. These reads and their CLI/MCP equivalents never dispatch provider work. The prior completed or partial refresh remains available during new work, and older tasks without competitive datasets return empty arrays.

Tracked-query market rankings remain a separate instrument. Each row now exposes topCompetitor, the best tracked rival, and a nullable signed rankGap from the same results page. Missing, partial, failed and unsearched states retain their existing meaning; no numeric gap is invented without both positions.