{"openapi":"3.1.0","info":{"title":"seospark API","version":"2","description":"JSON over HTTPS for every seospark tool: the same tools, data and credits as the dashboard and the MCP server.\n\nAuthenticate with an API key from Settings › API keys as `Authorization: Bearer sk_live_…`. Every response is `{ \"status\": \"success\", \"data\": …, \"cost\": n }`, where cost is the credits the call used; errors are `{ \"status\": \"error\", \"error_code\": …, \"message\": … }`. A key may make 300 requests a minute, 60 of them POSTs; the x-ratelimit-* headers say where you stand."},"servers":[{"url":"https://api.seospark.io/v2"}],"security":[{"apiKey":[]}],"tags":[{"name":"Account"},{"name":"Keyword Research"},{"name":"Keyword Metrics"},{"name":"Keyword Gaps"},{"name":"Keyword Lists"},{"name":"Clustering"},{"name":"People Also Ask"},{"name":"Rank Tracking"},{"name":"AI Visibility"},{"name":"Search Console"}],"x-markets":[{"country_code":"dz","country":"Algeria","languages":[{"language_code":"ar","language":"Arabic"}]},{"country_code":"ao","country":"Angola","languages":[{"language_code":"pt","language":"Portuguese"}]},{"country_code":"ar","country":"Argentina","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"am","country":"Armenia","languages":[{"language_code":"hy","language":"Armenian"}]},{"country_code":"au","country":"Australia","languages":[{"language_code":"en","language":"English"}]},{"country_code":"at","country":"Austria","languages":[{"language_code":"de","language":"German"}]},{"country_code":"az","country":"Azerbaijan","languages":[{"language_code":"az","language":"Azerbaijani"}]},{"country_code":"bh","country":"Bahrain","languages":[{"language_code":"ar","language":"Arabic"}]},{"country_code":"bd","country":"Bangladesh","languages":[{"language_code":"bn","language":"Bangla"}]},{"country_code":"be","country":"Belgium","languages":[{"language_code":"fr","language":"French"},{"language_code":"nl","language":"Dutch"},{"language_code":"de","language":"German"}]},{"country_code":"bo","country":"Bolivia","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"br","country":"Brazil","languages":[{"language_code":"pt","language":"Portuguese"}]},{"country_code":"bg","country":"Bulgaria","languages":[{"language_code":"bg","language":"Bulgarian"}]},{"country_code":"kh","country":"Cambodia","languages":[{"language_code":"en","language":"English"}]},{"country_code":"cm","country":"Cameroon","languages":[{"language_code":"fr","language":"French"}]},{"country_code":"ca","country":"Canada","languages":[{"language_code":"en","language":"English"},{"language_code":"fr","language":"French"}]},{"country_code":"cl","country":"Chile","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"co","country":"Colombia","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"cr","country":"Costa Rica","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"ci","country":"Cote d'Ivoire","languages":[{"language_code":"fr","language":"French"}]},{"country_code":"hr","country":"Croatia","languages":[{"language_code":"hr","language":"Croatian"}]},{"country_code":"cy","country":"Cyprus","languages":[{"language_code":"el","language":"Greek"},{"language_code":"en","language":"English"}]},{"country_code":"cz","country":"Czechia","languages":[{"language_code":"cs","language":"Czech"}]},{"country_code":"dk","country":"Denmark","languages":[{"language_code":"da","language":"Danish"}]},{"country_code":"ec","country":"Ecuador","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"eg","country":"Egypt","languages":[{"language_code":"ar","language":"Arabic"},{"language_code":"en","language":"English"}]},{"country_code":"ee","country":"Estonia","languages":[{"language_code":"et","language":"Estonian"}]},{"country_code":"fi","country":"Finland","languages":[{"language_code":"fi","language":"Finnish"}]},{"country_code":"fr","country":"France","languages":[{"language_code":"fr","language":"French"}]},{"country_code":"de","country":"Germany","languages":[{"language_code":"de","language":"German"}]},{"country_code":"gh","country":"Ghana","languages":[{"language_code":"en","language":"English"}]},{"country_code":"gr","country":"Greece","languages":[{"language_code":"el","language":"Greek"}]},{"country_code":"hu","country":"Hungary","languages":[{"language_code":"hu","language":"Hungarian"}]},{"country_code":"in","country":"India","languages":[{"language_code":"en","language":"English"},{"language_code":"hi","language":"Hindi"}]},{"country_code":"id","country":"Indonesia","languages":[{"language_code":"en","language":"English"},{"language_code":"id","language":"Indonesian"}]},{"country_code":"ie","country":"Ireland","languages":[{"language_code":"en","language":"English"}]},{"country_code":"il","country":"Israel","languages":[{"language_code":"he","language":"Hebrew"},{"language_code":"ar","language":"Arabic"}]},{"country_code":"it","country":"Italy","languages":[{"language_code":"it","language":"Italian"}]},{"country_code":"jp","country":"Japan","languages":[{"language_code":"ja","language":"Japanese"}]},{"country_code":"jo","country":"Jordan","languages":[{"language_code":"ar","language":"Arabic"}]},{"country_code":"kz","country":"Kazakhstan","languages":[{"language_code":"ru","language":"Russian"}]},{"country_code":"ke","country":"Kenya","languages":[{"language_code":"en","language":"English"}]},{"country_code":"lv","country":"Latvia","languages":[{"language_code":"lv","language":"Latvian"}]},{"country_code":"lt","country":"Lithuania","languages":[{"language_code":"lt","language":"Lithuanian"}]},{"country_code":"my","country":"Malaysia","languages":[{"language_code":"en","language":"English"},{"language_code":"ms","language":"Malay"}]},{"country_code":"mt","country":"Malta","languages":[{"language_code":"en","language":"English"}]},{"country_code":"mx","country":"Mexico","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"ma","country":"Morocco","languages":[{"language_code":"ar","language":"Arabic"}]},{"country_code":"mm","country":"Myanmar (Burma)","languages":[{"language_code":"en","language":"English"}]},{"country_code":"nl","country":"Netherlands","languages":[{"language_code":"nl","language":"Dutch"}]},{"country_code":"nz","country":"New Zealand","languages":[{"language_code":"en","language":"English"}]},{"country_code":"ng","country":"Nigeria","languages":[{"language_code":"en","language":"English"}]},{"country_code":"mk","country":"North Macedonia","languages":[{"language_code":"mk","language":"Macedonian"}]},{"country_code":"no","country":"Norway","languages":[{"language_code":"nb","language":"Norwegian Bokmål"}]},{"country_code":"pk","country":"Pakistan","languages":[{"language_code":"en","language":"English"},{"language_code":"ur","language":"Urdu"}]},{"country_code":"py","country":"Paraguay","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"pe","country":"Peru","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"ph","country":"Philippines","languages":[{"language_code":"en","language":"English"},{"language_code":"tl","language":"Filipino"}]},{"country_code":"pl","country":"Poland","languages":[{"language_code":"pl","language":"Polish"}]},{"country_code":"pt","country":"Portugal","languages":[{"language_code":"pt","language":"Portuguese"}]},{"country_code":"ro","country":"Romania","languages":[{"language_code":"ro","language":"Romanian"}]},{"country_code":"sa","country":"Saudi Arabia","languages":[{"language_code":"ar","language":"Arabic"}]},{"country_code":"sn","country":"Senegal","languages":[{"language_code":"fr","language":"French"}]},{"country_code":"rs","country":"Serbia","languages":[{"language_code":"sr","language":"Serbian"}]},{"country_code":"sg","country":"Singapore","languages":[{"language_code":"en","language":"English"},{"language_code":"zh-cn","language":"Chinese (China)"}]},{"country_code":"sk","country":"Slovakia","languages":[{"language_code":"sk","language":"Slovak"}]},{"country_code":"si","country":"Slovenia","languages":[{"language_code":"sl","language":"Slovenian"}]},{"country_code":"za","country":"South Africa","languages":[{"language_code":"en","language":"English"}]},{"country_code":"kr","country":"South Korea","languages":[{"language_code":"ko","language":"Korean"}]},{"country_code":"es","country":"Spain","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"se","country":"Sweden","languages":[{"language_code":"sv","language":"Swedish"}]},{"country_code":"ch","country":"Switzerland","languages":[{"language_code":"de","language":"German"},{"language_code":"fr","language":"French"}]},{"country_code":"th","country":"Thailand","languages":[{"language_code":"th","language":"Thai"}]},{"country_code":"tn","country":"Tunisia","languages":[{"language_code":"ar","language":"Arabic"}]},{"country_code":"tr","country":"Turkey","languages":[{"language_code":"tr","language":"Turkish"}]},{"country_code":"ua","country":"Ukraine","languages":[{"language_code":"uk","language":"Ukrainian"},{"language_code":"ru","language":"Russian"}]},{"country_code":"ae","country":"United Arab Emirates","languages":[{"language_code":"ar","language":"Arabic"},{"language_code":"en","language":"English"}]},{"country_code":"gb","country":"United Kingdom","languages":[{"language_code":"en","language":"English"}]},{"country_code":"us","country":"United States","languages":[{"language_code":"en","language":"English"},{"language_code":"es","language":"Spanish"}]},{"country_code":"uy","country":"Uruguay","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"ve","country":"Venezuela","languages":[{"language_code":"es","language":"Spanish"}]},{"country_code":"vn","country":"Vietnam","languages":[{"language_code":"en","language":"English"},{"language_code":"vi","language":"Vietnamese"}]}],"paths":{"/account":{"get":{"operationId":"get-account","tags":["Account"],"summary":"Get the account","description":"Your organisation, the credits you can spend now and your key’s rate limits.","parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"$ref":"#/components/schemas/Account"},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"organization":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"Trailpace"},"credits":{"balance":48210},"rate_limits":{"requests_per_minute":300,"runs_per_minute":60}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/markets":{"get":{"operationId":"get-markets","tags":["Account"],"summary":"List countries and languages","description":"Every country the tools support, with its languages. Pass the codes as country_code and language_code.","parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"markets":{"type":"array","items":{"$ref":"#/components/schemas/Market"}}},"required":["markets"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"markets":[{"country_code":"us","country":"United States","languages":[{"language_code":"en","language":"English"}]}]},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/locations":{"get":{"operationId":"get-locations","tags":["Account"],"summary":"Find a city or region","description":"Cities and regions inside a country whose name starts with the search, up to 10. Rank tracking, clustering and People Also Ask take one as location_code.","parameters":[{"name":"country_code","in":"query","required":true,"schema":{"type":"string","examples":["us"]}},{"name":"search","in":"query","required":true,"description":"The start of the name.","schema":{"type":"string","minLength":1,"maxLength":80,"examples":["new york"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"locations":{"type":"array","items":{"$ref":"#/components/schemas/Location"}}},"required":["locations"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"locations":[{"location_code":1023191,"name":"New York, New York"}]},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects":{"get":{"operationId":"get-projects","tags":["Account"],"summary":"List projects","description":"Your organisation’s projects, newest first. Runs can be filed under one with project_id.","parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}},"required":["projects"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"projects":[{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","domain":"trailpace.com","country_code":"us","language_code":"en","created_at":"2026-11-12T10:30:00.000Z"}]},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/runs":{"get":{"operationId":"get-runs","tags":["Account"],"summary":"List runs","description":"Runs of every tool in your organisation, from the dashboard, MCP and the API, newest first.","parameters":[{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 100.","schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"tool","in":"query","required":false,"description":"Only this tool’s runs, e.g. clustering or keyword-metrics.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["processing","succeeded","failed"]}},{"name":"project_id","in":"query","required":false,"description":"Only this project’s runs.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"runs":{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["clustering"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at"],"additionalProperties":{}}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false}},"required":["runs"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"runs":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"clustering","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-research":{"post":{"operationId":"post-keyword-research","tags":["Keyword Research"],"summary":"Start a keyword research","description":"Creates a research for a seed keyword. Nothing is charged yet: read its suggestions page by page, or start one of its other views.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keyword":{"type":"string","minLength":1,"maxLength":80,"description":"The seed keyword.","examples":["camping"]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["keyword","country_code","language_code"]},"example":{"keyword":"camping","country_code":"us","language_code":"en"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["keyword-research"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"keyword":{"type":"string","description":"The seed keyword.","examples":["camping"]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","keyword"],"additionalProperties":false}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"keyword-research","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword":"camping"}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-research/{id}":{"get":{"operationId":"get-keyword-research-id","tags":["Keyword Research"],"summary":"Get a keyword research","description":"The research and its seed keyword.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["keyword-research"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"keyword":{"type":"string","description":"The seed keyword.","examples":["camping"]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","keyword"],"additionalProperties":false}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"keyword-research","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword":"camping"}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-research/{id}/suggestions":{"get":{"operationId":"get-keyword-research-id-suggestions","tags":["Keyword Research"],"summary":"Read suggestions","description":"Keywords that contain the seed, filtered and sorted as you ask, one page at a time. A page is fetched live the first time and kept: reading it again is free.","x-cost":"15 per request plus 0.15 per keyword, the first time a page is read (a page of 50: 23).","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"sort","in":"query","required":false,"description":"Field and direction: keyword, searchVolume, difficulty, cpc, competition or position (where a domain ranks: ranked keywords, keyword gaps; elsewhere it sorts by searchVolume), then asc or desc.","schema":{"default":"searchVolume,desc","type":"string"}},{"name":"filter","in":"query","required":false,"description":"Rules on keyword, word_count, search_volume, difficulty (0-100), cpc (USD), competition (0-1) and search_intent, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=keyword&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how&filter[rules][1][field]=search_volume&filter[rules][1][op]=gte&filter[rules][1][value]=100. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value; search_intent takes is_any or is_none with values. Text ignores case. Sets fetched live take at most 8 conditions: a list of values counts once, except for contains_all.","schema":{"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["keyword","word_count","search_volume","difficulty","cpc","competition","search_intent"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"keywords":{"$ref":"#/components/schemas/KeywordPage"}},"required":["keywords"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"keywords":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"camping checklist","search_volume":8100,"cpc":0.42,"competition":0.18,"difficulty":24,"search_intents":[{"label":"informational","probability":null}],"serp_features":["people_also_ask","video"],"monthly_searches":[{"month":"2026-10","volume":8100}],"metrics_updated_at":"2026-11-02T08:14:00.000Z"}]}},"cost":23}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them. invalid_filter: The filter has more conditions than the live data source can apply (8 at most; a list of values counts once, except for contains_all).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request","invalid_filter"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-research/{id}/{view}":{"post":{"operationId":"post-keyword-research-id-view","tags":["Keyword Research"],"summary":"Start a view","description":"Fetches related, semantic or autocomplete keywords for the seed in the background. Starting a view that already ran does nothing.","x-cost":"related 60, semantic 100, autocomplete 200.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"view","in":"path","required":true,"description":"related: searches people also make; semantic: words that go with the seed; autocomplete: what Google suggests while typing.","schema":{"type":"string","enum":["related","semantic","autocomplete"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"started":{"type":"boolean","description":"False if the view already ran or runs."}},"required":["started"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"started":true},"cost":60}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}},"get":{"operationId":"get-keyword-research-id-view","tags":["Keyword Research"],"summary":"Read a view","description":"A view’s state and, once it succeeded, a page of its keywords.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"view","in":"path","required":true,"description":"related: searches people also make; semantic: words that go with the seed; autocomplete: what Google suggests while typing.","schema":{"type":"string","enum":["related","semantic","autocomplete"]}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"sort","in":"query","required":false,"description":"Field and direction: keyword, searchVolume, difficulty, cpc, competition or position (where a domain ranks: ranked keywords, keyword gaps; elsewhere it sorts by searchVolume), then asc or desc.","schema":{"default":"searchVolume,desc","type":"string"}},{"name":"filter","in":"query","required":false,"description":"Rules on keyword, word_count, search_volume, difficulty (0-100), cpc (USD), competition (0-1) and search_intent, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=keyword&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how&filter[rules][1][field]=search_volume&filter[rules][1][op]=gte&filter[rules][1][value]=100. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value; search_intent takes is_any or is_none with values. Text ignores case. Sets fetched live take at most 8 conditions: a list of values counts once, except for contains_all.","schema":{"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["keyword","word_count","search_volume","difficulty","cpc","competition","search_intent"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["idle","processing","succeeded","failed"],"description":"idle until you start it."},"cost_to_start":{"type":"integer","examples":[60]},"keywords":{"anyOf":[{"$ref":"#/components/schemas/KeywordPage"},{"type":"null"}]}},"required":["status","cost_to_start","keywords"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"status":"idle","cost_to_start":60,"keywords":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"camping checklist","search_volume":8100,"cpc":0.42,"competition":0.18,"difficulty":24,"search_intents":[{"label":"informational","probability":null}],"serp_features":["people_also_ask","video"],"monthly_searches":[{"month":"2026-10","volume":8100}],"metrics_updated_at":"2026-11-02T08:14:00.000Z"}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-metrics/estimate":{"post":{"operationId":"post-keyword-metrics-estimate","tags":["Keyword Metrics"],"summary":"Estimate a lookup","description":"What a lookup of these keywords would cost, without starting it.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 10,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]}},"required":["keywords","country_code","language_code"]},"example":{"keywords":["camping checklist","camping packing list"],"country_code":"us","language_code":"en"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"cost":{"type":"integer","examples":[27]},"keywords":{"type":"integer","description":"Keywords after cleaning up.","examples":[2]},"fresh":{"type":"integer","description":"Keywords with metrics younger than 30 days, which are free.","examples":[0]}},"required":["cost","keywords","fresh"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"cost":27,"keywords":2,"fresh":0},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-metrics":{"post":{"operationId":"post-keyword-metrics","tags":["Keyword Metrics"],"summary":"Look up keyword metrics","description":"Search volume, CPC, competition, difficulty, intent and 12 months of searches for your keywords. Keywords with metrics younger than 30 days are free and ready at once; the rest is fetched in the background.","x-cost":"1 per 4 keywords plus 25 per 700, for keywords without fresh metrics.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 10,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]},"name":{"description":"Shown in History.","type":"string","maxLength":120},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["keywords","country_code","language_code"]},"example":{"keywords":["camping checklist","camping packing list"],"country_code":"us","language_code":"en"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["keyword-metrics"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"keyword_count":{"type":"integer","description":"Keywords after cleaning up.","examples":[1240]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","keyword_count"],"additionalProperties":false}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"keyword-metrics","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword_count":1240}},"cost":26}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-metrics/{id}":{"get":{"operationId":"get-keyword-metrics-id","tags":["Keyword Metrics"],"summary":"Read a lookup","description":"The lookup and, once it succeeded, a page of its keywords.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"sort","in":"query","required":false,"description":"Field and direction: keyword, searchVolume, difficulty, cpc, competition or position (where a domain ranks: ranked keywords, keyword gaps; elsewhere it sorts by searchVolume), then asc or desc.","schema":{"default":"searchVolume,desc","type":"string"}},{"name":"filter","in":"query","required":false,"description":"Rules on keyword, word_count, search_volume, difficulty (0-100), cpc (USD), competition (0-1) and search_intent, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=keyword&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how&filter[rules][1][field]=search_volume&filter[rules][1][op]=gte&filter[rules][1][value]=100. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value; search_intent takes is_any or is_none with values. Text ignores case. Sets fetched live take at most 8 conditions: a list of values counts once, except for contains_all.","schema":{"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["keyword","word_count","search_volume","difficulty","cpc","competition","search_intent"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["keyword-metrics"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"keyword_count":{"type":"integer","description":"Keywords after cleaning up.","examples":[1240]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","keyword_count"],"additionalProperties":false},"keywords":{"anyOf":[{"$ref":"#/components/schemas/KeywordPage"},{"type":"null"}]}},"required":["run","keywords"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"keyword-metrics","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword_count":1240},"keywords":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"camping checklist","search_volume":8100,"cpc":0.42,"competition":0.18,"difficulty":24,"search_intents":[{"label":"informational","probability":null}],"serp_features":["people_also_ask","video"],"monthly_searches":[{"month":"2026-10","volume":8100}],"metrics_updated_at":"2026-11-02T08:14:00.000Z"}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-gaps":{"post":{"operationId":"post-keyword-gaps","tags":["Keyword Gaps"],"summary":"Compare two domains","description":"Creates a comparison of what two domains rank for in Google. Nothing is charged yet: its keywords are fetched page by page as you read them.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"string","maxLength":300,"description":"Your domain.","examples":["trailpace.com"]},"competitor":{"type":"string","maxLength":300,"description":"The domain to compare with.","examples":["runrepeat.com"]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["target","competitor","country_code","language_code"]},"example":{"target":"trailpace.com","competitor":"runrepeat.com","country_code":"us","language_code":"en"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["keyword-gaps"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"target":{"type":"string","examples":["trailpace.com"]},"competitor":{"type":"string","examples":["runrepeat.com"]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","target","competitor"],"additionalProperties":false}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"keyword-gaps","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"target":"trailpace.com","competitor":"runrepeat.com"}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-gaps/{id}":{"get":{"operationId":"get-keyword-gaps-id","tags":["Keyword Gaps"],"summary":"Read keyword gaps","description":"A page of keywords with both domains’ positions: “missing” are the competitor’s keywords the target doesn’t rank for, “shared” the ones both rank for.","x-cost":"15 per request plus 0.15 per keyword, the first time a page is read.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"sort","in":"query","required":false,"description":"Field and direction: keyword, searchVolume, difficulty, cpc, competition or position (where a domain ranks: ranked keywords, keyword gaps; elsewhere it sorts by searchVolume), then asc or desc.","schema":{"default":"searchVolume,desc","type":"string"}},{"name":"filter","in":"query","required":false,"description":"Rules on keyword, word_count, search_volume, difficulty (0-100), cpc (USD), competition (0-1) and search_intent, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=keyword&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how&filter[rules][1][field]=search_volume&filter[rules][1][op]=gte&filter[rules][1][value]=100. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value; search_intent takes is_any or is_none with values. Text ignores case. Sets fetched live take at most 8 conditions: a list of values counts once, except for contains_all.","schema":{"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["keyword","word_count","search_volume","difficulty","cpc","competition","search_intent"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true},{"name":"view","in":"query","required":false,"schema":{"default":"missing","type":"string","enum":["missing","shared"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["keyword-gaps"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"target":{"type":"string","examples":["trailpace.com"]},"competitor":{"type":"string","examples":["runrepeat.com"]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","target","competitor"],"additionalProperties":false},"view":{"type":"string","enum":["missing","shared"]},"keywords":{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string","examples":["camping checklist"]},"search_volume":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Average monthly searches.","examples":[8100]},"cpc":{"description":"Cost per click in USD.","examples":[0.42],"type":["number","null"]},"competition":{"description":"Ad competition, 0 to 1.","examples":[0.18],"type":["number","null"]},"difficulty":{"description":"How hard it is to rank, 0 to 100.","examples":[24],"type":["number","null"]},"search_intents":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","examples":["informational"]},"probability":{"type":["number","null"]}},"required":["label","probability"],"additionalProperties":false}},{"type":"null"}],"description":"Main intent first."},"serp_features":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"What Google shows besides results.","examples":[["people_also_ask","video"]]},"monthly_searches":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","examples":["2026-10"]},"volume":{"anyOf":[{"type":"integer"},{"type":"null"}],"examples":[8100]}},"required":["month","volume"],"additionalProperties":false}},{"type":"null"}],"description":"The last 12 months, newest first."},"metrics_updated_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null when no metrics were fetched yet.","examples":["2026-11-02T08:14:00.000Z"]},"target_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Where the target ranks, null if not."},"target_url":{"type":["string","null"]},"competitor_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"examples":[5]},"competitor_url":{"type":["string","null"]}},"required":["keyword","search_volume","cpc","competition","difficulty","search_intents","serp_features","monthly_searches","metrics_updated_at","target_position","target_url","competitor_position","competitor_url"],"additionalProperties":false}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false}},"required":["run","view","keywords"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"keyword-gaps","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"target":"trailpace.com","competitor":"runrepeat.com"},"view":"missing","keywords":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"camping checklist","search_volume":8100,"cpc":0.42,"competition":0.18,"difficulty":24,"search_intents":[{"label":"informational","probability":null}],"serp_features":["people_also_ask","video"],"monthly_searches":[{"month":"2026-10","volume":8100}],"metrics_updated_at":"2026-11-02T08:14:00.000Z","target_position":null,"target_url":null,"competitor_position":5,"competitor_url":null}]}},"cost":23}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them. invalid_filter: The filter has more conditions than the live data source can apply (8 at most; a list of values counts once, except for contains_all).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request","invalid_filter"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-lists":{"get":{"operationId":"get-keyword-lists","tags":["Keyword Lists"],"summary":"List keyword lists","description":"Your organisation’s lists, last changed first.","parameters":[{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 100.","schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"project_id","in":"query","required":false,"description":"Only this project’s lists and those without a project.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"lists":{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"$ref":"#/components/schemas/KeywordList"}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false}},"required":["lists"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"lists":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"Camping guides","country_code":"us","language_code":"en","keyword_count":320,"updating":true,"created_at":"2026-11-12T10:30:00.000Z","updated_at":"2026-11-12T10:30:00.000Z"}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}},"post":{"operationId":"post-keyword-lists","tags":["Keyword Lists"],"summary":"Create a keyword list","description":"Creates a list, optionally with keywords. Their metrics are fetched in the background.","x-cost":"Metrics for keywords without fresh ones: 1 per 4 keywords plus 25 per 700.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"examples":["Camping guides"]},"keywords":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 10,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["name","country_code","language_code"]},"example":{"name":"Camping guides","keywords":["camping checklist","camping packing list"],"country_code":"us","language_code":"en"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-lists/{id}":{"get":{"operationId":"get-keyword-lists-id","tags":["Keyword Lists"],"summary":"Read a keyword list","description":"The list and a page of its keywords with their metrics.","parameters":[{"name":"id","in":"path","required":true,"description":"The list’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"sort","in":"query","required":false,"description":"Field and direction: keyword, searchVolume, difficulty, cpc, competition or position (where a domain ranks: ranked keywords, keyword gaps; elsewhere it sorts by searchVolume), then asc or desc.","schema":{"default":"searchVolume,desc","type":"string"}},{"name":"filter","in":"query","required":false,"description":"Rules on keyword, word_count, search_volume, difficulty (0-100), cpc (USD), competition (0-1) and search_intent, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=keyword&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how&filter[rules][1][field]=search_volume&filter[rules][1][op]=gte&filter[rules][1][value]=100. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value; search_intent takes is_any or is_none with values. Text ignores case. Sets fetched live take at most 8 conditions: a list of values counts once, except for contains_all.","schema":{"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["keyword","word_count","search_volume","difficulty","cpc","competition","search_intent"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/KeywordList"},"keywords":{"$ref":"#/components/schemas/KeywordPage"}},"required":["list","keywords"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"list":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"Camping guides","country_code":"us","language_code":"en","keyword_count":320,"updating":true,"created_at":"2026-11-12T10:30:00.000Z","updated_at":"2026-11-12T10:30:00.000Z"},"keywords":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"camping checklist","search_volume":8100,"cpc":0.42,"competition":0.18,"difficulty":24,"search_intents":[{"label":"informational","probability":null}],"serp_features":["people_also_ask","video"],"monthly_searches":[{"month":"2026-10","volume":8100}],"metrics_updated_at":"2026-11-02T08:14:00.000Z"}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}},"delete":{"operationId":"delete-keyword-lists-id","tags":["Keyword Lists"],"summary":"Delete a keyword list","description":"Deletes the list. The keywords stay in your other lists and runs.","parameters":[{"name":"id","in":"path","required":true,"description":"The list’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{},"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/keyword-lists/{id}/keywords":{"post":{"operationId":"post-keyword-lists-id-keywords","tags":["Keyword Lists"],"summary":"Add keywords to a list","description":"Adds keywords; their metrics are fetched in the background unless fresh.","x-cost":"Metrics for keywords without fresh ones: 1 per 4 keywords plus 25 per 700.","parameters":[{"name":"id","in":"path","required":true,"description":"The list’s id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 10,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]}},"required":["keywords"]},"example":{"keywords":["camping checklist","camping packing list"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{},"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them. size_limit_exceeded: It would grow past its size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request","size_limit_exceeded"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"awaiting_mutation: The list is still busy with the last change; try again in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["awaiting_mutation"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}},"delete":{"operationId":"delete-keyword-lists-id-keywords","tags":["Keyword Lists"],"summary":"Remove keywords from a list","description":"Removes the keywords given in the body.","parameters":[{"name":"id","in":"path","required":true,"description":"The list’s id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 10,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]}},"required":["keywords"]},"example":{"keywords":["camping checklist","camping packing list"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{},"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"awaiting_mutation: The list is still busy with the last change; try again in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["awaiting_mutation"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/clustering/estimate":{"post":{"operationId":"post-clustering-estimate","tags":["Clustering"],"summary":"Estimate a clustering run","description":"What clustering these keywords would cost and when it would be done, without starting it.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":"string","maxLength":200},"description":"2 to 100,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"location_code":{"description":"A city or region inside the country, from GET /v2/locations. Results pages are that place’s; search volumes stay the country’s. Leave out for the whole country.","examples":[1023191],"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"overlap":{"default":3,"description":"Clusters group keywords by search intent. Only if that check is unavailable, they group by shared results: how many of their top 10 two keywords must share.","type":"integer","minimum":1,"maximum":10},"device":{"default":"mobile","description":"Whose results are compared.","type":"string","enum":["mobile","desktop"]}},"required":["keywords","country_code","language_code"]},"example":{"keywords":["camping checklist","camping packing list"],"country_code":"us","language_code":"en","location_code":1023191}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"cost":{"type":"integer","examples":[2480]},"eta":{"type":"string","description":"ISO 8601."}},"required":["cost","eta"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"cost":2480,"eta":"string"},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"422":{"description":"not_enough_results: Too few keywords are left after cleaning up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_enough_results"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/clustering":{"post":{"operationId":"post-clustering","tags":["Clustering"],"summary":"Start a clustering run","description":"Groups keywords into pages by search intent: keywords one page can serve together. Each keyword's Google results and wording pick the pairs worth checking. The run works in the background: read GET /v2/clustering/{id} until status is succeeded, then page through its clusters.","x-cost":"1 credit per keyword, rounded up to the next 10.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":"string","maxLength":200},"description":"2 to 100,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"location_code":{"description":"A city or region inside the country, from GET /v2/locations. Results pages are that place’s; search volumes stay the country’s. Leave out for the whole country.","examples":[1023191],"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"overlap":{"default":3,"description":"Clusters group keywords by search intent. Only if that check is unavailable, they group by shared results: how many of their top 10 two keywords must share.","type":"integer","minimum":1,"maximum":10},"device":{"default":"mobile","description":"Whose results are compared.","type":"string","enum":["mobile","desktop"]},"name":{"description":"Shown in History.","type":"string","maxLength":120},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["keywords","country_code","language_code"]},"example":{"keywords":["camping checklist","camping packing list"],"country_code":"us","language_code":"en","location_code":1023191}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/ClusteringRun"}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"clustering","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword_count":2480,"overlap":3,"device":"mobile","clusters_count":null,"progress":{"step":"fetching_serps","serps_fetched":0,"serps_expected":2480,"pairs_checked":0,"pairs_expected":0,"eta":"2026-11-12T10:30:00.000Z"}}},"cost":2480}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"422":{"description":"not_enough_results: Too few keywords are left after cleaning up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_enough_results"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/clustering/{id}":{"get":{"operationId":"get-clustering-id","tags":["Clustering"],"summary":"Get a clustering run","description":"The run and, while it works, how far it got.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/ClusteringRun"}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"clustering","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword_count":2480,"overlap":3,"device":"mobile","clusters_count":null,"progress":{"step":"fetching_serps","serps_fetched":0,"serps_expected":2480,"pairs_checked":0,"pairs_expected":0,"eta":"2026-11-12T10:30:00.000Z"}}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/clustering/{id}/clusters":{"get":{"operationId":"get-clustering-id-clusters","tags":["Clustering"],"summary":"Read clusters","description":"Clusters, most searched first, each with all its keywords and the People Also Ask questions from its results. Null until the run succeeded.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"search","in":"query","required":false,"description":"Only clusters with a keyword containing this.","schema":{"type":"string","maxLength":80}},{"name":"brand","in":"query","required":false,"description":"Only clusters naming this brand, as in `brands`.","schema":{"type":"string","minLength":1,"maxLength":80}},{"name":"branded","in":"query","required":false,"description":"yes: only clusters naming a brand; no: only those naming none.","schema":{"type":"string","enum":["yes","no"]}},{"name":"page_type","in":"query","required":false,"description":"Only clusters of this page type.","schema":{"type":"string","enum":["shop-category","product","editorial-list","comparison","review","explainer","how-to","reference","news","tool","resource","media","discussion","directory","landing-page","local","detail-page","brand-home","guide","video","store","mixed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/ClusteringRun"},"clusters":{"anyOf":[{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"$ref":"#/components/schemas/Cluster"}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false},{"type":"null"}]}},"required":["run","clusters"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"clustering","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"keyword_count":2480,"overlap":3,"device":"mobile","clusters_count":null,"progress":{"step":"fetching_serps","serps_fetched":0,"serps_expected":2480,"pairs_checked":0,"pairs_expected":0,"eta":"2026-11-12T10:30:00.000Z"}},"clusters":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"camping checklist","search_volume":13480,"keywords_count":4,"difficulty":24,"search_intents":{},"brands":["asics","new balance"],"page_type":"shop-category","page_types":{"shop-category":6,"editorial-list":3},"keywords":[{"keyword":"camping packing list","search_volume":2900,"difficulty":null,"search_intent":"informational","overlap":7}],"questions":[{"question":"What do I need for camping for the first time?","keyword":"string","answer":{"url":null,"title":null,"description":null}}]}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/clustering/{id}/keywords":{"get":{"operationId":"get-clustering-id-keywords","tags":["Clustering"],"summary":"Read clustered keywords","description":"The run’s keywords, most searched first: all of them, or one cluster’s. Null until the run succeeded.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 500.","schema":{"default":100,"type":"integer","minimum":1,"maximum":500}},{"name":"cluster_id","in":"query","required":false,"description":"Only this cluster’s keywords.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"keywords":{"anyOf":[{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"$ref":"#/components/schemas/ClusterKeyword"}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false},{"type":"null"}]}},"required":["keywords"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"keywords":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"camping packing list","search_volume":2900,"difficulty":null,"search_intent":"informational","overlap":7}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/people-also-ask":{"post":{"operationId":"post-people-also-ask","tags":["People Also Ask"],"summary":"Search People Also Ask","description":"Collects the People Also Ask questions Google shows for a topic, and those under them, in the background.","x-cost":"45 per search.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","minLength":1,"maxLength":200,"examples":["trail running"]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"location_code":{"description":"A city or region inside the country, from GET /v2/locations. Results pages are that place’s; search volumes stay the country’s. Leave out for the whole country.","examples":[1023191],"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["topic","country_code","language_code"]},"example":{"topic":"trail running","country_code":"us","language_code":"en","location_code":1023191}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["people-also-ask"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"topic":{"type":"string","examples":["trail running"]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","topic"],"additionalProperties":false}},"required":["run"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"people-also-ask","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"topic":"trail running"}},"cost":45}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/people-also-ask/{id}":{"get":{"operationId":"get-people-also-ask-id","tags":["People Also Ask"],"summary":"Read questions","description":"The whole question tree, in the order Google showed it. Null until the run succeeded.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["people-also-ask"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"topic":{"type":"string","examples":["trail running"]}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","topic"],"additionalProperties":false},"questions":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Question"}},{"type":"null"}]}},"required":["run","questions"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"run":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","tool":"people-also-ask","name":null,"status":"processing","country_code":"us","language_code":"en","location_code":null,"location_name":null,"project_id":null,"created_at":"2026-11-12T10:30:00.000Z","finished_at":null,"topic":"trail running"},"questions":[{"rank":0,"parent_rank":null,"question":"How do I start trail running?","answer":{"url":"string","title":null},"search_volume":null,"expanded":true}]},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/people-also-ask/{id}/questions/{rank}/expand":{"post":{"operationId":"post-people-also-ask-id-questions-rank-expand","tags":["People Also Ask"],"summary":"Expand a question","description":"Loads the questions Google shows below one question and returns them. Free if they were loaded before.","x-cost":"5 the first time.","parameters":[{"name":"id","in":"path","required":true,"description":"The run’s id.","schema":{"type":"string","format":"uuid"}},{"name":"rank","in":"path","required":true,"description":"The question’s rank.","schema":{"type":"integer","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"questions":{"type":"array","items":{"$ref":"#/components/schemas/Question"}}},"required":["questions"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"questions":[{"rank":0,"parent_rank":null,"question":"How do I start trail running?","answer":{"url":"string","title":null},"search_volume":null,"expanded":true}]},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"job_not_ready: The run hasn’t succeeded yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["job_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/rank-trackers":{"get":{"operationId":"get-rank-trackers","tags":["Rank Tracking"],"summary":"List rank trackers","description":"Your organisation’s rank trackers, newest first.","parameters":[{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 100.","schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"project_id","in":"query","required":false,"description":"Only this project’s trackers and those without a project.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"trackers":{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"$ref":"#/components/schemas/Tracker"}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false}},"required":["trackers"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"trackers":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"Trailpace US","domain":"trailpace.com","country_code":"us","language_code":"en","location_code":null,"location_name":null,"device":"mobile","competitors":["runrepeat.com"],"status":"active","paused_reason":null,"keyword_count":240,"cost_per_check":1680,"next_check_at":null,"last_checked_at":null,"created_at":"2026-11-12T10:30:00.000Z"}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}},"post":{"operationId":"post-rank-trackers","tags":["Rank Tracking"],"summary":"Create a rank tracker","description":"Tracks a domain’s Google positions for your keywords, and its competitors’. The first check starts right away; then it checks on schedule.","x-cost":"7 per keyword and check.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"examples":["Trailpace US"]},"domain":{"type":"string","maxLength":253,"description":"The domain to track.","examples":["trailpace.com"]},"keywords":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 1,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]},"competitors":{"default":[],"description":"Up to 3 domains to compare with.","maxItems":3,"type":"array","items":{"type":"string","maxLength":253}},"device":{"default":"mobile","type":"string","enum":["mobile","desktop"]},"country_code":{"type":"string","description":"Country to ask Google in, lowercase. GET /v2/markets lists them.","examples":["us"]},"language_code":{"type":"string","description":"Language for that country.","examples":["en"]},"location_code":{"description":"A city or region inside the country, from GET /v2/locations. Results pages are that place’s; search volumes stay the country’s. Leave out for the whole country.","examples":[1023191],"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"project_id":{"description":"Files the run under one of your projects (GET /v2/projects).","type":"string","format":"uuid"}},"required":["name","domain","keywords","country_code","language_code"]},"example":{"name":"Trailpace US","domain":"trailpace.com","keywords":["camping checklist","camping packing list"],"country_code":"us","language_code":"en","location_code":1023191}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"tracker":{"$ref":"#/components/schemas/Tracker"}},"required":["tracker"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"tracker":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"Trailpace US","domain":"trailpace.com","country_code":"us","language_code":"en","location_code":null,"location_name":null,"device":"mobile","competitors":["runrepeat.com"],"status":"active","paused_reason":null,"keyword_count":240,"cost_per_check":1680,"next_check_at":null,"last_checked_at":null,"created_at":"2026-11-12T10:30:00.000Z"}},"cost":1680}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them. size_limit_exceeded: It would grow past its size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request","size_limit_exceeded"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"402":{"description":"insufficient_credits: It costs more than the credits left. Nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_credits"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/rank-trackers/{id}":{"get":{"operationId":"get-rank-trackers-id","tags":["Rank Tracking"],"summary":"Get a rank tracker","description":"The tracker and its summary: visibility, average position, movement since the last check and how each domain compares.","parameters":[{"name":"id","in":"path","required":true,"description":"The tracker’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"tracker":{"$ref":"#/components/schemas/Tracker"},"summary":{"$ref":"#/components/schemas/Report"}},"required":["tracker","summary"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"tracker":{"id":"4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47","name":"Trailpace US","domain":"trailpace.com","country_code":"us","language_code":"en","location_code":null,"location_name":null,"device":"mobile","competitors":["runrepeat.com"],"status":"active","paused_reason":null,"keyword_count":240,"cost_per_check":1680,"next_check_at":null,"last_checked_at":null,"created_at":"2026-11-12T10:30:00.000Z"},"summary":{}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/rank-trackers/{id}/rankings":{"get":{"operationId":"get-rank-trackers-id-rankings","tags":["Rank Tracking"],"summary":"Read rankings","description":"Each keyword’s position on the latest check, its change against an earlier check, its best position and 30 days of history.","parameters":[{"name":"id","in":"path","required":true,"description":"The tracker’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 200.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"compare","in":"query","required":false,"description":"Compare with the check this many days earlier: 1, 7 or 30.","schema":{"default":1,"type":"number"}},{"name":"search","in":"query","required":false,"description":"Only keywords containing this.","schema":{"type":"string","maxLength":80}},{"name":"changed","in":"query","required":false,"description":"true: only keywords whose position changed.","schema":{"type":"string","enum":["true","false"]}},{"name":"sort","in":"query","required":false,"schema":{"default":"position","type":"string","enum":["keyword","position","change","volume","best"]}},{"name":"direction","in":"query","required":false,"schema":{"default":"asc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"checked_on":{"description":"Day of the latest check.","examples":["2026-11-12"],"type":["string","null"]},"compared_on":{"examples":["2026-11-11"],"type":["string","null"]},"history_days":{"type":"array","items":{"type":"string"},"description":"The days of each keyword’s history, newest first."},"rankings":{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"$ref":"#/components/schemas/Ranking"}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false}},"required":["checked_on","compared_on","history_days","rankings"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"checked_on":"2026-11-12","compared_on":"2026-11-11","history_days":["string"],"rankings":{"total_count":1240,"page_index":0,"page_size":50,"items":[{"keyword":"trail running shoes","search_volume":22200,"checked":true,"position":4,"previous_position":6,"compared":true,"best":3,"url":null,"ai_overview":null,"competitors":{},"estimated_traffic":null,"history":[null]}]}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/rank-trackers/{id}/keywords":{"post":{"operationId":"post-rank-trackers-id-keywords","tags":["Rank Tracking"],"summary":"Add keywords to a tracker","description":"Adds keywords; they’re checked from the next check on.","x-cost":"7 per keyword and check, from the next check.","parameters":[{"name":"id","in":"path","required":true,"description":"The tracker’s id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 1,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]}},"required":["keywords"]},"example":{"keywords":["camping checklist","camping packing list"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"added":{"type":"integer","description":"Keywords that weren’t tracked yet.","examples":[12]}},"required":["added"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"added":12},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them. size_limit_exceeded: It would grow past its size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request","size_limit_exceeded"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}},"delete":{"operationId":"delete-rank-trackers-id-keywords","tags":["Rank Tracking"],"summary":"Remove keywords from a tracker","description":"Stops tracking the keywords given in the body. Their history is kept.","parameters":[{"name":"id","in":"path","required":true,"description":"The tracker’s id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","maxLength":200},"description":"1 to 1,000 keywords. Spacing, case and duplicates are cleaned up.","examples":[["camping checklist","camping packing list"]]}},"required":["keywords"]},"example":{"keywords":["camping checklist","camping packing list"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{},"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/ai-visibility":{"get":{"operationId":"get-projects-id-ai-visibility","tags":["AI Visibility"],"summary":"Get AI visibility","description":"The project’s AI visibility tracker and its summary: how often ChatGPT, Gemini, Perplexity and AI Overviews mention your brand and competitors. Both are null until it’s set up in the dashboard.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"tracker":{"anyOf":[{"$ref":"#/components/schemas/Report"},{"type":"null"}]},"summary":{"anyOf":[{"$ref":"#/components/schemas/Report"},{"type":"null"}]}},"required":["tracker","summary"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"tracker":{},"summary":{}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/ai-visibility/prompts":{"get":{"operationId":"get-projects-id-ai-visibility-prompts","tags":["AI Visibility"],"summary":"Read prompt results","description":"Each tracked prompt with what every assistant answered on the latest check: whether it mentioned you, where, and which competitors.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 100.","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"search","in":"query","required":false,"description":"Only prompts containing this.","schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"prompts":{"$ref":"#/components/schemas/Report"}},"required":["prompts"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"prompts":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/ai-visibility/sources":{"get":{"operationId":"get-projects-id-ai-visibility-sources","tags":["AI Visibility"],"summary":"Read cited sources","description":"The pages AI assistants cite in their answers to your prompts, most cited first.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 100.","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"sources":{"$ref":"#/components/schemas/Report"}},"required":["sources"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"sources":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console":{"get":{"operationId":"get-projects-id-search-console","tags":["Search Console"],"summary":"Get Search Console status","description":"Whether a Google account is connected for your organisation, which property the project reads, and how far its data goes. Connect and pick the property in the dashboard.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/Report"}},"required":["status"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"status":{}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console/findings":{"get":{"operationId":"get-projects-id-search-console-findings","tags":["Search Console"],"summary":"List findings","description":"What to improve, found in the project’s Search Console data: queries almost on page 1, low click-through rates, losing pages, seasonal queries coming up, cannibalization, queries without a suitable page, dropped and new queries, and pages without clicks. Each with how many rows it has and the clicks a month acting on it could bring, biggest first.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"findings":{"$ref":"#/components/schemas/Report"}},"required":["findings"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"findings":{}},"cost":0}}}},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"search_console_not_ready: The project reads no Search Console property yet, or its data is still loading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_console_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console/findings/{finding}":{"get":{"operationId":"get-projects-id-search-console-findings-finding","tags":["Search Console"],"summary":"Read a finding","description":"A finding’s rows, the biggest potential first, and the thresholds behind it. Rows are queries or pages; each has `potential`, the extra clicks a month.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"finding","in":"path","required":true,"description":"Which finding.","schema":{"type":"string","enum":["page1","ctr","losing","season","cannibal","nopage","dropped","new","noclicks"]}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 1000.","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"finding":{"$ref":"#/components/schemas/Report"}},"required":["finding"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"finding":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"search_console_not_ready: The project reads no Search Console property yet, or its data is still loading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_console_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console/performance":{"get":{"operationId":"get-projects-id-search-console-performance","tags":["Search Console"],"summary":"Read performance","description":"Clicks, impressions, click-through rate and average position per day (per week beyond three months), with totals against the period before. With `finding`, only that finding’s rows.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"range","in":"query","required":false,"description":"The period up to the last day with data: 7d, 28d, 3m, 12m, 16m, or all we stored.","schema":{"default":"28d","type":"string","enum":["7d","28d","3m","12m","16m","all"]}},{"name":"finding","in":"query","required":false,"description":"Narrow it to a finding’s queries or pages.","schema":{"type":"string","enum":["page1","ctr","losing","season","cannibal","nopage","dropped","new","noclicks"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"performance":{"$ref":"#/components/schemas/Report"}},"required":["performance"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"performance":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"search_console_not_ready: The project reads no Search Console property yet, or its data is still loading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_console_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console/queries":{"get":{"operationId":"get-projects-id-search-console-queries","tags":["Search Console"],"summary":"List search queries","description":"Every query with clicks, impressions, click-through rate and average position for the period, and the same for the period before it. Each query has the page that ranks for it most.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"range","in":"query","required":false,"description":"The period up to the last day with data: 7d, 28d, 3m, 12m, 16m, or all we stored.","schema":{"default":"28d","type":"string","enum":["7d","28d","3m","12m","16m","all"]}},{"name":"search","in":"query","required":false,"description":"Only rows containing this text.","schema":{"type":"string","maxLength":200}},{"name":"filter","in":"query","required":false,"description":"Rules on the table's columns, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=query&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how. Fields: query and words (on the query), page, path and depth (on the URL), country (queries only), clicks, impressions, ctr (percent), position, clicks_change and position_change. A rule on the other table's text (page on queries, query on pages) lists the rows paired with it, e.g. the queries a page ranks for: their numbers are then those pairs' over the last 28 days, without `previous`, and `pairs` says so; it can't be combined with country. Country rules (is_any, is_none with Google's lowercase three-letter codes in values, e.g. deu) sum that country's clicks only; Google leaves out more rare queries when it splits by country. Country rules and rules on the other table's text always apply, also with match any. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value. Text ignores case.","schema":{"default":{"match":"all","rules":[]},"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["query","page","path","words","depth","country","clicks","impressions","ctr","position","clicks_change","position_change"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true},{"name":"compare","in":"query","required":false,"description":"What `previous` is: the period before (previous), or the same days 52 weeks earlier (year).","schema":{"default":"previous","type":"string","enum":["previous","year"]}},{"name":"sort","in":"query","required":false,"schema":{"default":"clicks","type":"string","enum":["clicks","impressions","ctr","position"]}},{"name":"direction","in":"query","required":false,"schema":{"default":"desc","type":"string","enum":["asc","desc"]}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 1000.","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"queries":{"$ref":"#/components/schemas/Report"}},"required":["queries"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"queries":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"search_console_not_ready: The project reads no Search Console property yet, or its data is still loading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_console_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console/pages":{"get":{"operationId":"get-projects-id-search-console-pages","tags":["Search Console"],"summary":"List pages","description":"Every page with clicks, impressions, click-through rate and average position for the period, and the same for the period before it. Each page has how many queries it ranks for.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"range","in":"query","required":false,"description":"The period up to the last day with data: 7d, 28d, 3m, 12m, 16m, or all we stored.","schema":{"default":"28d","type":"string","enum":["7d","28d","3m","12m","16m","all"]}},{"name":"search","in":"query","required":false,"description":"Only rows containing this text.","schema":{"type":"string","maxLength":200}},{"name":"filter","in":"query","required":false,"description":"Rules on the table's columns, every one matching or any (filter[match]=any), as a nested query: filter[rules][0][field]=query&filter[rules][0][op]=starts_with_any&filter[rules][0][values][]=how. Fields: query and words (on the query), page, path and depth (on the URL), country (queries only), clicks, impressions, ctr (percent), position, clicks_change and position_change. A rule on the other table's text (page on queries, query on pages) lists the rows paired with it, e.g. the queries a page ranks for: their numbers are then those pairs' over the last 28 days, without `previous`, and `pairs` says so; it can't be combined with country. Country rules (is_any, is_none with Google's lowercase three-letter codes in values, e.g. deu) sum that country's clicks only; Google leaves out more rare queries when it splits by country. Country rules and rules on the other table's text always apply, also with match any. Text operators: contains, not_contains, equals, not_equals, starts_with, ends_with, regex (POSIX, without (?…) groups or backreferences) take value; contains_any, contains_all, contains_none, starts_with_any take values. Number operators gt, gte, lt, lte, eq, ne take value. Text ignores case.","schema":{"default":{"match":"all","rules":[]},"type":"object","properties":{"match":{"default":"all","type":"string","enum":["all","any"]},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["query","page","path","words","depth","country","clicks","impressions","ctr","position","clicks_change","position_change"]},"op":{"type":"string","enum":["contains","not_contains","equals","not_equals","starts_with","ends_with","regex","contains_any","contains_all","contains_none","starts_with_any","gt","gte","lt","lte","eq","ne","is_any","is_none"]},"value":{"type":"string","maxLength":500},"values":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["field","op"]}}},"additionalProperties":false},"style":"deepObject","explode":true},{"name":"compare","in":"query","required":false,"description":"What `previous` is: the period before (previous), or the same days 52 weeks earlier (year).","schema":{"default":"previous","type":"string","enum":["previous","year"]}},{"name":"sort","in":"query","required":false,"schema":{"default":"clicks","type":"string","enum":["clicks","impressions","ctr","position"]}},{"name":"direction","in":"query","required":false,"schema":{"default":"desc","type":"string","enum":["asc","desc"]}},{"name":"page_index","in":"query","required":false,"description":"Page to return, from 0.","schema":{"default":0,"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"description":"Items per page, up to 1000.","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"pages":{"$ref":"#/components/schemas/Report"}},"required":["pages"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"pages":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"search_console_not_ready: The project reads no Search Console property yet, or its data is still loading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_console_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}},"/projects/{id}/search-console/breakdown":{"get":{"operationId":"get-projects-id-search-console-breakdown","tags":["Search Console"],"summary":"Break down by country or device","description":"Clicks, impressions, click-through rate and position per country or device for the period, with each one’s share of the clicks.","parameters":[{"name":"id","in":"path","required":true,"description":"The project’s id.","schema":{"type":"string","format":"uuid"}},{"name":"range","in":"query","required":false,"description":"The period up to the last day with data: 7d, 28d, 3m, 12m, 16m, or all we stored.","schema":{"default":"28d","type":"string","enum":["7d","28d","3m","12m","16m","all"]}},{"name":"by","in":"query","required":true,"description":"Countries or devices.","schema":{"type":"string","enum":["countries","devices"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"success"},"data":{"type":"object","properties":{"breakdown":{"$ref":"#/components/schemas/Report"}},"required":["breakdown"],"additionalProperties":false},"cost":{"type":"integer","description":"Credits this call used."}},"required":["status","data","cost"]},"example":{"status":"success","data":{"breakdown":{}},"cost":0}}}},"400":{"description":"bad_request: A field is missing or invalid; invalid_fields names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["bad_request"]},"401":{"description":"invalid_api_key: No key, or an unknown or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key"]},"403":{"description":"insufficient_entitlements: Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insufficient_entitlements"]},"404":{"description":"not_found: No such id in your organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"409":{"description":"search_console_not_ready: The project reads no Search Console property yet, or its data is still loading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_console_not_ready"]},"429":{"description":"rate_limited: Over the key’s rate limit; retry after the retry-after header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings › API keys."}},"schemas":{"Account":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","examples":["Trailpace"]}},"required":["id","name"],"additionalProperties":false},"credits":{"type":"object","properties":{"balance":{"type":"integer","description":"Credits you can spend now.","examples":[48210]}},"required":["balance"],"additionalProperties":false},"rate_limits":{"type":"object","properties":{"requests_per_minute":{"type":"integer","examples":[300]},"runs_per_minute":{"type":"integer","description":"POST requests, which start paid work.","examples":[60]}},"required":["requests_per_minute","runs_per_minute"],"additionalProperties":false}},"required":["organization","credits","rate_limits"],"additionalProperties":false},"Cluster":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","description":"Its keyword with the most searches.","examples":["camping checklist"]},"search_volume":{"type":"integer","description":"All its keywords’ searches together.","examples":[13480]},"keywords_count":{"type":"integer","examples":[4]},"difficulty":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Average difficulty.","examples":[24]},"search_intents":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Keywords per main intent."},"brands":{"type":"array","items":{"type":"string"},"description":"Brands and product lines its keywords name, most keywords first.","examples":[["asics","new balance"]]},"page_type":{"anyOf":[{"type":"string","enum":["shop-category","product","editorial-list","comparison","review","explainer","how-to","reference","news","tool","resource","media","discussion","directory","landing-page","local","detail-page","brand-home","guide","video","store","mixed"]},{"type":"null"}],"description":"What ranks for its main keyword: the page type of at least half the top 10 results, mixed when none has half, null when not checked. A page to write of the same type. guide, video, store: only runs before 2026-11-20.","examples":["shop-category"]},"page_types":{"anyOf":[{"type":"object","propertyNames":{"type":"string","enum":["shop-category","product","editorial-list","comparison","review","explainer","how-to","reference","news","tool","resource","media","discussion","directory","landing-page","local","detail-page","brand-home","guide","video","store"]},"additionalProperties":{"type":"integer"}},{"type":"null"}],"description":"How many of the main keyword’s top 10 results are of each page type.","examples":[{"shop-category":6,"editorial-list":3}]},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/ClusterKeyword"}},"questions":{"type":"array","items":{"$ref":"#/components/schemas/ClusterQuestion"},"description":"People Also Ask questions from its results."}},"required":["id","name","search_volume","keywords_count","difficulty","search_intents","brands","page_type","page_types","keywords","questions"],"additionalProperties":false},"ClusteringRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid","examples":["4f1c9e2a-6b7d-4c1e-9a53-2d8e0f6b1c47"]},"tool":{"type":"string","description":"The tool that made it.","examples":["clustering"]},"name":{"type":["string","null"]},"status":{"type":"string","enum":["processing","succeeded","failed"],"description":"A failed run keeps its charge: the data was already requested.","examples":["processing"]},"country_code":{"examples":["us"],"type":["string","null"]},"language_code":{"examples":["en"],"type":["string","null"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null while processing."},"keyword_count":{"type":"integer","description":"Keywords after cleaning up.","examples":[2480]},"overlap":{"type":"integer","description":"Results of the top 10 two keywords share at least, used only if the intent check is unavailable.","examples":[3]},"device":{"type":"string","enum":["mobile","desktop"]},"clusters_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Set once the run succeeded."},"progress":{"anyOf":[{"type":"object","properties":{"step":{"type":"string","enum":["fetching_serps","clustering"]},"serps_fetched":{"type":"integer","examples":[0]},"serps_expected":{"type":"integer","examples":[2480]},"pairs_checked":{"type":"integer","description":"Checks done for one search intent (about words and keyword pairs), while clustering.","examples":[0]},"pairs_expected":{"type":"integer","description":"Grows while clustering, with each round of checks.","examples":[0]},"eta":{"type":"string","description":"When the run should be done.","examples":["2026-11-12T10:30:00.000Z"]}},"required":["step","serps_fetched","serps_expected","pairs_checked","pairs_expected","eta"],"additionalProperties":false},{"type":"null"}],"description":"While processing."}},"required":["id","tool","name","status","country_code","language_code","location_code","location_name","project_id","created_at","finished_at","keyword_count","overlap","device","clusters_count","progress"],"additionalProperties":false},"ClusterKeyword":{"type":"object","properties":{"keyword":{"type":"string","examples":["camping packing list"]},"search_volume":{"type":"integer","examples":[2900]},"difficulty":{"type":["number","null"]},"search_intent":{"examples":["informational"],"type":["string","null"]},"overlap":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Top-10 results it shares with the cluster’s main keyword.","examples":[7]}},"required":["keyword","search_volume","difficulty","search_intent","overlap"],"additionalProperties":false},"ClusterQuestion":{"type":"object","properties":{"question":{"type":"string","examples":["What do I need for camping for the first time?"]},"keyword":{"type":"string","description":"The keyword whose results showed it."},"answer":{"anyOf":[{"type":"object","properties":{"url":{"type":["string","null"]},"title":{"type":["string","null"]},"description":{"type":["string","null"]}},"required":["url","title","description"],"additionalProperties":false},{"type":"null"}]}},"required":["question","keyword","answer"],"additionalProperties":false},"Keyword":{"type":"object","properties":{"keyword":{"type":"string","examples":["camping checklist"]},"search_volume":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Average monthly searches.","examples":[8100]},"cpc":{"description":"Cost per click in USD.","examples":[0.42],"type":["number","null"]},"competition":{"description":"Ad competition, 0 to 1.","examples":[0.18],"type":["number","null"]},"difficulty":{"description":"How hard it is to rank, 0 to 100.","examples":[24],"type":["number","null"]},"search_intents":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","examples":["informational"]},"probability":{"type":["number","null"]}},"required":["label","probability"],"additionalProperties":false}},{"type":"null"}],"description":"Main intent first."},"serp_features":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"What Google shows besides results.","examples":[["people_also_ask","video"]]},"monthly_searches":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","examples":["2026-10"]},"volume":{"anyOf":[{"type":"integer"},{"type":"null"}],"examples":[8100]}},"required":["month","volume"],"additionalProperties":false}},{"type":"null"}],"description":"The last 12 months, newest first."},"metrics_updated_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}],"description":"Null when no metrics were fetched yet.","examples":["2026-11-02T08:14:00.000Z"]}},"required":["keyword","search_volume","cpc","competition","difficulty","search_intents","serp_features","monthly_searches","metrics_updated_at"],"additionalProperties":false},"KeywordList":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","examples":["Camping guides"]},"country_code":{"type":"string","examples":["us"]},"language_code":{"type":"string","examples":["en"]},"keyword_count":{"type":"integer","examples":[320]},"updating":{"type":"boolean","description":"Keywords are being added or their metrics fetched."},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},"updated_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]}},"required":["id","name","country_code","language_code","keyword_count","updating","created_at","updated_at"],"additionalProperties":false},"KeywordPage":{"type":"object","properties":{"total_count":{"type":"integer","description":"Items across all pages.","examples":[1240]},"page_index":{"type":"integer","examples":[0]},"page_size":{"type":"integer","examples":[50]},"items":{"type":"array","items":{"$ref":"#/components/schemas/Keyword"}}},"required":["total_count","page_index","page_size","items"],"additionalProperties":false},"Location":{"type":"object","properties":{"location_code":{"type":"integer","description":"Pass it as location_code.","examples":[1023191]},"name":{"type":"string","description":"City, region, or a region with its type.","examples":["New York, New York"]}},"required":["location_code","name"],"additionalProperties":false},"Market":{"type":"object","properties":{"country_code":{"type":"string","examples":["us"]},"country":{"type":"string","examples":["United States"]},"languages":{"type":"array","items":{"type":"object","properties":{"language_code":{"type":"string","examples":["en"]},"language":{"type":"string","examples":["English"]}},"required":["language_code","language"],"additionalProperties":false}}},"required":["country_code","country","languages"],"additionalProperties":false},"Project":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"domain":{"type":"string","examples":["trailpace.com"]},"country_code":{"type":"string","examples":["us"]},"language_code":{"type":"string","examples":["en"]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]}},"required":["id","domain","country_code","language_code","created_at"],"additionalProperties":false},"Question":{"type":"object","properties":{"rank":{"type":"integer","description":"Its position in the tree; expand it by this.","examples":[0]},"parent_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The question it was found under, null at the top."},"question":{"type":"string","examples":["How do I start trail running?"]},"answer":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"title":{"type":["string","null"]}},"required":["url","title"],"additionalProperties":false},{"type":"null"}]},"search_volume":{"anyOf":[{"type":"integer"},{"type":"null"}]},"expanded":{"type":"boolean","description":"Whether the questions below it were loaded."}},"required":["rank","parent_rank","question","answer","search_volume","expanded"],"additionalProperties":false},"Ranking":{"type":"object","properties":{"keyword":{"type":"string","examples":["trail running shoes"]},"search_volume":{"anyOf":[{"type":"integer"},{"type":"null"}],"examples":[22200]},"checked":{"type":"boolean","description":"Whether the latest check covered it."},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null: not in the top 100.","examples":[4]},"previous_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On the compared day.","examples":[6]},"compared":{"type":"boolean"},"best":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Best position in the last 30 days.","examples":[3]},"url":{"description":"Your page that ranks.","type":["string","null"]},"ai_overview":{"description":"Whether an AI Overview showed, and cited you.","type":["string","null"]},"competitors":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Each competitor’s position."},"estimated_traffic":{"description":"Monthly visits from this position.","type":["number","null"]},"history":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"null"}]},"description":"Positions on history_days, null where not ranking."}},"required":["keyword","search_volume","checked","position","previous_position","compared","best","url","ai_overview","competitors","estimated_traffic","history"],"additionalProperties":false},"Report":{"type":"object","properties":{},"additionalProperties":{},"description":"A report as the dashboard shows it; its fields may grow."},"Tracker":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","examples":["Trailpace US"]},"domain":{"type":"string","examples":["trailpace.com"]},"country_code":{"type":"string","examples":["us"]},"language_code":{"type":"string","examples":["en"]},"location_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The city or region, when it was for one.","examples":[null]},"location_name":{"examples":[null],"type":["string","null"]},"device":{"type":"string","enum":["mobile","desktop"]},"competitors":{"type":"array","items":{"type":"string"},"examples":[["runrepeat.com"]]},"status":{"type":"string","description":"active or paused.","examples":["active"]},"paused_reason":{"description":"Why it was paused, e.g. out of credits.","type":["string","null"]},"keyword_count":{"type":"integer","examples":[240]},"cost_per_check":{"type":"integer","description":"Credits each check costs.","examples":[1680]},"next_check_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}]},"last_checked_at":{"anyOf":[{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601.","examples":["2026-11-12T10:30:00.000Z"]}},"required":["id","name","domain","country_code","language_code","location_code","location_name","device","competitors","status","paused_reason","keyword_count","cost_per_check","next_check_at","last_checked_at","created_at"],"additionalProperties":false},"Error":{"type":"object","properties":{"status":{"const":"error"},"error_code":{"type":"string","enum":["bad_request","invalid_filter","size_limit_exceeded","invalid_api_key","insufficient_credits","paid_plan_required","insufficient_entitlements","not_found","awaiting_mutation","job_not_ready","search_console_not_ready","not_enough_results","rate_limited"]},"message":{"type":"string"},"invalid_fields":{"type":"array","items":{"type":"string"},"description":"With bad_request: the fields that failed."},"missing_entitlements":{"type":"array","items":{"type":"string"},"description":"With insufficient_entitlements."}},"required":["status","error_code"]}},"x-errors":{"bad_request":{"status":400,"when":"A field is missing or invalid; invalid_fields names them."},"invalid_filter":{"status":400,"when":"The filter has more conditions than the live data source can apply (8 at most; a list of values counts once, except for contains_all)."},"size_limit_exceeded":{"status":400,"when":"It would grow past its size limit."},"invalid_api_key":{"status":401,"when":"No key, or an unknown or revoked one."},"insufficient_credits":{"status":402,"when":"It costs more than the credits left. Nothing is charged."},"paid_plan_required":{"status":402,"when":"Only available on a paid plan."},"insufficient_entitlements":{"status":403,"when":"Your plan doesn’t include it (the API itself, or this size); missing_entitlements says what."},"not_found":{"status":404,"when":"No such id in your organisation."},"awaiting_mutation":{"status":409,"when":"The list is still busy with the last change; try again in a moment."},"job_not_ready":{"status":409,"when":"The run hasn’t succeeded yet."},"search_console_not_ready":{"status":409,"when":"The project reads no Search Console property yet, or its data is still loading."},"not_enough_results":{"status":422,"when":"Too few keywords are left after cleaning up."},"rate_limited":{"status":429,"when":"Over the key’s rate limit; retry after the retry-after header."}}}}