Philippines PSGC Code Lookup
Pricing
Pay per usage
Philippines PSGC Code Lookup
Find official PSGC codes and region/province hierarchy for any Philippine region, province, city, municipality or barangay.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Ash
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Type in the name of any Philippine region, province, city, municipality, or barangay and get back its official PSGC code, plus the region and province it belongs to. No spreadsheets to dig through, no manual matching.
The PSGC (Philippine Standard Geographic Code) is the Philippine Statistics Authority's official coding system for every administrative area in the country. Government offices, researchers, and data teams use it to link datasets together.
What can you do with it?
- Clean messy place names. Turn "Naga City", "City of Naga", or "Naga" into one official code.
- Join datasets. Add PSGC codes to survey, census, or LGU data so it can be merged with other sources.
- Prepare GIS data. Get the codes you need to link tables to boundary maps.
- Find the parent area. See which province and region a municipality or barangay belongs to.
- Look up renamed places. Old names are included, so searching an old barangay name still finds its current record.
How to use it
- Click Try for free (or Start).
- In Place names, enter one or more names, one per line, for example
BaaoandNaga City. - Choose the Place type: Region, Province, City / Municipality, or Barangay.
- (Optional) Type a province in Province (optional) to narrow the results, for example
Camarines Sur. - Click Start, then open the Output tab when the run finishes.
You can download the results as Excel, CSV, JSON, or HTML, or call the actor through the Apify API.
Input
| Field | Required | Description |
|---|---|---|
| Place names | Yes | One or more names to look up (for example Baao, Naga City). |
| Place type | No | Region, Province, City / Municipality (default), or Barangay. |
| Province (optional) | No | Keep only results inside this province. Strongly recommended for barangays, because many barangay names repeat across the country. |
| Max results per name | No | How many matches to return for each name (default 10, maximum 100). |
Example input
{"searchTerms": ["Baao", "Naga City"],"level": "city_municipality","provinceFilter": "Camarines Sur","maxResultsPerSearch": 5}
Output
Each match is one row. Results are sorted by match quality, with exact matches first.
| Field | Description |
|---|---|
searchTerm | The name you searched for. |
found | true if a match was found, false if not. |
matchQuality | exact, starts with, or partial. |
name | Official name of the place. |
oldName | Previous name, if the place was renamed. |
level | The place type you searched. |
psgcCode | The official 10-digit PSGC code. |
region / regionCode | Region name and code. |
province / provinceCode | Province name and code. |
cityOrMunicipality | The city or municipality (filled for city/municipality and barangay searches). |
isCity / isMunicipality | Whether the place is classed as a city or a municipality. |
Example output
{"searchTerm": "Baao","found": true,"matchQuality": "exact","name": "Baao","oldName": null,"level": "city_municipality","psgcCode": "051701000","region": "Bicol Region","regionCode": "050000000","province": "Camarines Sur","provinceCode": "051700000","cityOrMunicipality": "Baao","isCity": false,"isMunicipality": true}
If a name has no match, you get a row with "found": false so you can see which names need checking.
Tips for better results
- Use the Province box for barangays. Searching just "San Jose" returns hundreds of matches. Adding a province narrows it to the ones you want.
- Cities may be listed as "City of ...". The actor ignores the words "City" and "City of" when matching, so "Naga City" and "City of Naga" both work.
- Names that exist in several provinces return several rows. Check the
provincecolumn or add a province filter. - Barangay lookups take a little longer because the barangay list is much larger than the others.
How much does it cost?
This actor is free to use. It only reads public data and does not use a browser or proxies, so a run uses very little of your Apify platform credit.
Data source
Place names and codes come from the Philippine Standard Geographic Code (PSGC) published by the Philippine Statistics Authority (PSA), served through a free public JSON API. The data reflects the most recent version available from that source, which may lag behind the newest PSA publication. For official or legal use, confirm codes against the PSA's own publication.
This actor is an independent tool and is not affiliated with or endorsed by the PSA.
FAQ
Does it include all barangays? It covers the barangays available in the source data, which is built from the PSA's PSGC publication.
Can I look up a place by its old name?
Yes. Old names are searched too, and the oldName field shows the previous name where one exists.
Why did my name return no results? Check the spelling and the Place type. For example, a barangay name won't be found if the type is set to City / Municipality. If a place was created or renamed very recently, it may not be in the source data yet.
Can I run it on a schedule or through the API? Yes. Like any Apify actor, you can schedule it, connect it to other tools, or call it through the Apify API.
Feedback and issues
Found a wrong match, a missing place, or have a feature idea? Open an issue from the Issues tab on this actor's page and I'll take a look.