Agencies, departments and offices
Read government organizations through the organizations collection with the
exact filter type = "agency". There is no separate /api/v1/agencies route.
The same operation is available through both SDKs, CLI and MCP.
List agencies
For MCP, call search_records with
{"dataset":"organizations","filters":{"type":"agency"},"limit":25}.
Choose the right level
Narrow a request with multiple exact filters, for example
{"type":"agency","sub_type":"department"}. Null hierarchy fields mean no
published value, not evidence that the organization has no parent.
Read programs and awards
- Select the agency after checking its identity and hierarchy.
- Read
programswithfilters={"agency_id":"RETURNED_ORGANIZATION_UUID"}. - Read the full
awardsdataset withawarding_agency_id,funding_agency_idorawarding_office_id, depending on the question. - For published aggregate rows, use
agency-summary-totalsandagency-award-summarieswithorganization_id.
Awarding and funding agencies are distinct. Agency codes in baseline summary collections are not organization UUIDs. Use the schema’s code field when querying summaries, and do not turn codes into UUIDs or match departments by fuzzy names.
