Country State City Get States
country_state_city_get_statesGet all states or provinces for a country by ISO2 code (e.g., "US", "IN", "BR"). Returns state names, codes, and types.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"_apiKey": "your-country-state-city-api-key",
"country_code": "US"
},
"name": "country_state_city_get_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _apiKey | Yes | CountryStateCity API key | |
| country_code | Yes | ISO2 country code (e.g., "US", "CA", "GB", "DE") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Total number of states returned | |
| states | Yes | ||
| country_code | Yes | ISO2 country code provided |