WhoCPA API documentation

GET https://whocpa.asia/api/geo

Returns all displayed regions, which may include offers.

Request parameters

No

Request example

GET https://whocpa.asia/api/geo/

Response description

The response contains a list of geo objects objects nested within each other. Pagination is not used, the answer contains all the visible regions used in the WhoCPA system.

Field Description
id Region ID
type Type of region. Decoding Codes:
  • 25 Группы стран
  • 30 Страна
  • 35 Группы регионов
  • 40 Регион
  • 50 Город
name_en Name of the region in English
descendants List of regions affiliated with the current one. If the field is absent, then the region does not have visible heirs