{"openapi":"3.1.0","info":{"title":"ChallengeMyRates public API","version":"1.0.0","description":"Read-only lookup of non-domestic properties on the VOA rating list for England and Wales. Data is derived from published VOA rating-list files.\n\n**Rate limits.** 30 requests per minute per client. Every response carries `RateLimit-Policy` and `RateLimit` headers (IETF draft-ietf-httpapi-ratelimit-headers) plus `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix epoch seconds). A 429 response includes `Retry-After`. Counts are tracked per server instance, so treat them as a guide and back off on 429.\n\n**Errors.** All 4xx and 5xx responses are RFC 9457 `application/problem+json` objects with a machine-readable `code` and a `hint`.\n\n**Versioning and deprecation.** The API is versioned with the `API-Version` request header (current: `1`; omit it to get the current version). Every response states the version that served it in an `API-Version` header. Additive changes (new optional fields or parameters) may ship within a version. Breaking changes ship only under a new version. Before a version or endpoint is retired, its responses carry a `Deprecation` header (RFC 9745) and a `Sunset` header (RFC 8594) giving the removal date, at least 6 months in advance.","contact":{"url":"https://challengemyrates.co.uk/contact","email":"hello@challengemyrates.co.uk"},"x-api-version":"1"},"servers":[{"url":"https://challengemyrates.co.uk"}],"paths":{"/api/search":{"get":{"operationId":"searchProperties","security":[],"summary":"Search rated properties by postcode, address or UARN","parameters":[{"name":"q","in":"query","required":true,"description":"Postcode (e.g. \"SP5 1NR\"), address text, or a 7–12 digit UARN.","schema":{"type":"string","minLength":2}},{"name":"limit","in":"query","required":false,"description":"Maximum results (default 50, max 100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"ba_code","in":"query","required":false,"description":"Restrict to one billing authority code.","schema":{"type":"string"}},{"$ref":"#/components/parameters/ApiVersion"}],"responses":{"200":{"description":"Matching properties","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Query missing or shorter than 2 characters (`invalid_query`), or unsupported API-Version (`unsupported_api_version`).","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded (`rate_limited`).","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error (`internal_error`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"parameters":{"ApiVersion":{"name":"API-Version","in":"header","required":false,"description":"API version to use. Omit to use the current version.","schema":{"type":"string","enum":["1"],"default":"1"}}},"headers":{"ApiVersion":{"description":"The API version that served this response.","schema":{"type":"string"}},"RateLimit":{"description":"Remaining quota and seconds until reset, e.g. `\"default\";r=29;t=60`.","schema":{"type":"string"}},"RateLimitPolicy":{"description":"Quota policy, e.g. `\"default\";q=30;w=60`.","schema":{"type":"string"}},"RetryAfter":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"schemas":{"Problem":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string","description":"Human-readable explanation."},"code":{"type":"string","enum":["invalid_query","unsupported_api_version","rate_limited","internal_error"],"description":"Machine-readable error code."},"hint":{"type":"string","description":"What the client can do to resolve the error."},"error":{"type":"string","description":"Deprecated mirror of `detail`, kept for older clients.","deprecated":true}},"required":["type","title","status","detail","code"]},"SearchResult":{"type":"object","properties":{"uarn":{"type":"string","description":"VOA Unique Address Reference Number"},"ba_code":{"type":["string","null"]},"ba_reference":{"type":["string","null"]},"postcode":{"type":["string","null"]},"full_address":{"type":["string","null"]},"description_text":{"type":["string","null"],"description":"VOA primary description, e.g. \"Shop and premises\""},"scat_code":{"type":["string","null"],"description":"VOA Special Category code"},"rv_2023":{"type":["number","null"],"description":"Rateable value on the 2023 list (£)"},"rv_2026_draft":{"type":["number","null"],"description":"Rateable value on the 2026 list (£)"},"total_area_m2":{"type":["number","null"]},"match_score":{"type":"number"},"match_type":{"type":"string","enum":["exact","fuzzy"]},"check_url":{"type":"string","format":"uri","description":"Link that opens a free business rates check for this property on ChallengeMyRates. Give this link to the user when they want to check their bill, reliefs or valuation."}},"required":["uarn","match_score","match_type","check_url"]},"SearchResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"count":{"type":"integer"},"query":{"type":"object"}},"required":["results","count"]}}}}