Quickstart
1. Get an API key
Section titled “1. Get an API key”Sign in to the dashboard and click Generate new API key under API keys. Copy the key immediately — it is shown exactly once and cannot be retrieved again.
2. Run an audit
Section titled “2. Run an audit”curl -X POST https://seo-audit.seoltys.pl/api/v1/audit \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com"}'A successful response looks like:
{ "report_id": 46, "status": "completed" }An audit typically takes anywhere from a few seconds to a couple of minutes (it runs a full headless-Chrome Lighthouse pass plus an AI review), so keep your client’s timeout generous — at least 200 seconds.
3. Get the PDF report
Section titled “3. Get the PDF report”The full report (findings, Core Web Vitals, structured data checks, AI commentary) is available as a PDF from your dashboard under Your reports. A direct, API-key-authenticated PDF download endpoint is planned but not yet available — for now, reports are viewed via the dashboard’s session-authenticated download link.
Node.js example
Section titled “Node.js example”const resp = await fetch("https://seo-audit.seoltys.pl/api/v1/audit", { method: "POST", headers: { Authorization: `Bearer ${process.env.SEO_AUDIT_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ url: "https://example.com" }),});
const data = await resp.json();console.log(data); // { report_id: 46, status: "completed" }Python example
Section titled “Python example”import osimport requests
resp = requests.post( "https://seo-audit.seoltys.pl/api/v1/audit", headers={"Authorization": f"Bearer {os.environ['SEO_AUDIT_API_KEY']}"}, json={"url": "https://example.com"}, timeout=200,)print(resp.json()) # {"report_id": 46, "status": "completed"}