{"openapi":"3.0.3","info":{"title":"SerpSummary Developer API","version":"1.0.0","description":"Keyword data — search volume, CPC, competition, 12 months of history, keyword ideas — and site reports, from your own code. The same numbers the SerpSummary dashboard and Chrome extension show.\n\n## Quickstart\n\n1. **Get a key.** Sign in and open the [Developer API page](https://serpsummary.com/developer-api). Make a free **sandbox key** (`ss_test_…`) to try everything with sample data; a **live key** (`ss_live_…`) is available once API access is switched on for your account.\n2. **Send a request.**\n\n```bash\ncurl -X POST https://serpsummary.com/v1/api/keywords \\\n  -H \"Authorization: Bearer ss_test_YOUR_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"keywords\": [\"running shoes\", \"trail running shoes\"], \"country\": \"US\"}'\n```\n\n3. **Read the answer.** Every data answer has `data`, plus `credits` with what was charged and what's left (also in the `X-Credits-Remaining` header).\n\nYou can send requests from this page too: open an endpoint below, paste your key under **Authentication**, and press **Send**. Your key stays in your browser and goes straight to our API.\n\n## Authentication\n\nSend your key in the `Authorization` header on every request:\n\n```\nAuthorization: Bearer ss_live_…\n```\n\nKeys are shown once, when you make them; we store only a hash. Making a new key replaces the old one of the same kind at once, and revoking it stops it at once. Keep live keys on your server — never in a web page or app people can download.\n\n| Key | Prefix | Data | Charged | Needs |\n| --- | --- | --- | --- | --- |\n| Live | `ss_live_` | Real, from Google Keyword Planner and our site index | API credits | API access switched on |\n| Sandbox | `ss_test_` | Sample data, same shape | Nothing | Any account |\n\n## Sandbox\n\nA sandbox key answers every endpoint with **sample data** in exactly the live format — same fields, same validation, same errors — and never charges credits. Use it to build and test your integration, then swap the key for a live one. Sandbox answers carry `\"sandbox\": true` and the header `X-Sandbox: true`. Limits: 1 request a second and 500 a day per account.\n\n## Credits and pricing\n\nAPI credits are separate from dashboard plans: bought once, they never expire and aren't refilled.\n\n| Request | Cost |\n| --- | --- |\n| `POST /keywords` | 1 credit per distinct keyword |\n| `POST /keyword-ideas` | 1 credit per idea returned (`limit` is held while it runs; unused credits come back) |\n| `POST /site` | 10 credits per report |\n| `GET /account`, `GET /locations` | Free |\n\nCredits cost **$0.20 per 1,000**, from 100,000 credits ($20.00). A request that fails is not charged — credits held for it are given back.\n\n## Rate limits\n\n- **1 request a second per account** across all its keys — put up to 1,000 keywords in one request rather than one per call.\n- 120 requests a minute per IP address, checked before the key.\n- Over a limit: **429** with a `Retry-After` header (seconds). Wait that long and send it again.\n\n## Errors\n\nErrors are JSON: `{ \"error\": \"…\" }`. A 400 names the field first (`\"keywords: Array must contain at most 1000 element(s)\"`). Request bodies are strict: an unknown field (a typo such as `\"location\"`) is a 400, never silently ignored.\n\n| Status | Meaning | What to do |\n| --- | --- | --- |\n| 400 | The request is invalid | Fix the named field |\n| 401 | Missing, unknown or revoked key | Check the `Authorization` header |\n| 402 | Not enough API credits | Buy credits on the Developer API page |\n| 403 | API access isn't switched on for this account | Request access, or use a sandbox key |\n| 429 | Over a rate limit | Wait `Retry-After` seconds |\n| 502 | The data provider failed | Try again; nothing was charged |\n| 503 | Busy | Wait `Retry-After` seconds |\n\n## For AI tools\n\nThe whole reference as one Markdown file for AI coding assistants: [llms.txt](https://docs.serpsummary.com/llms.txt). The OpenAPI document: [openapi.json](https://docs.serpsummary.com/openapi.json) — import it into Postman or generate a client with any OpenAPI generator.\n","contact":{"name":"SerpSummary","url":"https://serpsummary.com/contact"},"termsOfService":"https://serpsummary.com/terms"},"servers":[{"url":"https://serpsummary.com/v1/api","description":"SerpSummary API"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Keywords","description":"Search volume, CPC, competition, history and ideas — Google Keyword Planner's numbers."},{"name":"Sites","description":"Everything the SerpSummary extension's result card shows about a site or page."},{"name":"Account","description":"Credits, limits and the codes the other endpoints accept. Free."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your key: `ss_live_…` (live) or `ss_test_…` (sandbox — sample data, free)."}}},"paths":{"/keywords":{"post":{"operationId":"getKeywordData","tags":["Keywords"],"summary":"Keyword data","description":"Search volume, CPC, competition and 12 months of search history for up to 1,000 keywords in one country and language. **Cost:** 1 credit per distinct keyword.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":1,"maxItems":1000,"description":"Up to 1,000 keywords, 1–80 characters each. Duplicates (any case) are looked up and charged once."},"country":{"type":"string","default":"US","description":"Country of the search volumes: an ISO 3166-1 code, or \"GLOBAL\". Codes: GET /locations."},"language":{"type":"string","default":"en","description":"Language of the searches. Codes: GET /locations."},"network":{"type":"string","enum":["GOOGLE_SEARCH","GOOGLE_SEARCH_AND_PARTNERS"],"default":"GOOGLE_SEARCH","description":"Google Search only, or Google Search + search partners (Keyword Planner's two networks)."}},"required":["keywords"],"additionalProperties":false},"example":{"keywords":["running shoes","trail running shoes"],"country":"US","language":"en"}}}},"responses":{"200":{"description":"OK","headers":{"X-Credits-Remaining":{"description":"API credits left after this request","schema":{"type":"integer"}},"X-Sandbox":{"description":"\"true\" on sandbox answers","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"volume":{"type":"integer","description":"Average monthly searches"},"cpc":{"type":"number","description":"USD, the midpoint of the low and high top-of-page bids"},"cpcLow":{"type":"number"},"cpcHigh":{"type":"number"},"competition":{"type":"number","description":"Google Ads competition, 0–1"},"competitionLevel":{"type":"string","enum":["LOW","MEDIUM","HIGH","UNKNOWN"]},"trend":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"YYYY-MM"},"volume":{"type":"integer"}},"required":["month","volume"],"additionalProperties":false},"description":"Up to 12 months of searches, oldest first; the last is the newest month Keyword Planner has published"},"position":{"type":"integer","description":"Domain ideas only: the site's position in Google for the keyword"}},"required":["keyword","volume","cpc","cpcLow","cpcHigh","competition","competitionLevel","trend"],"additionalProperties":false}},"country":{"type":"string"},"language":{"type":"string"},"credits":{"type":"object","properties":{"charged":{"type":"integer","description":"Credits this request used"},"remaining":{"type":"integer","description":"API credits left on the account"}},"required":["charged","remaining"],"additionalProperties":false},"sandbox":{"type":"boolean","enum":[true],"description":"Present on sandbox (ss_test_) answers: sample data, nothing charged"}},"required":["data","country","language","credits"],"additionalProperties":false},"example":{"data":[{"keyword":"running shoes","volume":5000,"cpc":4.3,"cpcLow":0.16,"cpcHigh":8.44,"competition":0.78,"competitionLevel":"HIGH","trend":[{"month":"2025-11","volume":5720},{"month":"2025-12","volume":5872},{"month":"2026-01","volume":5863},{"month":"2026-02","volume":6382},{"month":"2026-03","volume":5829},{"month":"2026-04","volume":5914},{"month":"2026-05","volume":5062},{"month":"2026-06","volume":5050},{"month":"2026-07","volume":4879},{"month":"2026-08","volume":4149},{"month":"2026-09","volume":4001},{"month":"2026-10","volume":4816}]},{"keyword":"trail running shoes","volume":100000,"cpc":3.96,"cpcLow":2.06,"cpcHigh":5.86,"competition":0.87,"competitionLevel":"HIGH","trend":[{"month":"2025-11","volume":97464},{"month":"2025-12","volume":109666},{"month":"2026-01","volume":110581},{"month":"2026-02","volume":109803},{"month":"2026-03","volume":125216},{"month":"2026-04","volume":109758},{"month":"2026-05","volume":104149},{"month":"2026-06","volume":101141},{"month":"2026-07","volume":79624},{"month":"2026-08","volume":80020},{"month":"2026-09","volume":84100},{"month":"2026-10","volume":97227}]}],"country":"US","language":"en","credits":{"charged":2,"remaining":99998}}}}},"400":{"description":"The request is invalid — the message names the field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Not enough API credits; nothing was charged","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Developer API access isn't switched on for this account (live keys)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Over a rate limit — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"502":{"description":"The data provider failed; nothing was charged","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Busy — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}}}}},"/keyword-ideas":{"post":{"operationId":"getKeywordIdeas","tags":["Keywords"],"summary":"Keyword ideas","description":"Keyword ideas with their data, from **one** of: seed keywords (related searches), a page URL (ideas for that page) or a domain (the keywords the site ranks for in Google, with positions). **Cost:** 1 credit per idea returned; `limit` credits are held while it runs and the unused part comes back.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":1,"maxItems":20,"description":"Seed keywords (1–20): ideas related to them."},"url":{"type":"string","maxLength":2048,"format":"uri","description":"One page: keyword ideas for that page."},"domain":{"type":"string","minLength":3,"maxLength":253,"description":"A whole site: the keywords it ranks for in Google, with positions."},"limit":{"type":"integer","minimum":1,"maximum":1000,"default":100,"description":"Most ideas to return. This many credits are held; unused ones are given back."},"country":{"type":"string","default":"US","description":"Country of the search volumes: an ISO 3166-1 code, or \"GLOBAL\". Codes: GET /locations."},"language":{"type":"string","default":"en","description":"Language of the searches. Codes: GET /locations."},"network":{"type":"string","enum":["GOOGLE_SEARCH","GOOGLE_SEARCH_AND_PARTNERS"],"default":"GOOGLE_SEARCH","description":"Google Search only, or Google Search + search partners (Keyword Planner's two networks)."}},"additionalProperties":false},"example":{"keywords":["running shoes"],"limit":50,"country":"US"}}}},"responses":{"200":{"description":"OK","headers":{"X-Credits-Remaining":{"description":"API credits left after this request","schema":{"type":"integer"}},"X-Sandbox":{"description":"\"true\" on sandbox answers","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"volume":{"type":"integer","description":"Average monthly searches"},"cpc":{"type":"number","description":"USD, the midpoint of the low and high top-of-page bids"},"cpcLow":{"type":"number"},"cpcHigh":{"type":"number"},"competition":{"type":"number","description":"Google Ads competition, 0–1"},"competitionLevel":{"type":"string","enum":["LOW","MEDIUM","HIGH","UNKNOWN"]},"trend":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"YYYY-MM"},"volume":{"type":"integer"}},"required":["month","volume"],"additionalProperties":false},"description":"Up to 12 months of searches, oldest first; the last is the newest month Keyword Planner has published"},"position":{"type":"integer","description":"Domain ideas only: the site's position in Google for the keyword"}},"required":["keyword","volume","cpc","cpcLow","cpcHigh","competition","competitionLevel","trend"],"additionalProperties":false}},"seed":{"type":"object","properties":{"type":{"type":"string","enum":["keywords","url","domain"]},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["type","value"],"additionalProperties":false},"country":{"type":"string"},"language":{"type":"string"},"credits":{"type":"object","properties":{"charged":{"type":"integer","description":"Credits this request used"},"remaining":{"type":"integer","description":"API credits left on the account"}},"required":["charged","remaining"],"additionalProperties":false},"sandbox":{"type":"boolean","enum":[true],"description":"Present on sandbox (ss_test_) answers: sample data, nothing charged"}},"required":["data","seed","country","language","credits"],"additionalProperties":false},"example":{"data":[{"keyword":"running shoes tool","volume":50000,"cpc":7.34,"cpcLow":2.85,"cpcHigh":11.83,"competition":0.82,"competitionLevel":"HIGH","trend":[{"month":"2025-11","volume":49690},{"month":"2025-12","volume":55783},{"month":"2026-01","volume":56945},{"month":"2026-02","volume":55683},{"month":"2026-03","volume":55785},{"month":"2026-04","volume":54559},{"month":"2026-05","volume":46826},{"month":"2026-06","volume":49102},{"month":"2026-07","volume":46523},{"month":"2026-08","volume":46694},{"month":"2026-09","volume":43915},{"month":"2026-10","volume":42908}]},{"keyword":"running shoes software","volume":10000,"cpc":5.3,"cpcLow":0.45,"cpcHigh":10.14,"competition":0.45,"competitionLevel":"MEDIUM","trend":[{"month":"2025-11","volume":9579},{"month":"2025-12","volume":11389},{"month":"2026-01","volume":11143},{"month":"2026-02","volume":10609},{"month":"2026-03","volume":11551},{"month":"2026-04","volume":11457},{"month":"2026-05","volume":10803},{"month":"2026-06","volume":9606},{"month":"2026-07","volume":7668},{"month":"2026-08","volume":8390},{"month":"2026-09","volume":9531},{"month":"2026-10","volume":9201}]},{"keyword":"running shoes free","volume":100,"cpc":4.73,"cpcLow":1.76,"cpcHigh":7.69,"competition":0.39,"competitionLevel":"MEDIUM","trend":[{"month":"2025-11","volume":87},{"month":"2025-12","volume":96},{"month":"2026-01","volume":100},{"month":"2026-02","volume":112},{"month":"2026-03","volume":114},{"month":"2026-04","volume":111},{"month":"2026-05","volume":87},{"month":"2026-06","volume":91},{"month":"2026-07","volume":90},{"month":"2026-08","volume":91},{"month":"2026-09","volume":94},{"month":"2026-10","volume":87}]},{"keyword":"running shoes online","volume":50000,"cpc":7.01,"cpcLow":3.95,"cpcHigh":10.07,"competition":0.57,"competitionLevel":"MEDIUM","trend":[{"month":"2025-11","volume":48372},{"month":"2025-12","volume":54359},{"month":"2026-01","volume":58106},{"month":"2026-02","volume":55509},{"month":"2026-03","volume":51198},{"month":"2026-04","volume":51644},{"month":"2026-05","volume":47311},{"month":"2026-06","volume":48777},{"month":"2026-07","volume":39209},{"month":"2026-08","volume":37302},{"month":"2026-09","volume":45208},{"month":"2026-10","volume":47174}]},{"keyword":"running shoes best","volume":500,"cpc":3.12,"cpcLow":2.9,"cpcHigh":3.34,"competition":0.57,"competitionLevel":"MEDIUM","trend":[{"month":"2025-11","volume":507},{"month":"2025-12","volume":539},{"month":"2026-01","volume":510},{"month":"2026-02","volume":550},{"month":"2026-03","volume":519},{"month":"2026-04","volume":517},{"month":"2026-05","volume":443},{"month":"2026-06","volume":489},{"month":"2026-07","volume":419},{"month":"2026-08","volume":431},{"month":"2026-09","volume":394},{"month":"2026-10","volume":477}]}],"seed":{"type":"keywords","value":["running shoes"]},"country":"US","language":"en","credits":{"charged":5,"remaining":99993}}}}},"400":{"description":"The request is invalid — the message names the field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Not enough API credits; nothing was charged","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Developer API access isn't switched on for this account (live keys)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Over a rate limit — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"502":{"description":"The data provider failed; nothing was charged","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Busy — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}}}}},"/site":{"post":{"operationId":"getSiteReport","tags":["Sites"],"summary":"Site report","description":"What the SerpSummary extension's result card shows for a site — authority, traffic, ranks, site checks, speed, what it is and sells, tech stack, analytics, ad pixels and ad libraries — and, given a `url`, that page's own numbers. A site we haven't read before is crawled first, which can take up to a minute. A part whose source failed is `null`. **Cost:** 10 credits per report.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri","description":"A page: its own numbers, plus its site's."},"domain":{"type":"string","minLength":3,"maxLength":253,"description":"A whole site, e.g. \"example.com\"."},"country":{"type":"string","default":"US","description":"Country of the keyword and traffic numbers. Default \"US\"."}},"additionalProperties":false},"example":{"domain":"example.com","country":"US"}}}},"responses":{"200":{"description":"OK","headers":{"X-Credits-Remaining":{"description":"API credits left after this request","schema":{"type":"integer"}},"X-Sandbox":{"description":"\"true\" on sandbox answers","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"domain":{"type":"string"},"url":{"type":"string","nullable":true},"keywordCountry":{"type":"string","nullable":true,"description":"Country of the keyword / traffic numbers (us, uk, ca, au, in, nz, za; others get US data)"},"page":{"type":"object","properties":{"url":{"type":"string"},"pageAuthority":{"type":"number","nullable":true},"referringDomains":{"type":"number","nullable":true,"description":"Sites linking to this exact page"},"referringDomainsSource":{"type":"string","enum":["moz","keywords-everywhere"],"nullable":true},"backlinks":{"type":"number","nullable":true},"isLinkCountCapped":{"type":"boolean","description":"The link counts come from a full 5,000-link answer: the real numbers are higher"},"rankingKeywords":{"type":"number","nullable":true},"monthlyTraffic":{"type":"number","nullable":true},"topKeywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"position":{"type":"number","nullable":true},"traffic":{"type":"number","nullable":true,"description":"Estimated monthly visits it brings"}},"required":["keyword","position","traffic"],"additionalProperties":false},"nullable":true},"pageType":{"type":"string","nullable":true},"schemaTypes":{"type":"array","items":{"type":"string"}}},"required":["url","pageAuthority","referringDomains","referringDomainsSource","backlinks","isLinkCountCapped","rankingKeywords","monthlyTraffic","topKeywords","pageType","schemaTypes"],"additionalProperties":false,"nullable":true,"description":"Only when the request named a page (url)"},"authority":{"type":"object","properties":{"domainAuthority":{"type":"number","nullable":true},"domainAuthorityChange12m":{"type":"number","nullable":true},"domainAuthorityHistory":{"type":"array","items":{"type":"number"},"description":"Monthly Moz DA, oldest first"},"domainRating":{"type":"number","nullable":true},"referringDomains":{"type":"number","nullable":true},"referringDomainsSource":{"type":"string","enum":["moz","common-crawl"],"nullable":true},"backlinks":{"type":"number","nullable":true},"spamScore":{"type":"number","nullable":true,"description":"Moz spam score, %"},"linkPropensity":{"type":"number","nullable":true,"description":"Moz link propensity, %"},"nofollowReferringDomains":{"type":"number","nullable":true},"lostReferringDomains":{"type":"number","nullable":true},"pageRank":{"type":"number","nullable":true,"description":"Open PageRank, 0–10"}},"required":["domainAuthority","domainAuthorityChange12m","domainAuthorityHistory","domainRating","referringDomains","referringDomainsSource","backlinks","spamScore","linkPropensity","nofollowReferringDomains","lostReferringDomains","pageRank"],"additionalProperties":false},"traffic":{"type":"object","properties":{"rankingKeywords":{"type":"number","nullable":true},"monthlyTraffic":{"type":"number","nullable":true},"topKeywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"position":{"type":"number","nullable":true},"traffic":{"type":"number","nullable":true,"description":"Estimated monthly visits it brings"}},"required":["keyword","position","traffic"],"additionalProperties":false},"nullable":true},"visitors":{"type":"object","properties":{"month":{"type":"string","nullable":true},"desktop":{"type":"number","nullable":true},"mobile":{"type":"number","nullable":true},"tablet":{"type":"number","nullable":true},"topCountries":{"type":"array","items":{"type":"string"}}},"required":["month","desktop","mobile","tablet","topCountries"],"additionalProperties":false,"nullable":true}},"required":["rankingKeywords","monthlyTraffic","topKeywords","visitors"],"additionalProperties":false},"ranks":{"type":"object","properties":{"chromeRankBucket":{"type":"number","nullable":true,"description":"Chrome UX Report: among the top N sites by real Chrome visits"},"trancoRank":{"type":"number","nullable":true},"majestic":{"type":"object","properties":{"rank":{"type":"number"},"previousRank":{"type":"number","nullable":true},"referringSubnets":{"type":"number"}},"required":["rank","previousRank","referringSubnets"],"additionalProperties":false,"nullable":true,"description":"Majestic Million (CC BY 3.0 — credit Majestic)"},"registeredAt":{"type":"string","nullable":true},"ageYears":{"type":"number","nullable":true},"firstArchivedAt":{"type":"string","nullable":true},"pageCount":{"type":"number","nullable":true,"description":"URLs its sitemaps list"},"isPageCountPartial":{"type":"boolean"},"subdomains":{"type":"object","properties":{"count":{"type":"number"},"isTruncated":{"type":"boolean"},"list":{"type":"array","items":{"type":"string"}},"source":{"type":"string","enum":["common-crawl","certspotter","crt-sh"],"nullable":true}},"required":["count","isTruncated","list","source"],"additionalProperties":false,"nullable":true}},"required":["chromeRankBucket","trancoRank","majestic","registeredAt","ageYears","firstArchivedAt","pageCount","isPageCountPartial","subdomains"],"additionalProperties":false},"checks":{"type":"object","properties":{"sitemaps":{"type":"object","properties":{"count":{"type":"number"},"kinds":{"type":"array","items":{"type":"string","enum":["post","page","product","category","tag","author","image","video","news","other"]}},"urls":{"type":"array","items":{"type":"string"}}},"required":["count","kinds","urls"],"additionalProperties":false},"robotsTxt":{"type":"object","properties":{"status":{"type":"string","enum":["found","missing","unreachable"]},"blocksGooglebot":{"type":"boolean"},"crawlDelay":{"type":"number","nullable":true}},"required":["status","blocksGooglebot","crawlDelay"],"additionalProperties":false},"aiBots":{"type":"array","items":{"type":"object","properties":{"bot":{"type":"string"},"owner":{"type":"string"},"purpose":{"type":"string","enum":["training","search","user"]},"isBlocked":{"type":"boolean"}},"required":["bot","owner","purpose","isBlocked"],"additionalProperties":false}},"llmsTxt":{"type":"object","properties":{"isFound":{"type":"boolean"},"isValid":{"type":"boolean"},"url":{"type":"string"},"hasFullVersion":{"type":"boolean"}},"required":["isFound","isValid","url","hasFullVersion"],"additionalProperties":false},"adsTxt":{"type":"object","properties":{"isFound":{"type":"boolean"},"lineCount":{"type":"number"}},"required":["isFound","lineCount"],"additionalProperties":false,"nullable":true},"safeBrowsing":{"type":"string","enum":["safe","flagged"],"nullable":true}},"required":["sitemaps","robotsTxt","aiBots","llmsTxt","adsTxt","safeBrowsing"],"additionalProperties":false,"nullable":true},"speed":{"type":"object","properties":{"assessment":{"type":"string","enum":["pass","fail"],"nullable":true},"lcpMs":{"type":"number","nullable":true},"inpMs":{"type":"number","nullable":true},"cls":{"type":"number","nullable":true},"fcpMs":{"type":"number","nullable":true},"ttfbMs":{"type":"number","nullable":true},"origin":{"type":"string"},"collectedThrough":{"type":"string","nullable":true}},"required":["assessment","lcpMs","inpMs","cls","fcpMs","ttfbMs","origin","collectedThrough"],"additionalProperties":false,"nullable":true,"description":"Core Web Vitals of real Chrome users, whole site, 75th percentile"},"about":{"type":"object","properties":{"siteType":{"type":"string","nullable":true},"sells":{"type":"object","properties":{"kind":{"type":"string","enum":["products","services"]},"items":{"type":"array","items":{"type":"string"}}},"required":["kind","items"],"additionalProperties":false,"nullable":true},"platform":{"type":"string","nullable":true},"brand":{"type":"object","properties":{"name":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"socialProfiles":{"type":"array","items":{"type":"object","properties":{"network":{"type":"string"},"url":{"type":"string"}},"required":["network","url"],"additionalProperties":false}},"email":{"type":"string","nullable":true},"telephone":{"type":"string","nullable":true},"contactUrl":{"type":"string","nullable":true}},"required":["name","logo","socialProfiles","email","telephone","contactUrl"],"additionalProperties":false,"nullable":true},"primaryCountry":{"type":"string","nullable":true},"isInternational":{"type":"boolean"},"hasUserGeneratedContent":{"type":"boolean"}},"required":["siteType","sells","platform","brand","primaryCountry","isInternational","hasUserGeneratedContent"],"additionalProperties":false,"nullable":true},"techStack":{"type":"object","properties":{"frameworks":{"type":"array","items":{"type":"string"}},"cdn":{"type":"string","nullable":true},"hosting":{"type":"string","nullable":true},"plugins":{"type":"array","items":{"type":"string"}},"speedPlugins":{"type":"array","items":{"type":"string"}},"captchas":{"type":"array","items":{"type":"string"}},"inHouse":{"type":"string","nullable":true},"isPartial":{"type":"boolean"},"technologies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"}},"required":["name","category"],"additionalProperties":false}}},"required":["frameworks","cdn","hosting","plugins","speedPlugins","captchas","inHouse","isPartial","technologies"],"additionalProperties":false,"nullable":true},"analytics":{"type":"array","items":{"type":"string"}},"pixels":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ids":{"type":"array","items":{"type":"string"}}},"required":["name","ids"],"additionalProperties":false}},"adPlatforms":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string"},"foundBy":{"type":"array","items":{"type":"string","enum":["serp-ad","site-code","tag-manager","lighthouse"]}},"library":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"searchedFor":{"type":"string"}},"required":["name","url","searchedFor"],"additionalProperties":false},"advertiser":{"type":"string","nullable":true},"ads":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}},"required":["min","max"],"additionalProperties":false,"nullable":true}},"required":["platform","foundBy","library","advertiser","ads"],"additionalProperties":false}}},"required":["domain","url","keywordCountry","page","authority","traffic","ranks","checks","speed","about","techStack","analytics","pixels","adPlatforms"],"additionalProperties":false},"credits":{"type":"object","properties":{"charged":{"type":"integer","description":"Credits this request used"},"remaining":{"type":"integer","description":"API credits left on the account"}},"required":["charged","remaining"],"additionalProperties":false},"sandbox":{"type":"boolean","enum":[true],"description":"Present on sandbox (ss_test_) answers: sample data, nothing charged"}},"required":["data","credits"],"additionalProperties":false},"example":{"data":{"domain":"example.com","url":null,"keywordCountry":"us","page":null,"authority":{"domainAuthority":33,"domainAuthorityChange12m":6,"domainAuthorityHistory":[27,28,28,29,29,30,30,31,31,32,32,33,33],"domainRating":50,"referringDomains":19888,"referringDomainsSource":"moz","backlinks":1099008,"spamScore":5,"linkPropensity":34,"nofollowReferringDomains":1976,"lostReferringDomains":658,"pageRank":6.55},"traffic":{"rankingKeywords":73972,"monthlyTraffic":69038,"topKeywords":[{"keyword":"example","position":1,"traffic":34519},{"keyword":"example reviews","position":2,"traffic":23013},{"keyword":"example login","position":3,"traffic":17260},{"keyword":"best example alternatives","position":4,"traffic":13808},{"keyword":"example pricing","position":5,"traffic":11506}],"visitors":{"month":"2026-11","desktop":37,"mobile":57,"tablet":6,"topCountries":["US","GB","CA","AU","IN"]}},"ranks":{"chromeRankBucket":50000,"trancoRank":263011,"majestic":{"rank":570369,"previousRank":778052,"referringSubnets":19651},"registeredAt":"2019-05-12T00:00:00.000Z","ageYears":7,"firstArchivedAt":"2019-09-09T00:00:00.000Z","pageCount":1170,"isPageCountPartial":false,"subdomains":{"count":3,"isTruncated":false,"list":["blog.example.com","help.example.com","shop.example.com"],"source":"common-crawl"}},"checks":{"sitemaps":{"count":2,"kinds":["page","post"],"urls":["https://example.com/sitemap.xml","https://example.com/post-sitemap.xml"]},"robotsTxt":{"status":"found","blocksGooglebot":false,"crawlDelay":null},"aiBots":[{"bot":"GPTBot","owner":"OpenAI","purpose":"training","isBlocked":false},{"bot":"ClaudeBot","owner":"Anthropic","purpose":"training","isBlocked":false},{"bot":"PerplexityBot","owner":"Perplexity","purpose":"search","isBlocked":true}],"llmsTxt":{"isFound":false,"isValid":false,"url":"https://example.com/llms.txt","hasFullVersion":false},"adsTxt":{"isFound":true,"lineCount":12},"safeBrowsing":"safe"},"speed":{"assessment":"pass","lcpMs":1547,"inpMs":102,"cls":0.08,"fcpMs":969,"ttfbMs":354,"origin":"https://example.com","collectedThrough":"2026-12-01"},"about":{"siteType":"E-commerce","sells":{"kind":"products","items":["Running shoes","Trail shoes","Apparel"]},"platform":"Shopify","brand":{"name":"Example","logo":"https://example.com/logo.png","socialProfiles":[{"network":"instagram","url":"https://www.instagram.com/example"}],"email":"hello@example.com","telephone":"+1 555 0100","contactUrl":"https://example.com/contact"},"primaryCountry":"US","isInternational":false,"hasUserGeneratedContent":false},"techStack":{"frameworks":["Shopify","React"],"cdn":"Cloudflare","hosting":"Shopify","plugins":[],"speedPlugins":[],"captchas":["reCAPTCHA v3"],"inHouse":null,"isPartial":false,"technologies":[{"name":"Shopify","category":"Ecommerce"},{"name":"Cloudflare","category":"CDN"}]},"analytics":["Google Analytics","Google Tag Manager"],"pixels":[{"name":"Meta Pixel","ids":["1234567890123456"]}],"adPlatforms":[{"platform":"Meta Ads","foundBy":["site-code"],"library":{"name":"Meta Ad Library","url":"https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&q=example.com","searchedFor":"example.com"},"advertiser":null,"ads":null}]},"credits":{"charged":10,"remaining":99983}}}}},"400":{"description":"The request is invalid — the message names the field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Not enough API credits; nothing was charged","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Developer API access isn't switched on for this account (live keys)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Over a rate limit — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"502":{"description":"The data provider failed; nothing was charged","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Busy — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}}}}},"/account":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"Credits and limits","description":"API credits left and the limits that apply. **Free.**","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"credits":{"type":"integer","description":"API credits left"},"requestsPerSecond":{"type":"integer"},"maxKeywordsPerRequest":{"type":"integer"},"maxIdeasPerRequest":{"type":"integer"},"sandbox":{"type":"boolean","enum":[true],"description":"Present on sandbox (ss_test_) answers: sample data, nothing charged"}},"required":["credits","requestsPerSecond","maxKeywordsPerRequest","maxIdeasPerRequest"],"additionalProperties":false},"example":{"credits":99983,"requestsPerSecond":1,"maxKeywordsPerRequest":1000,"maxIdeasPerRequest":1000}}}},"401":{"description":"Missing, unknown or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Developer API access isn't switched on for this account (live keys)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Over a rate limit — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}}}}},"/locations":{"get":{"operationId":"getLocations","tags":["Account"],"summary":"Countries and languages","description":"The `country` and `language` codes the other endpoints accept. **Free.**","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"additionalProperties":false}},"languages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"additionalProperties":false}}},"required":["countries","languages"],"additionalProperties":false},"example":{"countries":[{"code":"GLOBAL","name":"All locations"},{"code":"US","name":"United States"}],"languages":[{"code":"en","name":"English"}]}}}},"401":{"description":"Missing, unknown or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Developer API access isn't switched on for this account (live keys)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Over a rate limit — see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong; a 400 starts with the field, e.g. \"keywords: …\""}},"required":["error"],"additionalProperties":false}}}}}}}}}