Find a state or province by ISO 3166-2 subdivision code
Resolve an ISO 3166-2 subdivision code (e.g.Documentation Index
Fetch the complete documentation index at: https://docs.countrystatecity.in/llms.txt
Use this file to discover all available pages before exploring further.
US-CA, IN-MH, DE-BY) to the state/province record.
The match prefers the canonical iso3166_2 column. When that column is NULL for a row (common in older imports), the endpoint falls back to matching the legacy iso2 column scoped to the same country — so the lookup works even for partially-coded rows without risking cross-country false matches.
403 on Community plan.US-CA and us-ca collapse to the same cache slot (input is auto-uppercased).XX-YYY — 2-letter country code, hyphen, then 1–3 alphanumeric characters for the subdivision. Case-insensitive (auto-uppercased).Examples: US-CA, IN-MH, DE-BY, GB-ENG, JP-13/v1/states/:id and as a foreign key from /cities."California")."CA"). May be null for some entries."US-CA"). May be null for older entries — the endpoint still resolves them via the iso2 fallback./countries."US").