Test the cascading data retrieval system. Select a region to drill down all the way to the barangay level.
The system follows the 2024 Revision 1 of the Philippine Standard Geographic Code (PSGC). All codes are consistently padded to 10 digits to ensure compatibility across all levels.
RR000000002-digit Region + 8 Zeros
RRPRO000002-digit Reg + 3-digit Prov + 5 Zeros
RRPROCM000Reg/Prov + 2-digit City + 3 Zeros
RRPROCMBRGFull 10-digit unique identifier
To update the dataset, you must obtain the official files from the Philippine Statistics Authority (PSA).
PSGC sheet with the 10-digit coding columns.The backend features a resilient ingestion engine that automatically identifies columns, cleans messy data, and performs safe atomic upserts to prevent database corruption.
Whenever a new file is uploaded via the /admin dashboard:
Ready to use the Geographic API in your application? Use the snippets below to get started quickly with your favorite language or tool.
curl -X GET "https://barangays.sanchez.ph/api/regions/0300000000/provinces" \
-H "Accept: application/json"