States Endpoints
Get State Details
Retrieve detailed information for a specific state using country and state ISO2 codes
GET
Retrieve detailed information for a specific state or province using the country’s ISO2 code and the state’s ISO2 code.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.
Availability: All plans (Community and above). The fields returned vary by tier — see Tier-Based Field Availability below.
Path Parameters
ISO2 code of the country (e.g., “IN”, “US”)
ISO2 code of the state/province (e.g., “MH” for Maharashtra, “CA” for California)
Authentication
Your API key for authentication
Response
Unique identifier for the state/province
Official name of the state/province
Unique identifier of the parent country
ISO2 code of the parent country
ISO2 code for the state/province
Approximate latitude coordinate of the state/province center
Approximate longitude coordinate of the state/province center
IANA timezone identifier (e.g.,
"Asia/Kolkata")Administrative division type (e.g.,
"state", "province", "region"). Coordinates tier and above.Additional fields like
fips_code, iso3166_2, level, parent_id, native, population, translations, and wikiDataId are returned on higher tiers. See Tier-Based Field Availability below.Common Use Cases
Location-Based Services
Location-Based Services
Use coordinates for distance calculations and mapping.
Administrative Type Validation
Administrative Type Validation
Validate administrative division types for data processing.
Tier-Based Field Availability
| Tier | Plans | Fields |
|---|---|---|
| Basic | Community, Starter, Legacy | id, name, iso2, country_id, country_code, latitude, longitude, timezone |
| Coordinates | Supporter | All Basic + fips_code, iso3166_2, type, level, parent_id, native, population |
| Full | Professional, Business | All Coordinates + translations, wikiDataId |