New Awards Over Time
/api/v2/search/new_awards_over_time/This endpoint is used to power USAspending.gov's recipient profile pages. This data can be used to visualize the government spending that pertains to a specific recipient.
This endpoint returns the count of new awards grouped by time period in ascending order (earliest to most recent).
Request
curl -X POST 'https://api.usaspending.gov/api/v2/search/new_awards_over_time/' \
-H 'Content-Type: application/json' \
-d '{
"group": "fiscal_year",
"filters": {
"recipient_id": "1c3edaaa-611b-840c-bf2b-fd34df49f21f-P",
"time_period": [
{
"start_date": "2007-10-01",
"end_date": "2020-09-30"
}
]
}
}'Request body
The filters object is shared by every search endpoint. The filter object explains each filter with examples.
groupenum (string)Requiredfiscal_yearquartermonth
filtersobject · TimeFilterObjectRequired2 fieldstime_periodarray of TimePeriodObject2 fieldsstart_datestringRequiredCurrently limited to an earliest date of
2007-10-01(FY2008). For data going back to2000-10-01(FY2001), use either the Custom Award Download feature on the website or one of ourdownloadorbulk_downloadAPI endpoints.end_datestringRequiredCurrently limited to an earliest date of
2007-10-01(FY2008). For data going back to2000-10-01(FY2001), use either the Custom Award Download feature on the website or one of ourdownloadorbulk_downloadAPI endpoints.
recipient_idstringA hash of recipient UEI, DUNS, name, and level. A unique identifier for recipients.
Try it
Runs against the live API. Responses are real data.
/api/v2/search/new_awards_over_time/Response · 200
groupenum (string)Requiredfiscal_yearquartermonth
resultsarray of TimeResult2 fieldstime_periodobject · TimePeriodGroupRequired3 fieldsfiscal_yearstringRequiredquarterstringExcluded when grouping by
fiscal_yearormonth.monthstringExcluded when grouping by
fiscal_yearorquarter.
new_award_count_in_periodnumberRequiredThe count of new awards for this time period and the given filters.
messagesarray of stringAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"group": "fiscal_year",
"results": [
{
"time_period": {
"fiscal_year": "2018",
"quarter": "1",
"month": "1"
},
"new_award_count_in_period": 25
}
],
"messages": []
}Recent changes
Generated from contracts/v2/search/new_awards_over_time.md in the USAspending API repo.