Generate and retrieve a bulk CSV or TSV export of federal award data using the USAspending.gov v2 Bulk Download API instead of paginated search queries

domain: api.usaspending.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Build a POST request to https://api.usaspending.gov/api/v2/bulk_download/awards/ with a JSON body containing a required filters object (agencies, prime_award_types, date_range and date_type, etc.) and optional columns and file_format (csv, tsv, or pstxt; default csv).
  2. Submit the request and capture the response's file_name, file_url, and status_url — the file is generated asynchronously and is not immediately available at file_url.
  3. Poll the returned status_url (https://api.usaspending.gov/api/v2/download/status?file_name=<name>) to track generation progress rather than repeatedly re-POSTing the bulk_download request.
  4. Once status indicates the file is finished, download the zip from file_url, which contains one or more CSV/TSV files covering the awards matching your filters.
  5. Distinguish prime-award-only downloads from transaction-level downloads by checking the file_name suffix (_awards vs _transactions) and by setting the sub_award_types/prime_and_sub_award_types filters appropriately if sub-award data is also needed.
  6. For recurring extracts, prefer this bulk endpoint over paginating the standard search endpoints, since it is purpose-built for full CSV exports rather than incremental UI-style paging.

Known gotchas

Related routes

Query federal spending award data using the USAspending.gov Advanced Award Search API
government-tax · 5 steps · unrated
Search federal contract and grant award data using the USAspending.gov API
api.usaspending.gov · 5 steps · unrated
Retrieve and analyze federal contract award data by NAICS code using the USAspending.gov API advanced search
usaspending.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans