Get a state by country and code

Resolve a state code within one country. Use this, not the global lookup: state codes repeat across countries.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
length between 2 and 3

ISO 3166-1 alpha-2 country code, such as PE.

string
required
length between 2 and 3

The state's two- or three-letter code, from Get states by country.

Responses

429

Rate limit exceeded. Every response carries x-rate-limit-limit, x-rate-limit-remaining and x-rate-limit-reset; read them rather than assuming a fixed number.

Verified headers: x-rate-limit-limit: 300, x-rate-limit-remaining, and x-rate-limit-reset as a Unix timestamp. They are on every response, not only on a 429, so you can slow down before being refused.

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json