COMELEC 2025 precinct election return
get_election_returnRetrieve the official vote tally for a specified precinct, including all national and local contests with candidate vote counts and shares.
Instructions
One precinct's official vote tally from the COMELEC 2025 archive.
Give the 8-digit precinct code from browse_election_results. Returns every national and local contest counted at that precinct, with each candidate's vote count and share. Examples:
get_election_return("28010001") Adams, Ilocos Norte, precinct 0001
On failure: a code that is not 8 digits gives validation_error true and data_status "invalid_request", with no request sent. A code the archive does not recognize (a 403 body carrying its AccessDenied marker) gives the same shape. A body missing 'information', where 'national' or 'local' is not a list, or where a contest carries a non-list nested 'candidates' value, gives data_status "indeterminate" with upstream_error true. Any other outage, including a 403 with no AccessDenied marker, gives data_status "unavailable" with upstream_error true and the real error in caveats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| precinct_code | Yes | 8-digit precinct code, such as "28010001". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||