Site Audit
Site Audit
Site Audit
Run a site audit with performance, accessibility, best practices, and SEO scores.
POST
Site Audit
Overview
The Site Audit endpoint lets you check how healthy a page is across:- Performance
- Accessibility
- Best practices
- SEO
Each audit uses 1 credit from your balance.
Endpoint
Request Body
- api_key (required) – Your GistMag API key. You can create and manage keys in the dashboard.
- url (required) – The page URL to audit. Must be publicly accessible.
- include_screenshot (optional, default:
true) – Include a base64 snapshot of the hero/above-the-fold area. - source (optional, default:
"web") – One of:webapiextensionwordpressshopifybatchtts
source, it is normalised to web.
Example Request
Response
Fields
- audit_id – Unique identifier for the audit.
- url – Final URL after redirects.
- requested_url – URL as originally requested.
- overall_score – Average of the four category scores.
- categories – Object containing category-level scores and issues:
performanceaccessibilitybest_practicesseo
- issues – Flattened list of issues with category prefixes for quick scanning.
- metrics – Structured on-page metrics (titles, descriptions, headings, links, word count, indexability, etc.).
- performance – Approximate timings:
load_time_msdom_content_loaded_mstime_to_first_byte_ms
- screenshot_base64 – Optional PNG screenshot of the hero/above-the-fold area, base64-encoded. Omitted when
include_screenshotisfalse.
Errors
Common error responses include:400– Missing or invalidurl.401– Invalidapi_key.402– Not enough credits (returned from the credit system).502– Upstream fetch failed for the target URL.