# USAspending API

Category: [Government and law](https://free-web-services.com/web-services/open-data/government/)  
Page: https://free-web-services.com/web-services/open-data/government/usaspending-api.html  
Documentation: https://api.usaspending.gov/

The USAspending API gives the spending data of the US federal government: budgets per agency, contracts, grants and loans with their recipients and locations, for example to see which companies in a state receive federal contracts. Most searches are POST requests with a JSON filter; answers are JSON. Free, no key needed.

- API key: Not needed
- Pricing: Free, no key needed.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: api.usaspending.gov
- Last checked: Working on November 7th, 2026

Example request:

```sh
curl 'https://api.usaspending.gov/api/v2/references/toptier_agencies/'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

