List the states / admin-1 regions of a country available as state filter values. Each code (e.g. US-CA) is the exact value the jobs state filter accepts; the bare admin1_code (e.g. CA) also works when a country filter is supplied (it is auto-scoped to that country). Rows share the kind / code / population vocabulary of GET /locations/search. For type-ahead across every kind of place at once, use GET /locations/search.
bearerAuthAuthorizationBearer <token>Provide your secret API key (prefixed sk_) as a bearer token: Authorization: Bearer sk_....
country*stringISO 3166-1 alpha-2 country code to list regions for (2 letters, case-insensitive).
2 <= length <= 2The available states / regions.
application/json- response
The list of states / regions usable as location filters.
data*array<>The states / regions of the requested country usable as state filter values.
curl -X GET 'https://example.com/api/v1/locations/states?country=st'{ "data": [ { "kind": "state", "code": "string", "admin1_code": "string", "name": "string", "slug": "string", "population": 0 } ]}