Skip to content

POST /api/v1/audit

Runs a full SEO audit for a given URL and returns a report ID once it completes.

POST https://seo-audit.seoltys.pl/api/v1/audit
Header Required Value
Authorization Yes Bearer YOUR_API_KEY
Content-Type Yes application/json
{
"url": "https://example.com"
}
Field Type Required Notes
url string Yes Must be http:// or https://. A bare domain (e.g. example.com) is treated as https://example.com. Max 2048 characters.
geo_quotability boolean No Opt in to the GEO Quotability Review add-on: an LLM-judged score of how well the page is written to be quoted/cited by AI answer engines (ChatGPT, Perplexity, Google AI Overviews, etc.). Requires a Pro plan or above — a Basic/free-tier key that sends true gets a 403 (see below). Defaults to false.
{ "report_id": 46, "status": "completed" }

200 OK with status: "failed" — audit ran but failed

Section titled “200 OK with status: "failed" — audit ran but failed”
{ "report_id": 47, "status": "failed", "error": "Audit failed." }

The report row still exists (useful for debugging/support) even though the audit itself didn’t succeed.

{ "error": "URL must be a valid http or https URL." }

401 Unauthorized — missing/invalid API key

Section titled “401 Unauthorized — missing/invalid API key”
{ "error": "Invalid API key." }

403 Forbidden — geo_quotability requested on a Basic/free plan

Section titled “403 Forbidden — geo_quotability requested on a Basic/free plan”
{ "error": "GEO Quotability Review is available on the Pro plan and above. Upgrade your plan to use this feature." }

429 Too Many Requests — rate limit or quota exceeded

Section titled “429 Too Many Requests — rate limit or quota exceeded”
{ "error": "Rate limit exceeded (10 requests/minute). Please slow down." }

See Rate limits & quotas for the full breakdown, and the Retry-After-style guidance there.

502 Bad Gateway — the audit engine itself failed

Section titled “502 Bad Gateway — the audit engine itself failed”

Returned when the audit couldn’t be performed at all (e.g. the target site is unreachable, times out, or blocks the audit’s requests). Retrying later, or checking that the URL is publicly reachable, is usually the right next step.

Audits typically take anywhere from a few seconds to a couple of minutes — they run a full headless-Chrome Lighthouse pass plus an AI review. Set your client’s request timeout to at least 200 seconds.

Only one audit can run per account at a time. A second request while one is already in progress for your account returns:

{ "status": "failed", "error": "An audit is already running for this account.", }

with HTTP status 429.