{"openapi":"3.0.3","info":{"title":"Scanline Standard","version":"1.0.0","description":"Score one public page with Scanline Standard v1. The content score is our published standard for SEO, keyword placement, and GEO readiness. It is not a Google ranking. Performance is a separate PageSpeed Insights summary and is omitted from the content score when PSI_API_KEY is not configured. The MCP endpoint is POST /mcp."},"servers":[{"url":"https://scan.example"}],"paths":{"/api/v1/scan":{"post":{"operationId":"scanPage","summary":"Score one public URL","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRequest"}}}},"responses":{"200":{"description":"A deterministic content score plus an optional performance summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanReport"}}}},"400":{"description":"The URL is missing or not public.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The website form required a Turnstile token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The page could not be fetched as HTML.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The caller exceeded 8 scans per minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/standard":{"get":{"operationId":"getStandard","summary":"Published checks, weights, and version","parameters":[{"name":"lang","in":"query","schema":{"type":"string","enum":["en","zh-TW"]}}],"responses":{"200":{"description":"Scanline Standard v1 catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Standard"}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","responses":{"200":{"description":"OpenAPI document"}}}}},"components":{"schemas":{"ScanRequest":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"keyword":{"type":"string"},"lang":{"type":"string","enum":["en","zh-TW"]},"ui":{"type":"boolean","description":"True when the website form sent the request. A configured Turnstile secret is then required."},"turnstileToken":{"type":"string"}}},"Finding":{"type":"object","required":["id","pillar","maximum","earned","score","passed","reason","evidence","fix","retest"],"properties":{"id":{"type":"string"},"pillar":{"type":"string","enum":["seo","keyword","geo","performance"]},"maximum":{"type":"integer"},"earned":{"type":"integer"},"score":{"type":"integer"},"passed":{"type":"boolean"},"reason":{"type":"string"},"evidence":{"type":"string"},"fix":{"type":"string"},"retest":{"type":"string"}}},"ScanReport":{"type":"object","required":["standard","contentScore","pillars","weights","performance","findings","deductions","disclaimer"],"properties":{"standard":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"released":{"type":"string"}}},"url":{"type":"string","nullable":true},"keyword":{"type":"object","properties":{"value":{"type":"string"},"source":{"type":"string","enum":["request","title"]}}},"locale":{"type":"string","enum":["en","zh-TW"]},"contentScore":{"type":"integer","minimum":0,"maximum":100},"pillars":{"type":"object","properties":{"seo":{"type":"integer"},"keyword":{"type":"integer"},"geo":{"type":"integer"}}},"weights":{"type":"object","properties":{"seo":{"type":"integer"},"keyword":{"type":"integer"},"geo":{"type":"integer"}}},"performance":{"$ref":"#/components/schemas/Performance"},"findings":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"deductions":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"disclaimer":{"type":"string"}}},"Performance":{"type":"object","required":["status","strategy","inContentScore","findings"],"properties":{"status":{"type":"string","enum":["ok","unavailable","error"]},"source":{"type":"string","nullable":true},"strategy":{"type":"string","enum":["mobile"]},"score":{"type":"integer","nullable":true},"metrics":{"type":"object"},"findings":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"inContentScore":{"type":"boolean"}}},"Standard":{"type":"object","required":["id","version","weights","checks"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"released":{"type":"string"},"weights":{"type":"object"},"checks":{"type":"array","items":{"type":"object"}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}