Evidence-led on-page audits

SEO Audit API

Turn repeatable page checks into structured evidence for release gates, template monitoring, and content QA. One POST returns the weighted score, every individual check's pass state and severity, the observed evidence that produced each verdict, and the recommended action. The response schema is stable: your CI gate, dashboard, or editorial workflow can rely on the same keys across releases.

Web pages passing through a processing grid and becoming structured data cards

Endpoint

POST /v1/seo-audit

A working request

Set your key once in a server-side environment variable, then send a JSON request.

cURL
curl --request POST \
  --url "https://api.tooltrace.io/v1/seo-audit" \
  --header "X-ToolTrace-Key: ${TOOLTRACE_KEY}" \
  --header "Content-Type: application/json" \
  --data '{
  "url": "https://example.com",
  "include": [
    "headings",
    "links",
    "structured_data",
    "core_web_vitals"
  ]
}'

Response scope

What the API returns

The response is structured for software, with source evidence kept beside the extracted or inspected data.

Practical uses

Release gates in CI

Fail a deploy when a template loses its canonical, its H1, or its primary JSON-LD block. The response is JSON, so a GitHub Action or Buildkite step can assert on specific checks without parsing HTML.

Template monitoring

Audit one URL per template on a schedule and alert when a check that was passing starts failing. Catches CMS, theme, and framework upgrades that silently break SEO fields.

Pre-launch content QA

Give editors a plain-English list of issues before publication. Each finding carries evidence and a recommended fix, not just a pass/fail.

Agency and portfolio audits

Run the audit across hundreds of client URLs through one key, store the JSON for diff reporting, and show clients which pages regressed between months.

AI agents and research

Give an agent a deterministic tool for understanding a public URL's SEO posture, with reasons it can quote back to a user.

Implementation guidance

Use the result with context.

What the SEO Audit API measures

Each audit runs twelve independent checks against the fetched page: indexability (robots meta, X-Robots-Tag, canonical, canonical conflicts), snippet hygiene (title, meta description, Open Graph, Twitter Card), content structure (H1, heading hierarchy, word count, text-to-code ratio), link health (internal, external, nofollow mix, broken samples), media (alt attributes, dimensions, oversized assets), structured data (JSON-LD types, schema validity, duplicate entities), mobile usability, and Core Web Vitals field data where available.

Every check returns a pass state, a severity (info, low, medium, high), the specific evidence observed, and a recommended action. The overall score is a weighted summary of only the supported checks, so a page that is strong on technical fundamentals but light on structured data does not get a 20% score for being unusual: it gets a specific list of findings.

Scoring methodology

The weighted score is calibrated so a technically clean, indexable page with proper title, description, canonical, H1, and structured data earns 90+. Scores in the 70-90 range indicate specific fixable issues. Below 70 means something structural is wrong: a missing H1, a canonical pointing elsewhere, a noindex directive, or JSON-LD that fails schema.org validation.

Scores are deterministic for a given page state. The same URL audited twice within an hour returns the same score unless the page itself changed. This matters for CI: a flaky score would make the gate useless.

Technical health is one input to search performance

A 95/100 audit does not guarantee rankings. Search visibility also depends on content relevance, link reputation, competition, and search demand, none of which an on-page audit can measure.

Use the SEO Audit API to remove technical obstacles that keep Google from understanding and crawling the page. Treat the remaining work (content depth, link building, intent match) as a separate workflow. The audit is a floor, not a ceiling.

Release-gate integration pattern

In CI, post the production URL of each affected template to /v1/seo-audit after the deploy completes but before smoke tests pass. Assert on a short list of must-pass checks: canonical present and self-referencing, meta robots indexable, H1 present, title length within 55-65 characters, primary JSON-LD type present for templates that need it. Let the gate fail only on these; log the rest as warnings.

Store the full JSON response as a build artifact. When a check that used to pass starts failing, the artifact history is the quickest way to find the deploy that changed the template.

Template monitoring at scale

Pick one representative URL per public template (homepage, article, product, category, author, tag, account, docs page). Schedule a nightly audit of that list and alert on any pass-to-fail transition. One URL per template catches template-wide regressions without burning credits on near-duplicates.

Pair this with the <a href='/apis/sitemap-inspector-api/'>XML Sitemap Checker API</a> to catch URL inventory drift and with <a href='/url-monitoring/'>URL Monitoring</a> for scalar diffs (title, canonical, noindex, JSON-LD @type) between audits.

What this API does not do

It does not simulate Googlebot ranking logic, estimate traffic, suggest keywords, build a crawl graph beyond the fetched page's own links, or claim to render JavaScript that requires authentication. Browser rendering is used when static HTML lacks the primary content; the response reports which render method ran.

It is not a keyword research tool. For search demand, see tools like Google Keyword Planner or Ahrefs. For a free single-page interactive check, use the <a href='/tools/seo-page-inspector/'>SEO Page Inspector</a>.

Credits and rate limits

One audit costs 2 credits for a static-rendered page and 5 credits for a page that required browser rendering. The response includes render_method so callers can predict cost. Rate limits follow your plan: 60 req/min on Pro, 180 on Ultra, 500 on Mega. 429 responses carry a Retry-After header, and the audit is safe to retry (idempotent for a given URL).

Results are not cached by default because SEO state is time-sensitive, but the Idempotency-Key header lets a client dedupe retries within a 24-hour window.

Authentication, limits, and errors

Send your key through the X-ToolTrace-Key header from server-side code. Read credit and rate-limit headers after every request. Validation, blocked destination, authentication, plan, and upstream fetch errors use structured responses that applications should handle by code rather than message text.

Use a dedicated key for each environment. Review current fields in the interactive API reference and compare usage limits on the pricing page.