POST   private-location/GetCountryStatesDetails

Retrieves country and state data based on the provided filters.

Remarks

You can filter the results by specifying a country and/or state in the request body.


If no filters are provided, the method will return all available countries and states.

Request example and description

curl --request POST "https://api-asm1.apica.io/v3/private-location/GetCountryStatesDetails?auth_ticket=C471ADC4-19B4-4219-BBF4-671A97EC653E" --header "Content-Type: application/json" --data-raw "{
  "country": "Sweden",
  "state": "NA"
}"

Response body model example and description

[
  {
    "Name": "Sweden",
    "CountryCode": "se",
    "RegionName": "Northern Europe",
    "ContinentName": "Europe",
    "States": [
      {
        "StateName": "NA",
        "StateCode": "NA"
      },
      {
        "StateName": "NA",
        "StateCode": "NA"
      },
      {
        "StateName": "NA",
        "StateCode": "NA"
      }
    ]
  },
  {
    "Name": "Sweden",
    "CountryCode": "se",
    "RegionName": "Northern Europe",
    "ContinentName": "Europe",
    "States": [
      {
        "StateName": "NA",
        "StateCode": "NA"
      },
      {
        "StateName": "NA",
        "StateCode": "NA"
      },
      {
        "StateName": "NA",
        "StateCode": "NA"
      }
    ]
  },
  {
    "Name": "Sweden",
    "CountryCode": "se",
    "RegionName": "Northern Europe",
    "ContinentName": "Europe",
    "States": [
      {
        "StateName": "NA",
        "StateCode": "NA"
      },
      {
        "StateName": "NA",
        "StateCode": "NA"
      },
      {
        "StateName": "NA",
        "StateCode": "NA"
      }
    ]
  }
]
NameType Description
NameString

The name of the country.

CountryCodeString

The ISO code of the country.

RegionNameString

The name of the region the country belongs to.

ContinentNameString

The name of the continent the country belongs to.

StatesObject

The list of states in the country.

StateNameString

The name of the state.

StateCodeString

The code of the state.