Browse the COMELEC 2025 election results tree
browse_election_resultsBrowse Philippine election results by administrative code, from regions down to provinces, barangays, and precincts.
Instructions
Walk the COMELEC 2025 election results tree: region down to precinct.
Starts at the 20 regions when code is "0", the default. Pass a
child's code from the response to go one level deeper. A barangay's
children are its precincts, since the geography tree stops at the
barangay level and precincts sit in a separate family. Examples:
browse_election_results() the 20 regions browse_election_results(code="R001000") provinces of Region I browse_election_results(code="2801000") barangays of Adams, Ilocos Norte browse_election_results(code="2801001") precincts of one barangay
On failure: a code that is not "0", a region code, or 7 digits gives validation_error true and data_status "invalid_request", with no request sent. A well-formed code the archive does not recognize gives the same shape after the lookup. A tree response whose rows all fail to parse gives data_status "indeterminate", never cached. A response with some bad rows returns the good rows, with a caveat naming the skipped count. A real outage gives upstream_error true and data_status "unavailable", with the real error in caveats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | "0" for the region list, a region code such as "R001000", or a 7-digit province, city, or barangay code from a previous call. | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||