USAspending API ReferenceIndependent
Try the API

Count of awards for Agencies

GET/api/v2/agency/awards/count

Returns the count of Awards grouped by Award Type under Agencies

Request

curl 'https://api.usaspending.gov/api/v2/agency/awards/count'

Try it

Runs against the live API. Responses are real data.

GET/api/v2/agency/awards/count

Response · 200

  • page_metadataobject · PageMetadataRequired7 fields

    Information used for pagination of results.

    • limitnumberRequired
    • pagenumberRequired
    • nextnumberRequiredNullable
    • previousnumberRequiredNullable
    • hasNextbooleanRequired
    • hasPreviousbooleanRequired
    • totalnumberRequired
  • resultsarray of AgencyResultRequired3 fields
    • award_typesobject · AwardTypesRequired6 fields
      • grantsnumberRequired
      • loansnumberRequired
      • contractsnumberRequired
      • direct_paymentsnumberRequired
      • othernumberRequired
      • idvsnumberRequired
    • awarding_toptier_agency_namestringRequired
    • awarding_toptier_agency_codestringRequired
  • messagesarray of stringRequired

    An array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.

Example response
{
  "page_metadata": {
    "limit": 1,
    "page": 1,
    "next": 2,
    "previous": null,
    "hasNext": false,
    "hasPrevious": false,
    "count": 10
  },
  "results": [
    {
      "awarding_toptier_agency_name": "Department of Defense",
      "awarding_toptier_agency_code": "079",
      "contracts": 2724,
      "idvs": 45,
      "grants": 0,
      "direct_payments": 0,
      "loans": 0,
      "other": 0
    }
  ],
  "messages": []
}

Recent changes

No contract changes to this endpoint since October 2024. The changelog covers every endpoint.

Generated from contracts/v2/agency/awards/count.md in the USAspending API repo.

Loading…