{"openapi":"3.1.0","info":{"title":"ROAS Expert free AI SEO audit","version":"1.0.0","description":"Audits a public website (crawling and indexing, on-page basics, structured data, AI search readiness and speed signals) or one product page (AI shopping readiness). Five requests per half hour per IP. An MCP server for Claude, ChatGPT and Cursor is at /mcp."},"servers":[{"url":"https://tools.roasexpert.com"}],"paths":{"/api/audit":{"post":{"summary":"Run an audit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"example.com"}}}}}},"responses":{"200":{"description":"Public view of the report: score, grade, platform, category scores, top three findings and a report link."},"400":{"description":"Bad URL"},"429":{"description":"Rate limited"}}},"get":{"summary":"Run an audit (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/product":{"post":{"summary":"Check one product page for AI shopping readiness","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"https://store.com/products/example"}}}}}},"responses":{"200":{"description":"Public view of the product report (kind \"product\": score, grade, platform, category scores, top three findings, the answers table and a /p/<id> link), or kind \"not_product\" with the signals looked for."},"400":{"description":"Bad URL or a homepage"},"429":{"description":"Rate limited"}}},"get":{"summary":"Check a product page (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/audit/{id}":{"get":{"summary":"Fetch a stored report","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Report"},"404":{"description":"Not found"}}}},"/mcp":{"post":{"summary":"MCP server (Streamable HTTP, JSON-RPC 2.0)","description":"Tools: audit_site, audit_product_page, check_agent_readiness, compare_sites, check_ai_visibility, get_report, unlock_report, list_checks, explain_fix. Three free audits a day per client. GET returns the connection details.","responses":{"200":{"description":"JSON-RPC response"}}}},"/api/prefill":{"get":{"summary":"Read a site for the llms.txt generator and the robots.txt builder","description":"Homepage title and meta description, detected CMS, the raw robots.txt and its status, the state of 11 AI bots under it, and the sitemap URLs grouped by first path segment with a suggested llms.txt section per group. Cached ten minutes per host; ten reads per half hour per IP.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","example":"example.com"}}],"responses":{"200":{"description":"Prefill result"},"400":{"description":"Bad URL"},"429":{"description":"Rate limited"},"502":{"description":"The site could not be read"}}}},"/api/agent-check":{"post":{"summary":"Can an AI shopping agent find, read and buy from this store?","description":"Read-only. About ten GET requests to public URLs. Returns a score, a verdict, three stages (find, read, buy) with a status, detail and fix per check, the bot access table and the product that was read. Cached ten minutes per host; six checks per half hour per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Agent report"},"400":{"description":"Bad URL"},"429":{"description":"Rate limited"},"502":{"description":"The store could not be read"}}},"get":{"summary":"Agent readiness check (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/stack":{"post":{"summary":"Theme, apps and tracking tags of a store","description":"Reads the homepage. Returns platform, theme (name, original Theme Store theme, version, renamed), apps grouped by category and tracking tags with IDs. Cached ten minutes; counts against the free daily scan allowance (10) unless cached; 12 scans per half hour per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Scan result"},"400":{"description":"Missing or bad URL"},"402":{"description":"Free daily scans used; the Pro pass lifts it"},"429":{"description":"Rate limited"}}},"get":{"summary":"Theme, apps and tracking tags of a store (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/pixels":{"post":{"summary":"Tracking pixels and tags on a page","description":"Reads one page. Returns tags with IDs and where they load (page code or Shopify app pixel), custom pixel count, consent tools, server-side hints and issues with fixes. Cached ten minutes; same scan allowance.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Scan result"},"400":{"description":"Missing or bad URL"},"402":{"description":"Free daily scans used; the Pro pass lifts it"},"429":{"description":"Rate limited"}}},"get":{"summary":"Tracking pixels and tags on a page (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/schema":{"post":{"summary":"Structured data (schema markup) check for a page","description":"Reads one page. Returns a score out of 100, the JSON-LD types found, required and recommended fields missing per node, parse errors, types to add and values to prefill the generator. Cached ten minutes; same scan allowance.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Scan result"},"400":{"description":"Missing or bad URL"},"402":{"description":"Free daily scans used; the Pro pass lifts it"},"429":{"description":"Rate limited"}}},"get":{"summary":"Structured data (schema markup) check for a page (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/redirects":{"post":{"summary":"Redirect chain of an address, plus the four http/https and www versions for a homepage","description":"Cached ten minutes; counts against the free daily scan allowance (10) unless cached; 12 scans per half hour per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Check result"},"400":{"description":"Missing or bad URL"},"402":{"description":"Free daily scans used"},"429":{"description":"Rate limited"}}},"get":{"summary":"Redirect chain of an address, plus the four http/https and www versions for a homepage (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/links":{"post":{"summary":"Broken links on one page (up to 40 checked)","description":"Cached ten minutes; counts against the free daily scan allowance (10) unless cached; 12 scans per half hour per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Check result"},"400":{"description":"Missing or bad URL"},"402":{"description":"Free daily scans used"},"429":{"description":"Rate limited"}}},"get":{"summary":"Broken links on one page (up to 40 checked) (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/meta":{"post":{"summary":"Title, description, canonical, Open Graph and X card check for one page","description":"Cached ten minutes; counts against the free daily scan allowance (10) unless cached; 12 scans per half hour per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"store.com"}}}}}},"responses":{"200":{"description":"Check result"},"400":{"description":"Missing or bad URL"},"402":{"description":"Free daily scans used"},"429":{"description":"Rate limited"}}},"get":{"summary":"Title, description, canonical, Open Graph and X card check for one page (query form)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Same as POST"}}}},"/api/compare":{"post":{"summary":"Audit two or three sites side by side","description":"Each site is one normal audit (same cache and per-IP limit as /api/audit). Returns the public view of each report plus a matrix of every check and its status. A site that cannot be audited comes back with an error and the others are still returned.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","minItems":2,"maxItems":3,"items":{"type":"string"},"example":["mine.com","rival.com"]}}}}}},"responses":{"200":{"description":"{sites: [...], comparedAt}"},"400":{"description":"Fewer than two sites, more than three, the same site twice or a bad URL"},"429":{"description":"Rate limited on every site"}}}},"/api/lead":{"post":{"summary":"Email gate for the generators","description":"Submits the generated file to the HubSpot form with the tool name and records a lead. Nothing is emailed from here.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","tool","payload"],"properties":{"email":{"type":"string"},"tool":{"type":"string","enum":["llms-txt","robots-ai"]},"payload":{"type":"object","properties":{"text":{"type":"string"},"site":{"type":"string"},"cms":{"type":"string"}}}}}}}},"responses":{"200":{"description":"{ok, hubspot}"},"400":{"description":"Bad email, unknown tool or empty payload"}}}},"/api/unlock":{"post":{"summary":"Unlock the full report with an email","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","email"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"newsletter":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Full report"}}}}}}