Search Federal Accounts
usaspending_search_federal_accountsList and keyword-search federal accounts by agency identifier or title keyword. Returns account numbers, names, managing agencies, and budgetary resources. Use account_number from results as input to usaspending_get_federal_account for full budget detail. Use usaspending_list_agencies to look up agency_identifier codes (3-digit strings, e.g. "097" for DoD).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| limit | No | Maximum results per page (1–100) | |
| keyword | No | Filter accounts by name or title keyword (e.g., "defense", "transportation") | |
| sort_field | No | Field to sort results by | budgetary_resources |
| sort_direction | No | Sort direction | desc |
| agency_identifier | No | 3-digit agency identifier code (e.g., "097" for Department of Defense). Use usaspending_list_agencies to look up codes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Current page number returned | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Recovery hint when results are empty — echoes applied filters and suggests how to broaden. Absent when results are present. | |
| results | No | Matching federal accounts | |
| has_next | No | Whether there are more pages of results | |
| totalCount | No | Total number of matching accounts across all pages (when available) | |
| page_metadata | No | Pagination metadata |