USAspending API ReferenceIndependent
Try the API

Search by Agency

GET/api/v2/references/filter_tree/tas/{agency}/

Returns a list of federal accounts associated with the specified agency

Request

curl 'https://api.usaspending.gov/api/v2/references/filter_tree/tas/020/'

Path parameters

  • agencystringRequired

    Example 020

Try it

Runs against the live API. Responses are real data.

GET/api/v2/references/filter_tree/tas/020/

Response · 200

  • resultsarray of FilterTreeNodeRequired5 fields
    • idstringRequired
    • descriptionstringRequired
    • ancestorsarray of stringRequired
    • countnumberRequired
    • childrenarray of FilterTreeNodeRequiredNullable
Example response
{
  "results": [
    {
      "id": "012-5367",
      "ancestors": [
        "012"
      ],
      "description": "State and Private Forestry, Forest Service,  Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5367-000",
          "ancestors": [
            "012",
            "012-5367"
          ],
          "description": "State and Private Forestry, Forest Service,  Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5361",
      "ancestors": [
        "012"
      ],
      "description": "Administration of Rights-of-Way and Other Land Uses Fund, Forest Service,  Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5361-000",
          "ancestors": [
            "012",
            "012-5361"
          ],
          "description": "Administration of Rights-of-Way and Other Land Uses Fund, Forest Service,  Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5360",
      "ancestors": [
        "012"
      ],
      "description": "Land Between the Lakes Management Fund, Forest Service,  Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5360-000",
          "ancestors": [
            "012",
            "012-5360"
          ],
          "description": "Land Between the Lakes Management Fund, Forest Service,  Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5279",
      "ancestors": [
        "012"
      ],
      "description": "Concessions Fees and Volunteer Services, Agricultural Research Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5279-000",
          "ancestors": [
            "012",
            "012-5279"
          ],
          "description": "Concessions Fees and Volunteer Services, Agricultural Research Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5277",
      "ancestors": [
        "012"
      ],
      "description": "MNP Rental Fee Account, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5277-000",
          "ancestors": [
            "012",
            "012-5277"
          ],
          "description": "MNP Rental Fee Account, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5268",
      "ancestors": [
        "012"
      ],
      "description": "Recreation Fee Demonstration Program, Forest Service,  Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5268-000",
          "ancestors": [
            "012",
            "012-5268"
          ],
          "description": "Recreation Fee Demonstration Program, Forest Service,  Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5264",
      "ancestors": [
        "012"
      ],
      "description": "Timber Sales Pipeline Restoration Fund, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5264-000",
          "ancestors": [
            "012",
            "012-5264"
          ],
          "description": "Timber Sales Pipeline Restoration Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5219",
      "ancestors": [
        "012"
      ],
      "description": "Operation and Maintenance of Quarters, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5219-000",
          "ancestors": [
            "012",
            "012-5219"
          ],
          "description": "Operation and Maintenance of Quarters, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5216",
      "ancestors": [
        "012"
      ],
      "description": "Acquisition of Lands to Complete Land Exchanges, Forest Service, Agriculture",
      "count": 3,
      "children": [
        {
          "id": "012-2018/2021-5216-000",
          "ancestors": [
            "012",
            "012-5216"
          ],
          "description": "Acquisition of Lands to Complete Land Exchanges, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-X-5216-000",
          "ancestors": [
            "012",
            "012-5216"
          ],
          "description": "Acquisition of Lands to Complete Land Exchanges, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-2017/2020-5216-000",
          "ancestors": [
            "012",
            "012-5216"
          ],
          "description": "Acquisition of Lands to Complete Land Exchanges, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5215",
      "ancestors": [
        "012"
      ],
      "description": "Restoration of Forest Lands and Improvements, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5215-000",
          "ancestors": [
            "012",
            "012-5215"
          ],
          "description": "Restoration of Forest Lands and Improvements, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5214",
      "ancestors": [
        "012"
      ],
      "description": "Licensee Programs, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5214-000",
          "ancestors": [
            "012",
            "012-5214"
          ],
          "description": "Licensee Programs, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5213",
      "ancestors": [
        "012"
      ],
      "description": "Payment to Minnesota (Cook, Lake, and Saint Louis Counties) from the National Forests Fund, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5213-000",
          "ancestors": [
            "012",
            "012-5213"
          ],
          "description": "Payment to Minnesota (Cook, Lake, and Saint Louis Counties) from the National Forests Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5209",
      "ancestors": [
        "012"
      ],
      "description": "Funds for Strengthening Markets, Income, and Supply (Section 32), Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5209-000",
          "ancestors": [
            "012",
            "012-5209"
          ],
          "description": "Funds for Strengthening Markets, Income, and Supply (Section 32), Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5208",
      "ancestors": [
        "012"
      ],
      "description": "Acquisition of Lands for National Forests, Special Acts, Forest Service, Agriculture",
      "count": 3,
      "children": [
        {
          "id": "012-2019/2019-5208-000",
          "ancestors": [
            "012",
            "012-5208"
          ],
          "description": "Acquisition of Lands for National Forests, Special Acts, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-2018/2018-5208-000",
          "ancestors": [
            "012",
            "012-5208"
          ],
          "description": "Acquisition of Lands for National Forests, Special Acts, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-2017/2017-5208-000",
          "ancestors": [
            "012",
            "012-5208"
          ],
          "description": "Acquisition of Lands for National Forests, Special Acts, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5207",
      "ancestors": [
        "012"
      ],
      "description": "Range Betterment Fund, Forest Service, Agriculture",
      "count": 4,
      "children": [
        {
          "id": "012-2019/2022-5207-000",
          "ancestors": [
            "012",
            "012-5207"
          ],
          "description": "Range Betterment Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-2018/2021-5207-000",
          "ancestors": [
            "012",
            "012-5207"
          ],
          "description": "Range Betterment Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-X-5207-000",
          "ancestors": [
            "012",
            "012-5207"
          ],
          "description": "Range Betterment Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        },
        {
          "id": "012-2017/2020-5207-000",
          "ancestors": [
            "012",
            "012-5207"
          ],
          "description": "Range Betterment Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5206",
      "ancestors": [
        "012"
      ],
      "description": "Expenses, Brush Disposal, Forest Service,  Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5206-000",
          "ancestors": [
            "012",
            "012-5206"
          ],
          "description": "Expenses, Brush Disposal, Forest Service,  Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5205",
      "ancestors": [
        "012"
      ],
      "description": "Native American Institutions Endowment Fund, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5205-000",
          "ancestors": [
            "012",
            "012-5205"
          ],
          "description": "Native American Institutions Endowment Fund, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5204",
      "ancestors": [
        "012"
      ],
      "description": "Timber Salvage Sales, Forest Service,  Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5204-000",
          "ancestors": [
            "012",
            "012-5204"
          ],
          "description": "Timber Salvage Sales, Forest Service,  Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5203",
      "ancestors": [
        "012"
      ],
      "description": "Roads and Trails for States, National Forests Fund, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5203-000",
          "ancestors": [
            "012",
            "012-5203"
          ],
          "description": "Roads and Trails for States, National Forests Fund, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5202",
      "ancestors": [
        "012"
      ],
      "description": "Timber Roads, Purchaser Elections, Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5202-000",
          "ancestors": [
            "012",
            "012-5202"
          ],
          "description": "Timber Roads, Purchaser Elections, Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5201",
      "ancestors": [
        "012"
      ],
      "description": "Payments to States, National Forests Fund,  Forest Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5201-000",
          "ancestors": [
            "012",
            "012-5201"
          ],
          "description": "Payments to States, National Forests Fund,  Forest Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    },
    {
      "id": "012-5161",
      "ancestors": [
        "012"
      ],
      "description": "Agricultural Quarantine Inspection User Fee Account, Animal and Plant Health Inspection Service, Agriculture",
      "count": 1,
      "children": [
        {
          "id": "012-X-5161-000",
          "ancestors": [
            "012",
            "012-5161"
          ],
          "description": "Agricultural Quarantine Inspection User Fee Account, Animal and Plant Health Inspection Service, Agriculture",
          "count": 0,
          "children": null
        }
      ]
    }
  ]
}

Recent changes

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

Contract notes

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

Generated from contracts/v2/references/filter_tree/tas/agency.md in the USAspending API repo.

Loading…