Geography

Administrative Division by ID

Returns the details of a specific administrative division (state, province, or equivalent) identified by its internal numeric ID.

get/administrative-divisions/{id}

Request

  • Base URL
    https://api-dev.despegar.com/v3
  • URL
    https://api-dev.despegar.com/v3/administrative-divisions/{id}
  • Auth
    API key in header x-apikey

Path parameters

idstring required

Internal numeric identifier of the administrative division. E.g.: 30079 (Tierra del Fuego).

Query parameters

productstring required

Product type used to filter configurations. E.g.: HOTELS, FLIGHTS, PACKAGES.

languagestring required

Comma-separated list of language codes for the descriptions field. E.g.: ES,PT,EN.

Response

OK

idstring

Internal numeric identifier of the administrative division.

gidstring

Global identifier combining type and id. E.g.: ADM_30079.

codestring

Internal code for the division.

descriptionsobject

Localized division names keyed by language code.

country_idstring

Internal numeric identifier of the country this division belongs to.

country_gidstring

Global identifier of the country. E.g.: COU_20010.

capital_idstring

Internal numeric identifier of the capital city.

capital_gidstring

Global identifier of the capital city. E.g.: CIT_7781.

configurationsstring[]

List of product and platform configurations in which this division is available.

picturesobject[]

List of pictures associated with the division. Always empty.

last_update_datestring date-time

Date and time of the last update to this record.

Changes

No recorded changes to this operation across all 1 revision of this API.