Whole-site audit
site_auditAudit a whole site, step by step, and work with the result. Pick with mode: start = Start an audit of up to 25 pages; returns audit_id. Needs url. continue = Scan the next pages; call until complete. Issues by code, sections, average score. Needs audit_id. import = Turn a crawl from Screaming Frog, Ahrefs or Semrush (up to 500 pages) into an audit_id. Needs pages[{url, status, redirect_to, title, meta_description, h1}]. compare = What changed since the last audit, or against a competitor audit. Needs audit_id. report = A client-ready report page with a link. Needs audit_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Full address, for example https://example.com. | |
| mode | No | Default start. | |
| note | No | Optional short note for the reader, shown at the top. | |
| brand | No | Optional agency or team name to show instead of OnPage.dev. | |
| links | No | Optional internal links, for link equity, orphans and internal link suggestions. | |
| pages | No | One row per crawled page. | |
| detail | No | brief = short summary. | |
| source | No | Where the rows come from, for example Screaming Frog or Ahrefs Site Audit. | |
| audit_id | No | The id returned by start_site_audit. | |
| max_pages | No | How many pages to audit, default 10, at most 25. | |
| memory_key | No | site_memory key, records this call. | |
| previous_audit_id | No | Optional: the audit to compare with. | |
| competitor_audit_id | No | Optional: a finished audit of a competitor's site, to compare the two sites side by side instead of over time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||