Get Agency Overview
usaspending_get_agencyFetch an agency's fiscal-year overview including mission, budgetary resources, obligation and outlay totals (for the most recent fiscal year), sub-agency count, and DEF codes for disaster/emergency funding. Also returns a paginated sub-agency breakdown with obligation and transaction counts. Accepts either a 3-digit toptier_code (e.g., 097 for DoD, 012 for Agriculture) or an agency_slug (e.g., department-of-defense) — both appear in usaspending_list_agencies results and award search results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Sub-agency breakdown page (1-based, 10 per page). Use with sub_agency_page_metadata.has_next to page through the full list. | |
| agency_slug | No | URL-friendly agency slug (e.g., department-of-defense) — from usaspending_list_agencies or award search results. Use either toptier_code or agency_slug, not both. | |
| toptier_code | No | 3-digit toptier agency code (e.g., 097, 012) — from usaspending_list_agencies. Use either toptier_code or agency_slug, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Agency full name | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Guidance when the sub-agency breakdown is truncated — how to page for the rest. Absent when the last page is shown. | |
| mission | No | Agency mission statement | |
| website | No | Agency website URL | |
| agency_id | No | Internal agency ID | |
| def_codes | No | Disaster/Emergency Funding (DEF) codes applicable to this agency | |
| fiscal_year | No | Fiscal year the budgetary totals below reflect (most recent available) | |
| abbreviation | No | Agency abbreviation | |
| sub_agencies | No | Sub-agency breakdown within this toptier agency (one page) | |
| toptier_code | No | 3-digit toptier agency code | |
| outlay_amount | No | Total outlays in USD for the fiscal year | |
| sub_agency_page | No | Current sub-agency page returned | |
| obligated_amount | No | Total amount obligated in USD for the fiscal year | |
| sub_agency_total | No | Total sub-agencies across all pages (when available) | |
| subtier_agency_count | No | Number of sub-agencies within this toptier agency | |
| has_more_sub_agencies | No | Whether more sub-agency pages are available | |
| sub_agency_page_metadata | No | Pagination metadata for the sub-agency breakdown | |
| budgetary_resources_amount | No | Total budgetary resources in USD for the fiscal year |