Agency
curl --request POST \
--url https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"toptier_code": "097"
}
'import requests
url = "https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency"
payload = { "toptier_code": "097" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({toptier_code: '097'})
};
fetch('https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'toptier_code' => '097'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency"
payload := strings.NewReader("{\n \"toptier_code\": \"097\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"toptier_code\": \"097\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"toptier_code\": \"097\"\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"next_cursor": null,
"records": [
{
"abbreviation": "DOD",
"about_agency_data": "For reasons of national security, Department of Defense (including Army, Navy, Air Force, and DOD itself) contract and IDV data is subject to a 90-day publication delay (i.e., DOD procurement awards cannot be published until 90 days have elapsed after the award Action Date). Other DOD data (including financial assistance and account data) are not subject to this delay. Read more about this delay on our About the Data page.",
"agency_id": 1173,
"awards_summary": {
"amount_unit": {
"basis": "transaction-level award obligations in the fiscal year",
"currency": "USD",
"scale": "1"
},
"latest_action_date": "2025-09-30T00:00:00",
"obligations": "501619241301.34",
"transaction_count": 4516487
},
"congressional_justification_url": "https://www.defense.gov/cj",
"def_codes": [
{
"code": "2",
"disaster": null,
"public_law": "Emergency P.L. 117-70",
"title": "Further Extending Government Funding Act",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ70/pdf/PLAW-117publ70.pdf"
},
{
"code": "3",
"disaster": null,
"public_law": "Emergency P.L. 117-103",
"title": "Consolidated Appropriations Act, 2022",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ103/pdf/PLAW-117publ103.pdf"
},
{
"code": "6",
"disaster": null,
"public_law": "Emergency P.L. 117-128",
"title": "Additional Ukraine Supplemental Appropriations Act, 2022",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ128/pdf/PLAW-117publ128.pdf"
},
{
"code": "AAA",
"disaster": null,
"public_law": "Emergency P.L. 117-180",
"title": "Continuing Appropriations and Ukraine Supplemental Appropriations Act, 2023",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ180/pdf/PLAW-117publ180.pdf"
},
{
"code": "AAB",
"disaster": null,
"public_law": "Emergency P.L. 117-328",
"title": "Consolidated Appropriations Act, 2023",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ328/pdf/PLAW-117publ328.pdf"
},
{
"code": "AAJ",
"disaster": null,
"public_law": "Emergency P.L. 118-50",
"title": "An act making emergency supplemental appropriations for the fiscal year ending September 30, 2024, and for other purposes.",
"url": "http://www.govinfo.gov/content/pkg/PLAW-118publ50/pdf/PLAW-118publ50.pdf"
},
{
"code": "AAK",
"disaster": null,
"public_law": "Emergency P.L. 118-158",
"title": "American Relief Act, 2025",
"url": "http://www.govinfo.gov/content/pkg/PLAW-118publ158/pdf/PLAW-118publ158.pdf"
},
{
"code": "C",
"disaster": null,
"public_law": "Emergency P.L. 115-123",
"title": "Bipartisan Budget Act of 2018",
"url": "http://www.govinfo.gov/content/pkg/PLAW-115publ123/pdf/PLAW-115publ123.pdf"
},
{
"code": "E",
"disaster": null,
"public_law": "Emergency P.L. 116-20",
"title": "Additional Supplemental Appropriations for Disaster Relief Act, 2019",
"url": "http://www.govinfo.gov/content/pkg/PLAW-116publ20/pdf/PLAW-116publ20.pdf"
},
{
"code": "G",
"disaster": null,
"public_law": "Emergency P.L. 116-93",
"title": "Consolidated Appropriations Act, 2020",
"url": "http://www.govinfo.gov/content/pkg/PLAW-116publ93/pdf/PLAW-116publ93.pdf"
},
{
"code": "N",
"disaster": "covid_19",
"public_law": "Emergency P.L. 116-136",
"title": "Coronavirus Aid, Relief, and Economic Security Act or the CARES Act",
"url": "http://www.govinfo.gov/content/pkg/PLAW-116publ136/pdf/PLAW-116publ136.pdf"
},
{
"code": "Q",
"disaster": null,
"public_law": "Not Designated Nonemergency/Emergency/Disaster/Wildfire Suppression",
"title": "Not Designated Nonemergency/Emergency/Disaster/Wildfire Suppression",
"url": null
},
{
"code": "V",
"disaster": "covid_19",
"public_law": "Non-emergency P.L. 117-2",
"title": "American Rescue Plan Act of 2021",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ2/pdf/PLAW-117publ2.pdf"
},
{
"code": "W",
"disaster": null,
"public_law": "Emergency P.L. 117-31",
"title": "Emergency Security Supplemental Appropriations Act, 2021",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ31/pdf/PLAW-117publ31.pdf"
},
{
"code": "X",
"disaster": null,
"public_law": "Emergency P.L. 117-43",
"title": "Extending Government Funding and Delivering Emergency Assistance Act",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ43/pdf/PLAW-117publ43.pdf"
}
],
"fiscal_year": 2025,
"mission": "The mission of the Department of Defense is to provide the military forces needed to deter war and to protect the security of our country.",
"name": "Department of Defense",
"observed_at_ms": 1789444592871,
"source_messages": [],
"source_url": "https://api.usaspending.gov/api/v2/agency/097/?fiscal_year=2025",
"source_vintage": "2026-09-14",
"subtier_agency_count": 36,
"toptier_code": "097",
"website": "https://www.defense.gov/"
}
],
"retrieved_at": "2026-09-15T03:56:32Z",
"schema_version": "1.0.0",
"source_updated_at": "2026-09-14",
"source_url": "https://api.usaspending.gov/api/v2/agency/097/?fiscal_year=2025",
"units": {
"basis": "nominal dollars as published by USAspending",
"currency": "USD",
"scale": "1"
},
"upstream_requests": 3,
"warnings": []
}USAspending
Agency
Toptier agency overview for a fiscal year by CGAC/FREC code (097 Department of Defense, 075 Health and Human Services, 036 Veterans Affairs): name, mission, website, subtier count, DEF codes in use and the fiscal year’s award obligations and transaction count.
POST
https://api.aisa.one
/
apis
/
v1
/
usaspending-gov
/
agencies
/
agency
Agency
curl --request POST \
--url https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"toptier_code": "097"
}
'import requests
url = "https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency"
payload = { "toptier_code": "097" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({toptier_code: '097'})
};
fetch('https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'toptier_code' => '097'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency"
payload := strings.NewReader("{\n \"toptier_code\": \"097\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"toptier_code\": \"097\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"toptier_code\": \"097\"\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"next_cursor": null,
"records": [
{
"abbreviation": "DOD",
"about_agency_data": "For reasons of national security, Department of Defense (including Army, Navy, Air Force, and DOD itself) contract and IDV data is subject to a 90-day publication delay (i.e., DOD procurement awards cannot be published until 90 days have elapsed after the award Action Date). Other DOD data (including financial assistance and account data) are not subject to this delay. Read more about this delay on our About the Data page.",
"agency_id": 1173,
"awards_summary": {
"amount_unit": {
"basis": "transaction-level award obligations in the fiscal year",
"currency": "USD",
"scale": "1"
},
"latest_action_date": "2025-09-30T00:00:00",
"obligations": "501619241301.34",
"transaction_count": 4516487
},
"congressional_justification_url": "https://www.defense.gov/cj",
"def_codes": [
{
"code": "2",
"disaster": null,
"public_law": "Emergency P.L. 117-70",
"title": "Further Extending Government Funding Act",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ70/pdf/PLAW-117publ70.pdf"
},
{
"code": "3",
"disaster": null,
"public_law": "Emergency P.L. 117-103",
"title": "Consolidated Appropriations Act, 2022",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ103/pdf/PLAW-117publ103.pdf"
},
{
"code": "6",
"disaster": null,
"public_law": "Emergency P.L. 117-128",
"title": "Additional Ukraine Supplemental Appropriations Act, 2022",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ128/pdf/PLAW-117publ128.pdf"
},
{
"code": "AAA",
"disaster": null,
"public_law": "Emergency P.L. 117-180",
"title": "Continuing Appropriations and Ukraine Supplemental Appropriations Act, 2023",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ180/pdf/PLAW-117publ180.pdf"
},
{
"code": "AAB",
"disaster": null,
"public_law": "Emergency P.L. 117-328",
"title": "Consolidated Appropriations Act, 2023",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ328/pdf/PLAW-117publ328.pdf"
},
{
"code": "AAJ",
"disaster": null,
"public_law": "Emergency P.L. 118-50",
"title": "An act making emergency supplemental appropriations for the fiscal year ending September 30, 2024, and for other purposes.",
"url": "http://www.govinfo.gov/content/pkg/PLAW-118publ50/pdf/PLAW-118publ50.pdf"
},
{
"code": "AAK",
"disaster": null,
"public_law": "Emergency P.L. 118-158",
"title": "American Relief Act, 2025",
"url": "http://www.govinfo.gov/content/pkg/PLAW-118publ158/pdf/PLAW-118publ158.pdf"
},
{
"code": "C",
"disaster": null,
"public_law": "Emergency P.L. 115-123",
"title": "Bipartisan Budget Act of 2018",
"url": "http://www.govinfo.gov/content/pkg/PLAW-115publ123/pdf/PLAW-115publ123.pdf"
},
{
"code": "E",
"disaster": null,
"public_law": "Emergency P.L. 116-20",
"title": "Additional Supplemental Appropriations for Disaster Relief Act, 2019",
"url": "http://www.govinfo.gov/content/pkg/PLAW-116publ20/pdf/PLAW-116publ20.pdf"
},
{
"code": "G",
"disaster": null,
"public_law": "Emergency P.L. 116-93",
"title": "Consolidated Appropriations Act, 2020",
"url": "http://www.govinfo.gov/content/pkg/PLAW-116publ93/pdf/PLAW-116publ93.pdf"
},
{
"code": "N",
"disaster": "covid_19",
"public_law": "Emergency P.L. 116-136",
"title": "Coronavirus Aid, Relief, and Economic Security Act or the CARES Act",
"url": "http://www.govinfo.gov/content/pkg/PLAW-116publ136/pdf/PLAW-116publ136.pdf"
},
{
"code": "Q",
"disaster": null,
"public_law": "Not Designated Nonemergency/Emergency/Disaster/Wildfire Suppression",
"title": "Not Designated Nonemergency/Emergency/Disaster/Wildfire Suppression",
"url": null
},
{
"code": "V",
"disaster": "covid_19",
"public_law": "Non-emergency P.L. 117-2",
"title": "American Rescue Plan Act of 2021",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ2/pdf/PLAW-117publ2.pdf"
},
{
"code": "W",
"disaster": null,
"public_law": "Emergency P.L. 117-31",
"title": "Emergency Security Supplemental Appropriations Act, 2021",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ31/pdf/PLAW-117publ31.pdf"
},
{
"code": "X",
"disaster": null,
"public_law": "Emergency P.L. 117-43",
"title": "Extending Government Funding and Delivering Emergency Assistance Act",
"url": "http://www.govinfo.gov/content/pkg/PLAW-117publ43/pdf/PLAW-117publ43.pdf"
}
],
"fiscal_year": 2025,
"mission": "The mission of the Department of Defense is to provide the military forces needed to deter war and to protect the security of our country.",
"name": "Department of Defense",
"observed_at_ms": 1789444592871,
"source_messages": [],
"source_url": "https://api.usaspending.gov/api/v2/agency/097/?fiscal_year=2025",
"source_vintage": "2026-09-14",
"subtier_agency_count": 36,
"toptier_code": "097",
"website": "https://www.defense.gov/"
}
],
"retrieved_at": "2026-09-15T03:56:32Z",
"schema_version": "1.0.0",
"source_updated_at": "2026-09-14",
"source_url": "https://api.usaspending.gov/api/v2/agency/097/?fiscal_year=2025",
"units": {
"basis": "nominal dollars as published by USAspending",
"currency": "USD",
"scale": "1"
},
"upstream_requests": 3,
"warnings": []
}Request contract
- Method and path: POST /apis/v1/usaspending-gov/agencies/agency
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency
{
"operationId": "usaspending-gov.agencies.agency",
"method": "POST",
"path": "/apis/v1/usaspending-gov/agencies/agency",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"fiscal_year": 2025,
"toptier_code": "097"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"fiscal_year": {
"description": "Omitted = the current fiscal year.\n\nProvider reference: minimum 2008; maximum 2035.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2035,
"min": 2008
}
},
"toptier_code": {
"description": "Pattern: ^[0-9]{3,4}$.",
"type": "string"
}
},
"required": [
"toptier_code"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Toptier agency overview for a fiscal year by CGAC/FREC code (097 Department of Defense, 075 Health and Human Services, 036 Veterans Affairs): name, mission, website, subtier count, DEF codes in use and the fiscal year's award obligations and transaction count.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
complete | boolean | Whether this response satisfied the requested operation; false when a secondary source call failed (warnings explain). |
next_cursor | string | Opaque v1:: cursor bound to the filters; null at the end. |
records | object[] | |
retrieved_at | string | |
schema_version | string | |
source_updated_at | string | USAspending database last-updated date from awards/last_updated, null when that call failed. |
source_url | string | |
units | object | |
upstream_requests | number | |
warnings | string[] |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.