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:
|
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 |