USAspending API ReferenceIndependent
Try the API

Transaction Count

GET/api/v2/awards/count/transaction/{award_id}/

This endpoint is used for the transaction history tab on the awards page.

This endpoint returns the number of transactions associated with the given award.

Request

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

Path parameters

  • award_idstringRequired

    Example ASST_NON_NNX17AJ96A_8000

Try it

Runs against the live API. Responses are real data.

GET/api/v2/awards/count/transaction/ASST_NON_NNX17AJ96A_8000/

Response · 200

  • transactionsnumberRequired
  • Bodystring

    { "transactions": 32 }

Example response
{
  "transactions": 0,
  "Body": ""
}

Recent changes

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

Contract notes

  • The contract doesn't declare award_id in its URL template, so it was added here from the path.

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

Loading…