List Philippine administrative units
list_admin_unitsFetch Philippine administrative units by parent PSGC code, or list top-level regions when no parent is given. Filter by level and paginate to handle large sets.
Instructions
Browse children of a PSGC node, or top-level regions when parent_code is None.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter children by level (region|province|city|municipality|district|barangay). | |
| limit | No | Max units to return (default 50, capped at 500). | |
| offset | No | Skip this many matching units before returning results — page past 500 children (e.g. Manila has 897 barangays) by calling again with offset=500. | |
| parent_code | No | Parent PSGC code. None returns the regions list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |