Skip to content

Regions API

Returns a paginated list of Philippine regions.

GET /v1/regions

Returns a paginated list of all geographical regions in the Philippines. Supports text search, filtering by region code, and optional geometry.

ParameterTypeRequiredDescription
pageintegerNoPage number (default: 1).
limitintegerNoItems per page (default: 10, max: 100).
searchstringNoFilter regions by name (case-insensitive partial match).
codesstring[]NoFilter by one or more PSGC region codes (e.g. codes[]=0100000000&codes[]=1300000000).
geometrystringNoInclude polygon geometry. One of simple, medium, or detailed.
outputstringNoSet to geojson to return a GeoJSON FeatureCollection. Requires geometry to be set.
Terminal window
curl -H "Authorization: Bearer <token>" \
"https://api.gis.ph/v1/regions?page=1&limit=5"
{
"data": [
{
"id": 1,
"name": "Ilocos Region",
"code": "0100000000"
}
],
"meta": {
"total": 18,
"page": 1,
"limit": 5,
"totalPages": 4,
"links": {
"self": "...",
"next": "...",
"prev": null
}
},
"error": null
}

GET /v1/regions/{id}

Returns detailed information about a single region.

ParameterTypeRequiredDescription
idintegerYesThe unique identifier of the region.
ParameterTypeRequiredDescription
geometrystringNoInclude polygon geometry. One of simple, medium, or detailed.
Terminal window
curl -H "Authorization: Bearer <token>" \
"https://api.gis.ph/v1/regions/1"
{
"data": {
"id": 1,
"name": "Ilocos Region",
"code": "0100000000"
},
"error": null
}

POST /v1/regions/search

Accepts a list of PSGC region codes and returns matching regions. Supports both JSON and GeoJSON output formats.

FieldTypeRequiredDescription
idsstring[]YesList of PSGC region codes (1–100 items).
geometrystringNoGeometry level to include: simple (default), medium, or detailed.
outputstringNoOutput format: json (default) or geojson.
Terminal window
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"ids":["0100000000","1300000000"],"geometry":"simple","output":"geojson"}' \
"https://api.gis.ph/v1/regions/search"
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": { "type": "MultiPolygon", "coordinates": [ ... ] },
"properties": {
"id": 1,
"name": "Ilocos Region",
"code": "0100000000"
}
}
]
}
[
{
"id": 1,
"name": "Ilocos Region",
"code": "0100000000"
}
]