Complete geographic hierarchy
Navigate regions through barangays with parent and child relationships.
Philippine location infrastructure
Retrieve regions, provinces, cities, municipalities, and barangays with PSGC code lookup, hierarchy navigation, and fuzzy name search.
const response = await fetch(
"/api/psgc/regions?limit=100",
);
const result = await response.json();
{
"code": "1300000000",
"name": "National Capital Region",
"level": "region"
}Live API explorer
Select a region, province, city or municipality, and barangay using live API data.
Your selected address will appear here.
{
"regionCode": null,
"provinceCode": null,
"localityCode": null,
"barangayCode": null
}Fuzzy discovery
Built for real address logic
Navigate regions through barangays with parent and child relationships.
Find exact, partial, and fuzzy matches across every geographic level.
Resolve string codes while preserving every leading zero.
Keep same-name locations separate with their full hierarchy.
Model localities that do not belong to a province correctly.
Activate geographic releases only after validation.
REST API
Use parent-aware collections, ancestor lookups, and search without shipping a geographic dataset in your app.
TypeScript
Examples are available for JavaScript, TypeScript, Node.js, cURL, and PowerShell. Keep credentials in your server environment.
const response = await fetch(
"https://philippines-api.p.rapidapi.com/v1/search?q=San%20Isidro",
{ headers: {
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "philippines-api.p.rapidapi.com"
}}
);Where it fits
Pricing preview
Free
1,000 requests / month
For testing and prototypes
Choose on RapidAPI$9 / month
25,000 requests / month
For small production applications
Choose on RapidAPI$29 / month
150,000 requests / month
For growing production systems
Choose on RapidAPI$79 / month
500,000 requests / month
For high-volume integrations
Choose on RapidAPIPlans, quotas, billing, and API keys are managed securely through RapidAPI. Confirm current pricing on the listing.
Dataset transparency
Dataset version temporarily unavailable
API versionv1
FAQ
The Philippine Standard Geographic Code is a structured classification of the country’s geographic areas.
No. Results preserve distinct locations and include hierarchy and codes for disambiguation.
Direct-region cities and municipalities work without requiring a province.
The search endpoint supports fuzzy matching when available.
Strings, so leading zeroes are always preserved.
Versioned datasets can be updated after validation; consult the listing for the active release.
Yes. The hierarchy endpoints are designed for cascading address forms.
Subscribe to a plan on RapidAPI and use the key issued in your RapidAPI dashboard.
The Basic preview includes 1,000 requests per month; confirm current terms on RapidAPI.
The current version focuses on PSGC geographic hierarchy and does not provide geocoding coordinates unless that feature is added later.
Start with the free plan and integrate complete Philippine geographic data into your application.