curl --request POST \
--url https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"award_type_codes": [
"A",
"B",
"C",
"D"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search"
payload = { "award_type_codes": ["A", "B", "C", "D"] }
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({award_type_codes: ['A', 'B', 'C', 'D']})
};
fetch('https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search', 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/awards/award-search",
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([
'award_type_codes' => [
'A',
'B',
'C',
'D'
]
]),
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/awards/award-search"
payload := strings.NewReader("{\n \"award_type_codes\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\"\n ]\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/awards/award-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"award_type_codes\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search")
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 \"award_type_codes\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\"\n ]\n}"
response = http.request(request)
puts response.read_bodyAward search
Search USAspending prime awards by keyword, awarding/funding agency, recipient name or UEI, action-date window, place of performance, NAICS, PSC and award amount within one award family (contracts, IDVs, grants, loans, direct payments or other). One page (default 20, max 100) of summary award records with an opaque cursor for the next page; add award for the full record.
curl --request POST \
--url https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"award_type_codes": [
"A",
"B",
"C",
"D"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search"
payload = { "award_type_codes": ["A", "B", "C", "D"] }
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({award_type_codes: ['A', 'B', 'C', 'D']})
};
fetch('https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search', 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/awards/award-search",
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([
'award_type_codes' => [
'A',
'B',
'C',
'D'
]
]),
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/awards/award-search"
payload := strings.NewReader("{\n \"award_type_codes\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\"\n ]\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/awards/award-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"award_type_codes\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search")
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 \"award_type_codes\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\"\n ]\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/usaspending-gov/awards/award-search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search
{
"operationId": "usaspending-gov.awards.award-search",
"method": "POST",
"path": "/apis/v1/usaspending-gov/awards/award-search",
"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": {
"award_type_codes": [
"A",
"B",
"C",
"D"
],
"page_size": 2,
"recipient_search_text": "LOCKHEED MARTIN",
"time_period": [
{
"end_date": "2025-09-30",
"start_date": "2024-10-01"
}
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"agencies": {
"description": "agencies",
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"award_amounts": {
"description": "USD ranges (OR) on the award total; at least one bound each.",
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"award_type_codes": {
"description": "Required. One family only: contracts A (BPA call), B (purchase order), C (delivery order), D (definitive contract); IDVs IDV_A..IDV_E; grants 02 block, 03 formula, 04 project, 05 cooperative agreement; direct payments 06, 10; loans 07 direct, 08 guaranteed; other 09 insurance, 11 other, -1.",
"items": {
"type": "string"
},
"type": "array"
},
"cursor": {
"description": "next_cursor from the previous page; bound to identical filters, sort and page_size. Depth is capped at 500 pages.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"keywords": {
"description": "Free-text terms matched against award descriptions, recipient names and ids (OR).",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"naics_codes": {
"description": "Contracts/IDVs only; 2, 4 or 6 digit NAICS codes (sector, industry group or national industry). USAspending rejects other lengths.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page_size": {
"default": 20,
"description": "page_size\n\nProvider reference: minimum 1; maximum 100; default 20.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"place_of_performance": {
"additionalProperties": true,
"description": "place_of_performance",
"type": "object",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"psc_codes": {
"description": "Contracts/IDVs only.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"recipient_search_text": {
"description": "Recipient name, UEI or DUNS text.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"sort": {
"default": "amount_desc",
"description": "Result order. For loans amount_* sorts by Loan Value and start_date_* by Issued Date; end_date_* is rejected for loans.\n\nProvider reference: allowed values [\"amount_desc\", \"amount_asc\", \"start_date_desc\", \"start_date_asc\", \"end_date_desc\", \"end_date_asc\", \"last_modified_desc\", \"last_modified_asc\", \"recipient_name_asc\", \"recipient_name_desc\", \"award_id_asc\", \"award_id_desc\"]; default \"amount_desc\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"amount_desc",
"amount_asc",
"start_date_desc",
"start_date_asc",
"end_date_desc",
"end_date_asc",
"last_modified_desc",
"last_modified_asc",
"recipient_name_asc",
"recipient_name_desc",
"award_id_asc",
"award_id_desc"
]
}
},
"time_period": {
"description": "Action-date windows (OR). start_date >= 2007-10-01. Omitted = 2007-10-01 to 2030-09-30. FY2025 is 2024-10-01..2025-09-30.",
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"award_type_codes"
],
"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
Required. One family only: contracts A (BPA call), B (purchase order), C (delivery order), D (definitive contract); IDVs IDV_A..IDV_E; grants 02 block, 03 formula, 04 project, 05 cooperative agreement; direct payments 06, 10; loans 07 direct, 08 guaranteed; other 09 insurance, 11 other, -1.
Result order. For loans amount_* sorts by Loan Value and start_date_* by Issued Date; end_date_* is rejected for loans.
Provider reference: allowed values ["amount_desc", "amount_asc", "start_date_desc", "start_date_asc", "end_date_desc", "end_date_asc", "last_modified_desc", "last_modified_asc", "recipient_name_asc", "recipient_name_desc", "award_id_asc", "award_id_desc"]; default "amount_desc".
Response
Search USAspending prime awards by keyword, awarding/funding agency, recipient name or UEI, action-date window, place of performance, NAICS, PSC and award amount within one award family (contracts, IDVs, grants, loans, direct payments or other). One page (default 20, max 100) of summary award records with an opaque cursor for the next page; add award for the full record.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
award_type_codes | string[] | |
category | string | |
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. |
page | object | Source request fields used to reproduce the official USAspending query. |
records | object[] | |
retrieved_at | string | |
schema_version | string | |
sort | string | |
source_request | object | The exact spending_by_award body sent upstream. |
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.