USAspending API ReferenceIndependent
Try the API

Countries

GET/api/v2/references/countries/

This endpoint returns countries found in the ref_country_code table on USAspending.

Request

curl 'https://api.usaspending.gov/api/v2/references/countries/'

Try it

Runs against the live API. Responses are real data.

GET/api/v2/references/countries/

Response · 200

  • (body)object
Example response
{
  "results": [
    {
      "code": "USA",
      "name": "UNITED STATES"
    },
    {
      "code": "CAN",
      "name": "CANADA"
    },
    {
      "code": "MEX",
      "name": "MEXICO"
    },
    {
      "code": "GBR",
      "name": "UNITED KINGDOM"
    },
    {
      "code": "FRA",
      "name": "FRANCE"
    }
  ]
}

Recent changes

Contract notes

  • The contract doesn't state its URL. This path comes from the contract's location in the repo, which mirrors the URL by convention, and matches how usaspending.gov calls it.

Generated from contracts/v2/references/countries.md in the USAspending API repo.

Loading…