{"openapi":"3.1.0","info":{"title":"Website Security Audit - Headers, SSL & Grade","description":"Website security audit in one call: security headers, CSP, cookies, HTTPS redirect, TLS certificate and versions, graded A+ to F with fixes.","version":"v1"},"servers":[{"url":"https://website-security-audit-headers-ssl-grade.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/site-audit/audit":{"get":{"tags":["Security Audit"],"summary":"Full security audit of a website, graded A+ to F, with fixes","description":"Audit a website's security, graded A+ to F: headers (CSP, HSTS...),\ncookies, version disclosure, HTTPS redirect, mixed content, TLS certificate\nand versions, security.txt. Each finding has its fix (header, nginx,\nApache, Cloudflare). 400 `site_unreachable` (not billed). 1 credit.","operationId":"auditWebsiteSecurity","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"description":"Website: a domain (`example.com`) or a page URL.","examples":["https://www.wikipedia.org"],"title":"Url"},"description":"Website: a domain (`example.com`) or a page URL."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityAudit"},"examples":{"Audit Website Security":{"summary":"Audit Website Security (real response)","value":{"url":"https://w3.org/","final_url":"https://www.w3.org/","status_code":200,"grade":"B","score":75,"summary":{"passed":13,"warnings":3,"failed":0,"info":4},"checks":[{"id":"csp","category":"headers","title":"Content-Security-Policy","status":"warn","points":-15,"value":"frame-ancestors 'self' https://cms.w3.org/ https://cms-dev.w3.org/; upgrade-insecure-requests","message":"CSP is weak: no default-src or script-src: scripts are not restricted.","fix":{"header":"Content-Security-Policy: frame-ancestors 'self' https://cms.w3.org/ https://cms-dev.w3.org/; upgrade-insecure-requests; default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data: https:; connect-src 'self' https:; object-src 'none'; base-uri 'self'; form-action 'self'","nginx":"add_header Content-Security-Policy \"frame-ancestors 'self' ...\" always;","apache":"Header always set Content-Security-Policy \"frame-ancestors 'self' ...\"","cloudflare":"Rules › Transform Rules › Modify Response Header › Set static header: Content-Security-Policy = ...","note":"Your directives, plus a script policy built from what this page loads. Deploy it first as Content-Security-Policy-Report-Only."}},{"id":"referrer_policy","category":"headers","title":"Referrer-Policy","status":"warn","points":-5,"message":"No Referrer-Policy: set one so full URLs (and what they carry) are not sent to other sites.","fix":{"header":"Referrer-Policy: strict-origin-when-cross-origin","nginx":"add_header Referrer-Policy \"strict-origin-when-cross-origin\" always;","apache":"Header always set Referrer-Policy \"strict-origin-when-cross-origin\"","cloudflare":"Rules › Transform Rules › Modify Response Header › Set static header: Referrer-Policy = strict-origin-when-cross-origin"}},{"id":"certificate","category":"tls","title":"TLS certificate","status":"pass","points":0,"value":"Google Trust Services, expires 2027-02-02","message":"Valid and trusted, 69 days left."},{"id":"tls_versions","category":"tls","title":"TLS protocol versions","status":"pass","points":0,"value":"TLS 1.2, TLS 1.3","message":"Only TLS 1.2 and 1.3."},{"id":"http_redirect","category":"https","title":"HTTP to HTTPS redirect","status":"pass","points":0,"value":"https://www.w3.org/","message":"http:// redirects to HTTPS (301)."},{"id":"hsts","category":"headers","title":"Strict-Transport-Security (HSTS)","status":"pass","points":0,"value":"max-age=15552000; includeSubdomains; preload","message":"HSTS for 180 days."},{"...":"14 more checks"}],"headers":{"strict-transport-security":"max-age=15552000; includeSubdomains; preload","content-security-policy":"frame-ancestors 'self' https://cms.w3.org/ https://cms-dev.w3.org/; upgrade-insecure-requests","x-content-type-options":"nosniff","server":"cloudflare","content-type":"text/html; charset=UTF-8"},"cookies":[{"name":"__cf_bm","secure":true,"http_only":true,"same_site":"None"}],"redirects":[{"url":"https://w3.org/","status":301,"location":"https://www.w3.org/"}],"http_redirects":[{"url":"http://w3.org/","status":301,"location":"https://www.w3.org/"}],"fixes":{"nginx":"# Content-Security-Policy\nadd_header Content-Security-Policy \"...\" always;\n# Referrer-Policy\nadd_header Referrer-Policy \"strict-origin-when-cross-origin\" always;\n# Permissions-Policy\nadd_header Permissions-Policy \"camera=(), microphone=(), geolocation=(), payment=(), usb=()\" always;","apache":"# Content-Security-Policy\nHeader always set Content-Security-Policy \"...\"\n# Referrer-Policy\nHeader always set Referrer-Policy \"strict-origin-when-cross-origin\"\n...","cloudflare":["Rules › Transform Rules › Modify Response Header › Set static header: Referrer-Policy = strict-origin-when-cross-origin","..."]},"tls":{"certificate":{"domain":"w3.org","valid":true,"issuer":"WE1","issuer_organization":"Google Trust Services","names":["w3.org","*.w3.org"],"valid_until":"2027-02-02T05:48:26Z","days_remaining":69,"key":"EC 256","protocol":"TLSv1.3"},"protocols":{"tls_1_0":false,"tls_1_1":false,"tls_1_2":true,"tls_1_3":true}},"files":{"security_txt":{"found":false,"has_contact":false,"signed":false},"robots_txt":{"found":true,"url":"https://www.w3.org/robots.txt","sitemaps":0}},"notes":["The page has 3 inline script(s): give them a nonce or move them to files before enforcing a strict CSP.","Headers checked on https://www.w3.org/, where the site redirects."],"checked_at":"2026-11-24T20:14:18Z"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Audit Website Security"}},"/v1/site-audit/audit/bulk":{"post":{"tags":["Security Audit"],"summary":"Audit up to 10 websites in one call","description":"The same audit for up to 10 websites, run in parallel, in order. A site\nthat cannot be reached gets its `error` and is not billed. 1 credit per\nwebsite audited.","operationId":"auditWebsitesInBulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditBulkRequest"},"examples":{"Audit Websites in Bulk":{"summary":"Audit Websites in Bulk","value":{"urls":["github.com","http://neverssl.com","expired.badssl.com"]}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditBulkResponse"},"examples":{"Audit Websites in Bulk":{"summary":"Audit Websites in Bulk","value":{"results":[{"audit":{"url":"https://www.wikipedia.org","status_code":200,"grade":"B","score":80,"grade_cap":{"grade":"A+"},"summary":{},"checks":[{"id":"hsts","category":"https","title":"Strict-Transport-Security (HSTS)","status":"pass","points":-20,"fix":{"header":"Strict-Transport-Security: max-age=31536000; includeSubDomains","nginx":"add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;","apache":"Header always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\""}}],"headers":{},"cookies":[{"name":"session","same_site":"Lax"}],"redirects":[{"status":301}],"fixes":{},"http_redirects":[{"status":301}],"tls":{"certificate":{"issuer":"Let's Encrypt","key":"EC 256","protocol":"TLSv1.3"},"protocols":{}},"files":{"security_txt":{"has_contact":false,"expires":"2027-06-30T00:00:00Z","signed":false},"robots_txt":{"sitemaps":0}},"checked_at":"2026-11-25T10:00:00Z"},"error":{"code":"site_unreachable"}}],"summary":{"audited":2,"failed":1}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Audit Websites in Bulk"}},"/v1/site-audit/headers":{"get":{"tags":["Headers"],"summary":"Grade the security headers and cookies of one page","description":"One request to the page: security headers, cookies, version disclosure\nand mixed content, graded, with fixes and a starter Content-Security-Policy\nbuilt from what the page loads. Faster than the full audit (no TLS, no\nfiles). 1 credit.","operationId":"checkSecurityHeaders","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"description":"Website: a domain (`example.com`) or a page URL.","examples":["https://www.wikipedia.org"],"title":"Url"},"description":"Website: a domain (`example.com`) or a page URL."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadersReport"},"examples":{"Check Security Headers":{"summary":"Check Security Headers","value":{"url":"https://www.wikipedia.org","status_code":200,"grade":"B","score":80,"grade_cap":{"grade":"A+"},"summary":{},"checks":[{"id":"hsts","category":"https","title":"Strict-Transport-Security (HSTS)","status":"pass","points":-20,"fix":{"header":"Strict-Transport-Security: max-age=31536000; includeSubDomains","nginx":"add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;","apache":"Header always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\""}}],"headers":{},"cookies":[{"name":"session","same_site":"Lax"}],"redirects":[{"status":301}],"fixes":{}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Check Security Headers"}},"/v1/site-audit/headers/analyze":{"post":{"tags":["Headers"],"summary":"Grade response headers you paste (staging, CI)","description":"Grade a set of response headers without fetching anything: paste the\noutput of `curl -I`, or send them as a JSON object. For staging servers,\nintranets and CI pipelines that the internet cannot reach. 1 credit.","operationId":"analyzeSecurityHeaders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadersAnalyzeRequest"},"examples":{"Analyze Security Headers":{"summary":"Analyze Security Headers","value":{"https":true,"raw":"HTTP/2 200\ncontent-type: text/html\nserver: nginx/1.18.0\nx-frame-options: SAMEORIGIN\nset-cookie: session=abc; Path=/; HttpOnly"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadersReport"},"examples":{"Analyze Security Headers":{"summary":"Analyze Security Headers","value":{"url":"https://www.wikipedia.org","status_code":200,"grade":"B","score":80,"grade_cap":{"grade":"A+"},"summary":{},"checks":[{"id":"hsts","category":"https","title":"Strict-Transport-Security (HSTS)","status":"pass","points":-20,"fix":{"header":"Strict-Transport-Security: max-age=31536000; includeSubDomains","nginx":"add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;","apache":"Header always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\""}}],"headers":{},"cookies":[{"name":"session","same_site":"Lax"}],"redirects":[{"status":301}],"fixes":{}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Analyze Security Headers"}},"/v1/site-audit/tls":{"get":{"tags":["TLS"],"summary":"Certificate validity and expiry, and TLS versions accepted","description":"Certificate (trusted chain, name, issuer, days left, key) and the\nprotocol versions the server accepts on port 443: TLS 1.0 and 1.1\n(deprecated), 1.2 and 1.3, graded with fixes. 1 credit.","operationId":"checkTlsAndCertificate","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string","maxLength":300,"description":"Host name, or any URL of it.","examples":["www.wikipedia.org"],"title":"Host"},"description":"Host name, or any URL of it."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TlsReport"},"examples":{"Check TLS and Certificate":{"summary":"Check TLS and Certificate","value":{"host":"www.wikipedia.org","grade":"A+","grade_cap":{"grade":"A+"},"summary":{},"checks":[{"id":"hsts","category":"https","title":"Strict-Transport-Security (HSTS)","status":"pass","points":-20,"fix":{"header":"Strict-Transport-Security: max-age=31536000; includeSubDomains","nginx":"add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;","apache":"Header always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\""}}],"certificate":{"issuer":"Let's Encrypt","key":"EC 256","protocol":"TLSv1.3"},"protocols":{},"fixes":{}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Check TLS and Certificate"}}},"components":{"schemas":{"AuditBulkError":{"properties":{"code":{"type":"string","title":"Code","examples":["site_unreachable"]},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"AuditBulkError"},"AuditBulkItem":{"properties":{"input":{"type":"string","title":"Input"},"audit":{"anyOf":[{"$ref":"#/components/schemas/SecurityAudit"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/AuditBulkError"},{"type":"null"}]}},"type":"object","required":["input"],"title":"AuditBulkItem"},"AuditBulkRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","title":"Urls","description":"Websites (domains or URLs), 10 at most.","examples":[["github.com","http://neverssl.com","expired.badssl.com"]]}},"type":"object","required":["urls"],"title":"AuditBulkRequest"},"AuditBulkResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/AuditBulkItem"},"type":"array","title":"Results"},"summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Summary","examples":[{"audited":2,"failed":1}]}},"type":"object","required":["results","summary"],"title":"AuditBulkResponse"},"Certificate":{"properties":{"domain":{"type":"string","title":"Domain"},"host":{"type":"string","title":"Host"},"valid":{"type":"boolean","title":"Valid","description":"Trusted chain, matching name, not expired."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why it is not valid."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer","examples":["Let's Encrypt"]},"issuer_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer Organization"},"names":{"items":{"type":"string"},"type":"array","title":"Names","description":"Subject alternative names."},"valid_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial"},"signature_algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Algorithm"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key","examples":["EC 256"]},"protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol","examples":["TLSv1.3"]},"cipher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cipher"}},"type":"object","required":["domain","host","valid"],"title":"Certificate"},"CheckSummary":{"properties":{"passed":{"type":"integer","title":"Passed"},"warnings":{"type":"integer","title":"Warnings"},"failed":{"type":"integer","title":"Failed"},"info":{"type":"integer","title":"Info"}},"type":"object","required":["passed","warnings","failed","info"],"title":"CheckSummary"},"CookieFlags":{"properties":{"name":{"type":"string","title":"Name","examples":["session"]},"secure":{"type":"boolean","title":"Secure"},"http_only":{"type":"boolean","title":"Http Only"},"same_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Same Site","examples":["Lax"]}},"type":"object","required":["name","secure","http_only"],"title":"CookieFlags","description":"A cookie the server sets (name and flags only, never the value)."},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"GradeCap":{"properties":{"grade":{"type":"string","enum":["A+","A","B","C","D","F"],"title":"Grade"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["grade","reason"],"title":"GradeCap"},"HeadersAnalyzeRequest":{"properties":{"headers":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"type":"object"},{"type":"null"}],"title":"Headers","description":"Response headers, name -> value (a list for several Set-Cookie lines)."},"raw":{"anyOf":[{"type":"string","maxLength":60000},{"type":"null"}],"title":"Raw","description":"Or the raw header block, as printed by `curl -I`."},"https":{"type":"boolean","title":"Https","description":"Whether the page is served over HTTPS (HSTS applies).","default":true}},"type":"object","title":"HeadersAnalyzeRequest","examples":[{"https":true,"raw":"HTTP/2 200\ncontent-type: text/html\nserver: nginx/1.18.0\nx-frame-options: SAMEORIGIN\nset-cookie: session=abc; Path=/; HttpOnly"}]},"HeadersReport":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","examples":["https://www.wikipedia.org"]},"final_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Url","description":"After redirects."},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code","examples":[200]},"grade":{"type":"string","enum":["A+","A","B","C","D","F"],"title":"Grade","examples":["B"]},"score":{"type":"integer","title":"Score","description":"0-100.","examples":[80]},"grade_cap":{"anyOf":[{"$ref":"#/components/schemas/GradeCap"},{"type":"null"}],"description":"A critical problem that limits the grade."},"summary":{"$ref":"#/components/schemas/CheckSummary"},"checks":{"items":{"$ref":"#/components/schemas/SecurityCheck"},"type":"array","title":"Checks","description":"Worst first: fail, warn, info, pass."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"The security-relevant response headers, as received."},"cookies":{"items":{"$ref":"#/components/schemas/CookieFlags"},"type":"array","title":"Cookies"},"redirects":{"items":{"$ref":"#/components/schemas/RedirectHop"},"type":"array","title":"Redirects"},"fixes":{"$ref":"#/components/schemas/ServerFixes"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["grade","score","summary","checks","fixes"],"title":"HeadersReport"},"RedirectHop":{"properties":{"url":{"type":"string","title":"Url"},"status":{"type":"integer","title":"Status","examples":[301]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","required":["url","status"],"title":"RedirectHop"},"RobotsTxt":{"properties":{"found":{"type":"boolean","title":"Found"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"sitemaps":{"type":"integer","title":"Sitemaps","description":"Sitemap lines in the file.","default":0}},"type":"object","required":["found"],"title":"RobotsTxt"},"SecurityAudit":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","examples":["https://www.wikipedia.org"]},"final_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Url","description":"After redirects."},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code","examples":[200]},"grade":{"type":"string","enum":["A+","A","B","C","D","F"],"title":"Grade","examples":["B"]},"score":{"type":"integer","title":"Score","description":"0-100.","examples":[80]},"grade_cap":{"anyOf":[{"$ref":"#/components/schemas/GradeCap"},{"type":"null"}],"description":"A critical problem that limits the grade."},"summary":{"$ref":"#/components/schemas/CheckSummary"},"checks":{"items":{"$ref":"#/components/schemas/SecurityCheck"},"type":"array","title":"Checks","description":"Worst first: fail, warn, info, pass."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"The security-relevant response headers, as received."},"cookies":{"items":{"$ref":"#/components/schemas/CookieFlags"},"type":"array","title":"Cookies"},"redirects":{"items":{"$ref":"#/components/schemas/RedirectHop"},"type":"array","title":"Redirects"},"fixes":{"$ref":"#/components/schemas/ServerFixes"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"http_redirects":{"items":{"$ref":"#/components/schemas/RedirectHop"},"type":"array","title":"Http Redirects","description":"What http:// answers."},"tls":{"anyOf":[{"$ref":"#/components/schemas/TlsResult"},{"type":"null"}]},"files":{"anyOf":[{"$ref":"#/components/schemas/WellKnownFiles"},{"type":"null"}]},"checked_at":{"type":"string","title":"Checked At","examples":["2026-11-25T10:00:00Z"]}},"type":"object","required":["grade","score","summary","checks","fixes","checked_at"],"title":"SecurityAudit"},"SecurityCheck":{"properties":{"id":{"type":"string","title":"Id","examples":["hsts"]},"category":{"type":"string","enum":["https","tls","headers","cookies","content","files"],"title":"Category"},"title":{"type":"string","title":"Title","examples":["Strict-Transport-Security (HSTS)"]},"status":{"type":"string","enum":["pass","warn","fail","info"],"title":"Status","description":"fail and warn lower the score; info is advice that does not."},"points":{"type":"integer","title":"Points","description":"Effect on the score: a deduction (negative), a bonus (positive) or 0.","default":0,"examples":[-20]},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"What the site sends."},"message":{"type":"string","title":"Message"},"fix":{"anyOf":[{"$ref":"#/components/schemas/SecurityFix"},{"type":"null"}]}},"type":"object","required":["id","category","title","status","message"],"title":"SecurityCheck"},"SecurityFix":{"properties":{"header":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header","description":"The exact response header to send.","examples":["Strict-Transport-Security: max-age=31536000; includeSubDomains"]},"nginx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nginx","examples":["add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;"]},"apache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apache","examples":["Header always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\""]},"cloudflare":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudflare","description":"Where to set it in the Cloudflare dashboard."},"file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File","description":"A file to publish (security.txt, robots.txt)."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"SecurityFix","description":"How to fix one finding: the exact line, and where to put it."},"SecurityTxt":{"properties":{"found":{"type":"boolean","title":"Found"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"has_contact":{"type":"boolean","title":"Has Contact","default":false},"expires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires","examples":["2027-06-30T00:00:00Z"]},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expired"},"signed":{"type":"boolean","title":"Signed","description":"PGP-signed file.","default":false}},"type":"object","required":["found"],"title":"SecurityTxt"},"ServerFixes":{"properties":{"nginx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nginx"},"apache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apache"},"cloudflare":{"items":{"type":"string"},"type":"array","title":"Cloudflare"}},"type":"object","title":"ServerFixes","description":"Every header fix of the failed and warned checks, in one block."},"TlsProtocols":{"properties":{"tls_1_0":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls 1 0"},"tls_1_1":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls 1 1"},"tls_1_2":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls 1 2"},"tls_1_3":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls 1 3"}},"type":"object","title":"TlsProtocols","description":"Protocol versions the server accepts (null: could not be tested)."},"TlsReport":{"properties":{"host":{"type":"string","title":"Host","examples":["www.wikipedia.org"]},"grade":{"type":"string","enum":["A+","A","B","C","D","F"],"title":"Grade"},"score":{"type":"integer","title":"Score"},"grade_cap":{"anyOf":[{"$ref":"#/components/schemas/GradeCap"},{"type":"null"}]},"summary":{"$ref":"#/components/schemas/CheckSummary"},"checks":{"items":{"$ref":"#/components/schemas/SecurityCheck"},"type":"array","title":"Checks"},"certificate":{"anyOf":[{"$ref":"#/components/schemas/Certificate"},{"type":"null"}]},"protocols":{"anyOf":[{"$ref":"#/components/schemas/TlsProtocols"},{"type":"null"}]},"fixes":{"$ref":"#/components/schemas/ServerFixes"}},"type":"object","required":["host","grade","score","summary","checks","fixes"],"title":"TlsReport"},"TlsResult":{"properties":{"certificate":{"anyOf":[{"$ref":"#/components/schemas/Certificate"},{"type":"null"}]},"protocols":{"anyOf":[{"$ref":"#/components/schemas/TlsProtocols"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why TLS could not be read."}},"type":"object","title":"TlsResult"},"WellKnownFiles":{"properties":{"security_txt":{"$ref":"#/components/schemas/SecurityTxt"},"robots_txt":{"$ref":"#/components/schemas/RobotsTxt"}},"type":"object","required":["security_txt","robots_txt"],"title":"WellKnownFiles"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Security Audit","description":"Full audit of a website, or up to 10, graded A+ to F."},{"name":"Headers","description":"Security headers and cookies of a page, or of headers you paste."},{"name":"TLS","description":"Certificate validity and expiry, and TLS versions accepted."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}