Skip to main content
POST
/
api
/
usaspending
/
recipients
/
search
/usaspending/recipients/search
curl --request POST \
  --url https://api.anysite.io/api/usaspending/recipients/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "<string>",
  "award_type": "all",
  "sort": "amount",
  "order": "desc"
}
'
[
  {
    "id": "<string>",
    "@type": "@usaspending_recipient_search_result",
    "name": "<string>",
    "duns": "<string>",
    "uei": "<string>",
    "recipient_level": "<string>",
    "amount": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of results

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
keyword
string | null

Filter recipients by name, DUNS, or UEI

award_type
enum<string>
default:all

Award category to aggregate spending by

Available options:
all,
contracts,
grants,
direct_payments,
loans,
other
sort
enum<string>
default:amount

Field to sort results by

Available options:
amount,
name,
duns
order
enum<string>
default:desc

Sort direction

Available options:
asc,
desc

Response

Successful Response

id
string
required
@type
string
default:@usaspending_recipient_search_result
name
string | null
duns
string | null
uei
string | null
recipient_level
string | null
amount
number | null