Skip to main content

List country states

GET 

/countries/country/country_states

Return a list of all country states for a specific country

Request

Query Parameters

    country[id] string

    The country to return states for.

    All 'country[]' params are mutually exclusive, only one can be provided.

    country[iso_code2] string

    The country to return states for.

    All 'country[]' params are mutually exclusive, only one can be provided.

    country[iso_code3] string

    The country to return states for.

    All 'country[]' params are mutually exclusive, only one can be provided.

    page integer

    Possible values: >= 1

    Default value: 1

    The page number to request. If not provided, the first page will be returned.

    per_page integer

    Possible values: >= 1

    Default value: 30

    The number of items to return per page. If not provided, the default value will be used.

Responses

Return a list of all country states for a specific country

Schema

    pagination

    object

    required

    current_page integer

    The current page

    total_pages integernullable

    The total number of pages

    total integernullable

    The total number of items across all pages

    per_page integer

    The number of items per page

    large_set boolean

    Is this a large set and therefore the total number of records cannot be returned?

    country_states

    object[]

    required

    The list of country states for the given country

  • Array [

  • id string
    name string
  • ]

Loading...