> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/economy/government-spend>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/economy/government-spend.mdx>

---

# Government Spending API

US federal spending summed by region for any window since 2007.

`GET /v1/economy/government-spend` takes `level` (`state`, `county`, `country`), `scope` (`place_of_performance` or `recipient_location`), `state` (to list one state's counties), `awardType` (`contracts`, `grants`, `loans`, `direct_payments`, `other`, `all`), `naics`, `psc`, `keyword`, `from` and `to`.

`data.regions` lists every region with spending in the window, largest first, each with `code` (USPS, county FIPS or ISO alpha-3), `name`, `amount`, `population` and `perCapita`. `data.totalAmount` is their sum, and the window used is echoed in `from` and `to`.

## Request

- **Endpoint:** `GET /v1/economy/government-spend`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by state, county or country
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/economy/government-spend/get)
- **Platform page:** [/platforms/economy](https://www.socialfetch.dev/platforms/economy)

## FAQ

### What is the default window?

The latest federal fiscal year (1 October to 30 September) that ended at least 90 days ago, because agencies report with a lag of up to 90 days.

### Can an amount be negative?

Yes, where de-obligations in the window exceed new awards.

### How many credits does a request cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.
