Skip to content

Developers · City Government of Naga

Developers and Open Data

Naga's published budget, free to download and reuse as spreadsheets or through a read-only API, and the code that runs this site, free for any local government to adopt.

What you can get

For each budget year the city opens, you can download every published program with its projects and activities, which funds pay for them, how much is tagged as climate spending, and the published procurement projects. Amounts are the ones on this site, to the centavo.

Drafts are never included, and neither is anything about people: no feedback, no names, no staff accounts. There is nothing to sign up for and no key to ask for.

Budget years

YearDocumentDownload
2027Annual Investment ProgramComing soon
2026Annual BudgetComing soon

A year becomes available when the city decides to open it. Until then it reads “Coming soon”.

What is in the download

One zip per year, or one per document for a year that has both a proposal and an enacted budget. The CSV files open in Excel, Google Sheets or LibreOffice; accented names such as Peñafrancia display correctly.

FileWhat it holds
programs.csvOne row per program: its code, office, sector, finish line, proposed budget and the split between Personal Services, MOOE, Financial Expenses and Capital Outlay.
project-activities.csvThe projects and activities under each program. program_id points to the program; parent_activity_id to the project an activity sits under.
funds.csvWhich funds pay for each program or activity (General Fund, Special Health Fund, and so on), with amounts where the city split the money by fund.
climate-tags.csvSpending tagged as climate change adaptation or mitigation, one row per climate code.
projects.csvPublished procurement projects (PPMP), with their office and total.
naga-budget-<year>.jsonThe same data nested: each program with its activities, funds and climate tag inside it.
METADATA.mdWhat the files are, when the data is from, and a dictionary of every column.

How the tables join: activities point to their program by program_id; funds and climate tags point to a program or an activity by row_type and row_id. Join on id, not on the AIP code, which can change when an office reorders its programs. A program's proposed_total is its figure: do not add its activities on top.

For developers: the API

Base address: https://budget.naga.gov.ph/api/v1/open-data. It is read-only, needs no key, answers JSON, and can be called from a web page on any domain.

EndpointReturns
GET /cyclesEvery budget year, and whether it is open
GET /cycles/{year}Counts and totals for one year
GET /cycles/{year}/programsPrograms, 100 a page (filters: office, sector, finishLine, code; page, limit up to 500)
GET /cycles/{year}/programs/{id}One program with its activities, funds and climate tag
GET /cycles/{year}/programs/{id}/versionsIts published versions, newest first
GET /cycles/{year}/programs/{id}/versions/{n}One earlier published version
GET /cycles/{year}/projectsPublished procurement projects
GET /cycles/{year}/bundle.zipThe whole year as one zip
GET /reference/{list}offices, finish-lines, pap-sectors, ccet-codes, fund-sources
?document=aip or ?document=annualOn any /cycles/{year} route: the proposal or the enacted budget, for a year that has both

From a terminal:

curl "https://budget.naga.gov.ph/api/v1/open-data/cycles"
curl "https://budget.naga.gov.ph/api/v1/open-data/cycles/2026/programs?office=CHO&limit=50"

From JavaScript:

const res = await fetch(
  "https://budget.naga.gov.ph/api/v1/open-data/cycles/2026/programs?limit=500"
);
const { data, total } = await res.json();
// Money is text with two decimals ("32235000.00"): use a decimal
// library, not floating point, if you add amounts up.

A year that is not open answers 404. Field names and types will not change in this version (v1); new fields may be added. A breaking change would ship as v2, with v1 kept for at least six months.

How often it changes

When an office publishes a change, the download and the API show it within five minutes. Each year shows the date of its newest published change as “data as of”, and the zip's METADATA.md repeats it.

Limits

The API limits how often one address can call it, so it stays fast for everyone. If you want everything, download the zip instead of paging through the API.

Reusing the data

The terms for reusing the data, and how to credit the city, will be set out in an open data policy. It is coming soon.

Questions about this document? Reach the city through the Naga City Government, or read how the budget works.