Skip to content

Regions

List regions.

Terminal window
curl -H "Authorization: Bearer $GISPH_API_KEY" "https://api.gis.ph/v1/regions?limit=50"

Response (200):

{
"data": [
{ "id": "reg_001", "name": "Luzon", "code": "LUZ" },
{ "id": "reg_002", "name": "Visayas", "code": "VIS" }
]
}

Retrieve a region by ID.

Terminal window
curl -H "Authorization: Bearer $GISPH_API_KEY" "https://api.gis.ph/v1/regions/reg_001"

Response (200):

{ "id": "reg_001", "name": "Luzon", "code": "LUZ" }

Create a region.

Request payload:

{
"name": "Mindanao",
"code": "MIN"
}

Example (curl):

Terminal window
curl -X POST -H "Authorization: Bearer $GISPH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Mindanao","code":"MIN"}' \
"https://api.gis.ph/v1/regions"

Response (201):

{ "id": "reg_003", "name": "Mindanao", "code": "MIN" }