USAspending API ReferenceIndependent
Try the API

Available Object Classes

GET/api/v2/federal_accounts/{federal_account_id}/available_object_classes

This route returns object classes that the specified federal account has allotted money toward.

Request

curl 'https://api.usaspending.gov/api/v2/federal_accounts/5/available_object_classes'

Path parameters

  • federal_account_idstringRequired

    Example 5

Try it

Runs against the live API. Responses are real data.

GET/api/v2/federal_accounts/5/available_object_classes

Response · 200

  • resultsarray of MajorObjectClassRequired3 fields
    • idstringRequired
    • namestringRequired
    • minor_object_classarray of MinorObjectClassRequired2 fields
      • idstringRequired
      • namestringRequired
Example response
{
  "results": [
    {
      "id": "10",
      "name": "Personnel compensation and benefits",
      "minor_object_class": [
        {
          "id": "113",
          "name": "Other than full-time permanent"
        },
        {
          "id": "115",
          "name": "Other personnel compensation"
        },
        {
          "id": "111",
          "name": "Full-time permanent"
        },
        {
          "id": "130",
          "name": "Benefits for former personnel"
        },
        {
          "id": "121",
          "name": "Civilian personnel benefits"
        }
      ]
    },
    {
      "id": "40",
      "name": "Grants and fixed charges",
      "minor_object_class": [
        {
          "id": "420",
          "name": "Insurance claims and indemnities"
        },
        {
          "id": "410",
          "name": "Grants, subsidies, and contributions"
        }
      ]
    }
  ]
}

Recent changes

Contract notes

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

Generated from contracts/v2/federal_accounts/federal_account_id/available_object_classes.md in the USAspending API repo.

Loading…