Skip to content
Guides
API reference
stable

List departments

Lists the departments of a country. Second step of a Peruvian address form.

GET/v1/geo/departments

Lists the departments of a country. Second step of a Peruvian address form.

Query Parameters

countryCode?string

ISO 3166-1 alpha-2 country code, for example PE.

source?string
search?string

Free-text filter. Which fields it covers depends on the resource.

limit?integer

Maximum number of results to return.

Formatint32

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/geo/departments"
[  {    "id": "string",    "countryCode": "string",    "type": "level1",    "code": "string",    "name": "string",    "parentId": null,    "source": "string"  }]