query object. Required year, period, scope, and program fields vary by dataset.12345678import { createClient } from "egov.js"; const client = createClient({ baseUrl: "https://dbm-ws.oueg.info", headers: { "x-api-key": process.env.EGOVCOMPASS_API_KEY!, }, });
compass.getSaaodbRecordsGET /api/v1/records/saaodb returns paginated SAAODB budget-execution records filtered by year, period, scope, entity, or expense class.123456789101112import { compass } from "egov.js"; const saaodb = await compass.getSaaodbRecords({ client, query: { period: "FY", reportYear: 2026, page: 1, limit: 25, }, throwOnError: true, });
compass.getSaaodbDashboardGET /api/v1/records/saaodb/dashboard returns aggregated SAAODB figures for the requested report year and sheet scope.12345678910import { compass } from "egov.js"; const saaodbDashboard = await compass.getSaaodbDashboard({ client, query: { reportYear: 2026, sheetScope: "summary", }, throwOnError: true, });
compass.getSaaodbEntitiesGET /api/v1/records/saaodb/entities returns department, agency, and fund-source relationships for navigating SAAODB data.12345678910import { compass } from "egov.js"; const entities = await compass.getSaaodbEntities({ client, query: { reportYear: 2026, sheetScope: "agency", }, throwOnError: true, });
compass.getNcaRecordsGET /api/v1/records/nca returns paginated Notice of Cash Allocation records for a budget year and optional organization filters.1234567891011import { compass } from "egov.js"; const nca = await compass.getNcaRecords({ client, query: { budgetYear: 2026, page: 1, limit: 25, }, throwOnError: true, });
compass.getSaroRecordsGET /api/v1/records/saro returns paginated Special Allotment Release Order records with optional release and agency filters.1234567import { compass } from "egov.js"; const saro = await compass.getSaroRecords({ client, query: { page: 1, limit: 25 }, throwOnError: true, });
compass.getLgsfRecordsGET /api/v1/records/lgsf returns paginated Local Government Support Fund records with optional program and location filters.123456789101112import { compass } from "egov.js"; const lgsf = await compass.getLgsfRecords({ client, query: { fiscalYear: 2026, programCode: "FALGU", page: 1, limit: 25, }, throwOnError: true, });
compass.getLgsfDashboardGET /api/v1/records/lgsf/dashboard returns LGSF KPIs, trends, and projects for the requested program and optional location filters.12345678910import { compass } from "egov.js"; const lgsfDashboard = await compass.getLgsfDashboard({ client, query: { programCode: "FALGU", reportYear: 2026, }, throwOnError: true, });