Skip to content
OSINTtools.io

USAspending.gov API

US Treasury site and API for searching federal contracts, grants and other awards by recipient, agency and place.

Base URL
https://api.usaspending.gov/api/v2
Sign-in
No key
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from api.usaspending.gov · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The USAspending API gives access to U.S. federal spending data: awards (contracts, grants, loans and other assistance), recipients, agencies and accounts. An investigator uses it to see which government bodies paid a company, what for, and how much.

The docs index is at https://api.usaspending.gov/docs/; the endpoints live under /api/v2/. V1 endpoints are deprecated. The docs pages read for this reference do not mention an API key.

This reference covers recipient autocomplete, the recipient list, award search and award detail. The endpoint list has many more, such as agency and account autocomplete, state breakdowns and transaction search.

Quick start

  1. No key needed

    The USAspending.gov API answers without an account or key.

  2. Make your first request

    Details of one award (contract, IDV or financial assistance).. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.usaspending.gov/api/v2/awards/CONT_AWD_EXAMPLE_0000_0000_0000/'
  3. Read the response

    A 200 response looks like this.

    {
      "id": 1,
      "generated_unique_award_id": "CONT_AWD_EXAMPLE_0000_0000_0000",
      "category": "contract",
      "description": "Example services",
      "total_obligation": 100000,
      "date_signed": "2024-01-01",
      "awarding_agency": {},
      "funding_agency": {},
      "recipient": {},
      "period_of_performance": {},
      "place_of_performance": {}
    }

Authentication

No key or account: every endpoint answers without one.

Rate limits and pricing

Not stated in the docs

Recipients

Matches the search text against recipient names, UEI and DUNS. recipient_level is deprecated.

Request body (JSON) · 3Show

search_textstringalways present

Text to match against recipient names, UEI and DUNS

limitinteger

Number of results; default 10, minimum 1, maximum 500

recipient_levels[]string

Filter by level; allowed values C, P, R

Response fields · 5Show

recipient_namestring

Set when the text matches the name, otherwise for UEI or DUNS matches

recipient_levelstring

Deprecated

ueistring

Set only when the text matches a UEI

dunsstring

Set only when the text matches a DUNS

messages[]string

Warnings or instructions for developers

curl -X POST 'https://api.usaspending.gov/api/v2/autocomplete/recipient/' \
  -H 'Content-Type: application/json' \
  -d '{"search_text":"Example Corp","limit":10}'
No key needed
Response
{
  "results": [
    {
      "recipient_name": "EXAMPLE CORP",
      "recipient_level": "R",
      "uei": "EXAMPLEUEI12",
      "duns": null
    }
  ],
  "messages": []
}

All body fields are optional. keyword filters on name, UEI or DUNS.

Request body (JSON) · 6Show

keywordstring

Filter on name, UEI or DUNS

sortstring

name, duns or amount; default amount

orderstring

asc or desc; default desc

limitinteger

Results per page; default 50, maximum 1000

pageinteger

Page number; default 1

award_typestring

all, contracts, grants, loans, direct_payments or other_financial_assistance; default all

Response fields · 9Show

pageinteger

Current page

limitinteger

Page size

totalinteger

Total results

idstring

Identifier at this recipient level

namestring

Recipient name; null if none

dunsstring

DUNS; null if none

ueistring

UEI; null if none

amountnumber

Trailing 12-month aggregate

recipient_levelstring

R, P (parent) or C (child)

curl -X POST 'https://api.usaspending.gov/api/v2/recipient/' \
  -H 'Content-Type: application/json' \
  -d '{"keyword":"Example","sort":"amount","order":"desc","limit":10,"page":1}'
No key needed
Response
{
  "page_metadata": {
    "page": 1,
    "limit": 10,
    "total": 1
  },
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000000-R",
      "name": "EXAMPLE CORP",
      "duns": null,
      "uei": "EXAMPLEUEI12",
      "amount": 1000000,
      "recipient_level": "R"
    }
  ]
}

Awards

filters.award_type_codes is required; other filters include keywords, time_period, agencies, recipient_search_text, award_ids, naics_codes and psc_codes (see the contract for each filter's shape). fields names the columns to return; sort must be one of them.

Request body (JSON) · 7Show

filtersobjectalways present

Advanced filter object; award_type_codes is required

fields[]stringalways present

Names of the fields to return

limitinteger

Results per page; default 10

pageinteger

Page number

sortstring

Field to sort by; defaults to the first of fields

orderstring

asc or desc; default desc

subawardsboolean

true groups results by subawards; default false

Response fields · 11Show

spending_levelstring

awards or subawards

limitinteger

Page size

internal_idinteger

Internal award id

generated_internal_idstring

Generated award id, usable with the award detail endpoint

Award IDstring

Award identifier

Recipient Namestring

Recipient name

Award Amountnumber

Award amount

Awarding Agencystring

Awarding agency

pageinteger

Current page

hasNextboolean

Whether another page exists

messages[]string

Warnings or instructions

curl -X POST 'https://api.usaspending.gov/api/v2/search/spending_by_award/' \
  -H 'Content-Type: application/json' \
  -d '{"filters":{"award_type_codes":["A","B","C","D"]},"fields":["Award ID","Recipient Name","Award Amount"],"limit":10,"page":1,"sort":"Award Amount","order":"desc"}'
No key needed
Response
{
  "spending_level": "awards",
  "limit": 10,
  "results": [
    {
      "internal_id": 1,
      "generated_internal_id": "CONT_AWD_EXAMPLE_0000_0000_0000",
      "Award ID": "EX0000",
      "Recipient Name": "EXAMPLE CORP",
      "Award Amount": 100000
    }
  ],
  "page_metadata": {
    "page": 1,
    "hasNext": false
  },
  "messages": []
}
  • Passive: the target is not contacted

The response shape depends on category: contract and IDV awards carry fields such as piid and naics_hierarchy; financial assistance awards carry fain, uri and cfda_info. The docs note the example response on the contract page has a syntax error, so check field names against the live API.

Path parameters

award_idstringrequired

The generated award id or the internal database id

Example: CONT_AWD_EXAMPLE_0000_0000_0000
Response fields · 11Show

idinteger

Internal id

generated_unique_award_idstring

Generated award id

categorystring

contract, idv, loans, other, direct payment or grant

descriptionstring

Award description

total_obligationnumber

Total obligation

date_signedstring

Date signed

awarding_agencyobject

Awarding agency

funding_agencyobject

Funding agency

recipientobject

Recipient

period_of_performanceobject

Period of performance

place_of_performanceobject

Place of performance

curl 'https://api.usaspending.gov/api/v2/awards/CONT_AWD_EXAMPLE_0000_0000_0000/'
No key needed
Response
{
  "id": 1,
  "generated_unique_award_id": "CONT_AWD_EXAMPLE_0000_0000_0000",
  "category": "contract",
  "description": "Example services",
  "total_obligation": 100000,
  "date_signed": "2024-01-01",
  "awarding_agency": {},
  "funding_agency": {},
  "recipient": {},
  "period_of_performance": {},
  "place_of_performance": {}
}