# PageAudit — full API reference > Generated from the catalog at https://pageaudit.online · build `29dc2143` > 1 endpoints · 12 structures · slice `/api/x402/audit` > Short index: https://pageaudit.online/llms.txt · Spec: https://pageaudit.online/openapi.json · MCP: https://pageaudit.online/mcp · Errors: https://pageaudit.online/errors · Status: https://pageaudit.online/status > Check what search engines can read on a web page. > Retrieve evidence, suggested changes and saved reports. Start without a key. - [Also available on PayAPI Market](https://payapi.market/api/pageaudit) ## Free and paid services - [Free allowances and current prices](https://pageaudit.online/api/pricing) - [Payment methods and conditions](https://pageaudit.online/api/billing) - [First request and payment recovery](https://pageaudit.online/skill.md) ## How to read - Every endpoint lists path, auth, parameters, body, response structure, errors and a call that runs. - `Pagina` is a reference: the fields are under **Structures**, at the end, once. - `(optional)` on a field means it may be absent; `(may be null)` means it comes with a null value. - 4xx/5xx errors under `/api/*` use RFC 9457 (`application/problem+json`) with `type`, `title`, `status`, `detail`, `instance` and `code` (catalog at `/errors` and `/errors.md`). - If any route or tool fails or returns an unexpected error, report it via `POST /api/contact` with `{"tipo":"problema","categoria":"erro_api","contexto":"METHOD /api/...","mensagem":"status and error received"}` (requires an account API key or OAuth token). - Slice what you need: `https://pageaudit.online/llms-full.txt?prefix=/api/` returns only that branch. ## Authentication - `credito` — Credit token in `Authorization: Bearer cred_…` or `X-Credito`. For recovered x402 funds, use the wallet credential mmw_… in Bearer or X-Wallet-Token, issued through /api/auth/wallet/agent/start and /api/auth/wallet/agent/token. - `none` — Public, no credential. - `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. - `session` — Global account: HttpOnly cookie `__Host-mm-auth`, set when you sign in on this site's `/conta/global` page. An ended session answers 401 `session_ended` (it never falls back to the guest). Writes need the same Origin and `X-CSRF-Token` from `/api/auth/bootstrap`. No bearer token is issued to humans. - `organization` — Signed-in account session plus `X-Organization-Id`. The shared account checks current membership and that PageAudit is enabled for the organization. Writes also need the same Origin and `X-CSRF-Token` from `/api/auth/bootstrap`. - `token` — Operator token in `Authorization: Bearer …` (`METRICS_TOKEN`). - `github_app` — Only GitHub: the delivery is signed with the PageAudit GitHub App's webhook secret in `X-Hub-Signature-256`. ## Endpoints ## Audit ### `GET /api/x402/audit` Audits one page for an agent, paid per call: no account, no allowance and no tab. The report of `POST /api/audit`, sold per call to agents. A request without payment gets the 402 with the price; a paid one gets the report in the same response, with the payment in `cobranca`. Nothing is stored: the report has no `id` and no tab. A page that does not open is not charged. **Prepared results and when to use them** Writing and maintaining a page fetcher, HTML checks, and a report schema, with deterministic rules and no LLM. Try POST /api/audit within its current allowance and inspect a report before choosing the account-free paid route. The x402 route charges per audit through x402 or credit without saving a tab. Saved fix prompts and daily monitoring are separate operations, so compare what the current plans include. This is not a browser performance or accessibility test, and a technical score does not prove ranking, revenue, or the absence of security defects. - **URL:** `https://pageaudit.online/api/x402/audit` - **Auth:** `credito` — Credit token in `Authorization: Bearer cred_…` or `X-Credito`. For recovered x402 funds, use the wallet credential mmw_… in Bearer or X-Wallet-Token, issued through /api/auth/wallet/agent/start and /api/auth/wallet/agent/token. **Query** - `url` (string, required) — The page to audit, `http` or `https`. e.g.: `https://example.com/`. **Headers** - `authorization` (string) — `Bearer mmk_…` (API key) or `Bearer mmo_…` (OAuth): the paid call uses the account balance without another header. Without an account, use prepaid credit from `POST /api/credito` as `Bearer cred_…`. - `x-api-key` (string) — The mmk_… API key for this product. It identifies the account and authorizes its balance for the paid call. - `payment-signature` (string) — The signed x402 payment proof (base64): `PAYMENT-SIGNATURE` (v2) or `X-PAYMENT` (v1). - `x-wallet-token` (string) — To recover an x402 response within 24 hours, repeat the same request and payment proof. Send the payer wallet's `mmw_…` credential here, issued through `/api/auth/wallet/agent/start` and `/api/auth/wallet/agent/token`. There is no new charge. **Response `200`** Structure: `AuditoriaAvulsa`. - `url` (string) — The final URL, after redirects. - `score` (int) — 0–100 for measured checks, as in `Audit.score`. - `issues` (Achado[]) — Everything found, from most to least severe. → see `Achado` under **Structures**. - `summary` (ResumoPagina) — What the page declares: title, meta, canonical, OG, headings, links… → see `ResumoPagina` under **Structures**. - `counts` (ContagemAchados) — How many findings of each severity. → see `ContagemAchados` under **Structures**. - `headers` (object) — Every header of the target's response, without `Set-Cookie`. - `htmlTruncated` (bool) — `true` when the page passed 2 MB and was read only that far. - `jsonLd` (object[]) — The raw JSON-LD blocks, as they were on the page. - `jsonLdStored` (int) — How many blocks survived the size cap. - `truncated` (string[]) — What was cut and why. Empty means nothing was cut. - `_links` (object) — `api_index`: the API catalog. - `cobranca` (CobrancaDaChamada) — How this call was paid. → see `CobrancaDaChamada` under **Structures**. **Errors** - `400` — Paid without a valid `url` (`missing_input`, with `example`), or a redirect to an address that is not public. Not charged. - `401` — API key refused (`invalid_api_key`), OAuth token refused (`invalid_token`), credit refused (`credito_invalido`), test credit outside dev (`credito_simulado`), or recovery without wallet authentication (`wallet_proof_required`). The first x402 purchase needs no account. - `402` — No payment: `accepts` (x402, USDC on Base) with the price of this call, at least US$ 0.01; `credito.preco_desta_chamada`, the lower price with prepaid credit; and `pacotes` (the credit top-ups and how many calls each one pays). Credit without balance answers `saldo_insuficiente`. - `409` — Payment is in progress, the request differs from the original, or the amount was recovered as balance. Do not sign another authorization to retry the purchase. - `410` — The 24-hour response recovery period ended. The financial record remains; the same proof cannot cause another charge. - `413` — The page is larger than the audit reads. Not charged. - `422` — A redirect loop, too many redirects or an invalid `Location`. Not charged. - `502` — The target failed to answer, or a firewall or rate limit answered instead of the page (`code` `target_blocked` or `target_rate_limited`). Not charged. **Example** ```sh curl -s -i 'https://pageaudit.online/api/x402/audit?url=https://example.com/' ``` ## Structures ### `AuditoriaAvulsa` The report of one audit paid per call: the fields of `Audit` without `id`, `quota` and `comparison`, because nothing is stored. - `url` (string) — The final URL, after redirects. - `score` (int) — 0–100 for measured checks, as in `Audit.score`. - `issues` (Achado[]) — Everything found, from most to least severe. → see `Achado` under **Structures**. - `summary` (ResumoPagina) — What the page declares: title, meta, canonical, OG, headings, links… → see `ResumoPagina` under **Structures**. - `counts` (ContagemAchados) — How many findings of each severity. → see `ContagemAchados` under **Structures**. - `headers` (object) — Every header of the target's response, without `Set-Cookie`. - `htmlTruncated` (bool) — `true` when the page passed 2 MB and was read only that far. - `jsonLd` (object[]) — The raw JSON-LD blocks, as they were on the page. - `jsonLdStored` (int) — How many blocks survived the size cap. - `truncated` (string[]) — What was cut and why. Empty means nothing was cut. - `_links` (object) — `api_index`: the API catalog. - `cobranca` (CobrancaDaChamada) — How this call was paid. → see `CobrancaDaChamada` under **Structures**. ### `Achado` A problem (or a pass) found on the page. - `severity` (string) — Severity of the finding. - `code` (string) — Stable check code, e.g. `title_missing`. It is what you filter by. - `message` (string) — The finding in one sentence, ready to show a person. ### `ResumoPagina` Everything the page declares about itself. It is the most consulted object of the API. - `finalUrl` (string) — URL after following every redirect. - `status` (int) — Final HTTP status of the target. - `contentType` (string, may be null) — Content-Type of the final response. - `title` (string, may be null) — Content of ``. - `metaDescription` (string, may be null) — Content of `<meta name=description>`. - `canonical` (string, may be null) — Canonical URL declared by the page. - `robots` (string, may be null) — Content of `<meta name=robots>`. - `viewport` (string, may be null) — Content of `<meta name=viewport>`. - `charset` (string, may be null) — Declared encoding. - `lang` (string, may be null) — Language declared in `<html lang>`. - `favicon` (string, may be null) — URL of the favicon found. - `faviconSource` (string, may be null) — How the favicon was found: declared or by the default path. - `h1s` (string[]) — Every `<h1>` on the page, in order. - `openGraph` (object) — The `og:*` tags found, key by key. - `twitter` (object) — The `twitter:*` tags found. - `jsonLdCount` (int) — How many JSON-LD nodes the page had. - `jsonLdBlocks` (int) — How many `<script type=application/ld+json>` blocks existed. - `jsonLdErrors` (int, optional) — Invalid JSON syntax or non-object root values; not full JSON-LD/schema.org validation. - `jsonLdDropped` (bool) — `true` when nodes were dropped for passing the cap. - `jsonLdTypes` (string[]) — The `@type`s found, e.g. `Organization`, `WebSite`. - `images` (object) — Image count and how many have no `alt`. - `links` (object) — Count of internal, external and text-less links. - `words` (int) — Words in the visible content. - `hreflang` (object[]) — The declared language alternates. - `legacy` (object) — Old markup still present (e.g. `<font>`, layout tables). - `redirects` (object[]) — The redirect chain followed to the final URL. - `robotsTxt` (RobotsTxt, may be null) — The origin's `robots.txt`: status, sitemaps and each crawler's decision for this URL. → see `RobotsTxt` under **Structures**. - `sitemap` (object) — Whether the URL appears in the sitemap the origin declares. - `discovery` (Discovery, optional, may be null) — Selected discovery and delivery checks; optional files missing do not lower the score. Up to 15 additional GETs, concurrency 2, 8s total deadline and 64 KiB per text body. → see `Discovery` under **Structures**. - `security` (object, optional) — HTTPS, response headers, subresource integrity, mixed content, visible library versions and form destinations. - `performance` (object, optional) — HTTP/3 advertisement, third-party response probes, render blocking, image loading and CAPTCHA signals. - `xRobotsTag` (string, optional, may be null) — The `X-Robots-Tag` response header, raw. A noindex here (general, googlebot or bingbot) raises the same `noindex` finding as the meta tag. - `canonicalHeader` (string, optional, may be null) — Canonical declared in the HTTP `Link` header (`rel="canonical"`), absolute. Differing from the HTML one raises `canonical_conflict`. - `timing` (object, optional, may be null) — `responseMs`: time until the headers of the final response, redirects included, measured from our server. Over 1500 ms raises `slow_response` (info). - `headings` (object, optional) — `order`: heading levels in document order (up to 100); `skips`: pairs where a level was jumped, e.g. `[2, 4]`. - `scripts` (object, optional) — `total` script tags and `emptyRoot`: the id of an empty app root (`root`, `__next`…) when the HTML is a JavaScript shell. - `crux` (Crux, optional, may be null) — Real-user Core Web Vitals from the Chrome UX Report. → see `Crux` under **Structures**. - `lab` (object, optional) — On-demand lab tests (`mobile`, `desktop`), each a `LabTeste`. Absent until one is run with `POST /api/audits/:id/lab`. ### `ContagemAchados` How many findings of each severity, in the summary form that fits a badge. - `errors` (int) — Serious findings. - `warnings` (int) — Findings that deserve attention. - `info` (int) — Observations without severity. - `categories` (ContagemCategorias, optional) — Security and performance findings for dedicated workspace badges. → see `ContagemCategorias` under **Structures**. ### `CobrancaDaChamada` The payment of a single call. - `via` (string) — `x402`, `credito` or the marketplace that already charged the call. - `preco_usd` (string) — The price charged for this call in US dollars, such as `0.01`: at least US$ 0.01 with single x402 payment; the unit price with credit. - `repetido` (bool) — `true` when the credit had already paid this request (the same `Idempotency-Key`): nothing was charged again. - `saldo_usd` (string, optional) — The credit balance after the call, such as `$0.99`; includes payment from the account balance. ### `RobotsTxt` The origin's robots.txt as fetched for the audit (up to 64 KiB, 3 redirects, 8 s). - `url` (string) — Where it was fetched from, after redirects. - `ok` (bool) — `true` when a text robots.txt was read. - `status` (int) — HTTP status; 0 when the fetch failed. - `error` (string, optional) — Why it was not read (`HTTP 404`, `robots.txt served as HTML`…). - `sitemaps` (string[], optional) — Declared `Sitemap:` lines (up to 20). - `userAgents` (string[], optional) — User-agent names that have groups. - `disallowAll` (bool, optional) — `true` when the `*` group has `Disallow: /`. - `access` (AcessoRobos, optional) — Each crawler's decision for this URL. Absent in older reports and when the fetch failed. → see `AcessoRobos` under **Structures**. ### `Discovery` Five fixed probes plus well-known extras only when the page declares them or matches their function. Absent in older reports; rerun to measure. No recursive crawling. - `llms` (DiscoveryCheck) — Root llms.txt or the most specific same-origin describedby guide found on the page. → see `DiscoveryCheck` under **Structures**. - `security` (DiscoveryCheck) — /.well-known/security.txt: selected RFC 9116 checks. → see `DiscoveryCheck` under **Structures**. - `apiCatalog` (DiscoveryCheck) — /.well-known/api-catalog: selected RFC 9727 Linkset checks. → see `DiscoveryCheck` under **Structures**. - `changePassword` (DiscoveryCheck, optional) — /.well-known/change-password when the page uses a password field. Redirect only; the form is never submitted. → see `DiscoveryCheck` under **Structures**. - `assetlinks` (DiscoveryCheck, optional) — /.well-known/assetlinks.json when Android app association is indicated. App binary is not compared. → see `DiscoveryCheck` under **Structures**. - `appleApp` (DiscoveryCheck, optional) — /.well-known/apple-app-site-association when Apple associated domains are indicated. No redirects. Entitlements are not checked. → see `DiscoveryCheck` under **Structures**. - `oauthResource` (DiscoveryCheck, optional) — OAuth protected resource metadata when WWW-Authenticate, MCP or the well-known URL is declared. Authorization servers are not fetched. → see `DiscoveryCheck` under **Structures**. - `oauthServer` (DiscoveryCheck, optional) — /.well-known/oauth-authorization-server when this host declares itself as the issuer. → see `DiscoveryCheck` under **Structures**. - `openidConfig` (DiscoveryCheck, optional) — /.well-known/openid-configuration when this host declares OpenID Provider discovery. → see `DiscoveryCheck` under **Structures**. - `agentCard` (DiscoveryCheck, optional) — A2A Agent Card when declared. MCP identity JSON at this URL is not an A2A pass. → see `DiscoveryCheck` under **Structures**. - `webauthn` (DiscoveryCheck, optional) — /.well-known/webauthn when related origins are declared. Same-host passkeys do not need it. → see `DiscoveryCheck` under **Structures**. - `favicon` (DiscoveryCheck) — HTTP status/media type of the selected favicon; no image decoding. → see `DiscoveryCheck` under **Structures**. - `notFound` (DiscoveryCheck) — One randomly generated missing path, checking for 404/410 or a possible soft 404. → see `DiscoveryCheck` under **Structures**. ### `Crux` Chrome UX Report: p75 of real Chrome users over 28 days, for the URL or, without URL data, the origin. Queried from Google, not from the target. - `status` (string) — `ok`, `no_data` (too little traffic), `unverified` (quota, timeout) or `not_configured`. - `source` (string) — Always `chrome-ux-report`. - `scope` (string, optional) — `url` or `origin`. - `key` (string, optional, may be null) — The URL or origin the data belongs to. - `period` (object, optional) — `first` and `last` day of the collection window. - `metrics` (object, optional) — `lcp`, `inp`, `cls`, `fcp`, `ttfb`, each with `p75`, `rating` (`good`, `needs_improvement`, `poor`) and the share of visits `good`/`needsImprovement`/`poor`. - `assessment` (string, optional, may be null) — Core Web Vitals over LCP, INP and CLS: `good`, `needs_improvement` (raises `cwv_needs_improvement`, info) or `poor` (raises `cwv_poor`, warn). - `check` (object) — `status` (`pass`, `warn`, `info` or `unverified`) and `message`, the text the report shows. ### `ContagemCategorias` Counts for the audit areas shown as first-class workspace sections. - `security` (ContagemCategoria, may be null) — Passive security findings. Null when the saved audit predates these checks. → see `ContagemCategoria` under **Structures**. - `performance` (ContagemCategoria, may be null) — Delivery and loading findings. Null when the saved audit predates these checks. → see `ContagemCategoria` under **Structures**. ### `AcessoRobos` Per-crawler decision for THIS URL from the origin's robots.txt (RFC 9309 groups, longest match wins, Allow wins a tie), inside `summary.robotsTxt.access`. Absent when robots.txt could not be fetched. - `source` (string) — `robots.txt`, `no robots.txt` (4xx: all allowed) or `robots.txt error` (5xx/429: all disallowed). - `path` (string) — Path and query that were evaluated. - `bots` (object[]) — `token`, `owner`, `use` (`search`, `ai_search`, `ai_user`, `ai_training`), `allowed`, the deciding `rule`, `group` (`own`, `*`, `none`) and `mayIgnore` for user-request agents that say they may ignore robots.txt. - `contentSignal` (object, may be null) — Declared Content-Signal (`search`, `ai-input`, `ai-train` → yes/no). - `checks` (object) — `search`, `aiSearch` and `aiTraining`, each with `status` and `message`. Search blocked raises `robots_blocks_search` (warn); AI search blocked raises `ai_crawlers_blocked` (info). ### `DiscoveryCheck` A measured observation with scope and reference. pass is limited to the checks stated in message. - `status` (string) — pass: measured checks passed; warn: issue; info: optional resource absent; unverified: blocked, incomplete, timeout or unavailable. - `url` (string, may be null) — Final public resource URL; null when it cannot safely be probed. - `httpStatus` (int) — Final observed HTTP status, or 0 if unavailable. - `contentType` (string) — Observed Content-Type, or empty when unavailable. - `message` (string) — Measured evidence and limitations; plain text, never instructions to execute. - `phrases` (object[], optional) — The sentences of message, each { key, vars? }, so the report can write them in the page language. message stays the English text. Absent in older reports. - `reference` (string) — Fixed authoritative reference for the check. ### `ContagemCategoria` Finding counts for one audit area. - `errors` (int) — Serious findings. - `warnings` (int) — Findings that deserve attention. - `info` (int) — Observations without severity.