Get States
This API is used to fetch the list of countries. After you provide the ID of the specific country you want information about, the API will return a list of states for that country along with the corresponding ISO2 and country codes.
Request Body
country_id(integer): The unique ID of the country for which you want to fetch information.
Response
The response is an array of objects, each containing information about a state from the specified country.
-
state_id(integer): The unique ID assigned to the state. -
state_name(string): The official name of the state. -
iso2(string): The ISO2 code assigned to the state. -
country_code(string): The ISO2 code associated with the country the state belongs to.
Query parameters
api_token
Response
Get States
message
api
status
data

