82trust / 100
Gov Contracts
by x402stock.xyz in Onchain & crypto
x402 APIPassing, checked 2 h ago
Federal contract and grant awards to a US company, from USAspending.gov. Pass `?recipient=Lockheed Martin` (required, fuzzy name match) plus optional `?award_type=contracts|grants|all`, `?order=amount|date`, `?limit=` (max 50). Each award carries the award id, amount, awarding agency, period of performance, description, and a usaspending.gov link, with a total. A government-spending catalyst.
GET https://x402stock.xyz/api/v1/gov-contracts
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 215 ms typical, 220 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.xyz/api/v1/gov-contracts?award_type=contracts&limit=20&order=amount&recipient=Lockheed+Martin"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402stock.xyz%2Fapi%2Fv1%2Fgov-contracts
const res = await pay("https://x402stock.xyz/api/v1/gov-contracts?award_type=contracts&limit=20&order=amount&recipient=Lockheed+Martin");
console.log(await res.json());Example input
{
"award_type": "contracts",
"limit": 20,
"order": "amount",
"recipient": "Lockheed Martin"
}Example output
{
"as_of": "2026-06-05T12:00:00.000Z",
"attribution": "Source: USAspending.gov (U.S. Department of the Treasury, Bureau of the Fiscal Service)",
"award_type": "contracts",
"awards": [
{
"amount": 48063763681.32,
"award_id": "DEAC0494AL85000",
"awarding_agency": "Department of Energy",
"awarding_sub_agency": "Department of Energy",
"description": null,
"end_date": "2017-04-30",
"recipient": "LOCKHEED MARTIN CORP",
"start_date": "1993-10-15",
"url": "https://www.usaspending.gov/award/CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-"
},
{
"amount": 35135514910.2,
"award_id": "N0001917C0001",
"awarding_agency": "Department of Defense",
"awarding_sub_agency": "Department of the Navy",
"description": "LRIP LOT 12 ADVANCE ACQUISITION CONTRACT",
"end_date": "2031-03-31",
"recipient": "LOCKHEED MARTIN CORPORATION",
"start_date": "2017-11-17",
"url": "https://www.usaspending.gov/award/CONT_AWD_N0001917C0001_9700_-NONE-_-NONE-"
}
],
"count": 2,
"matched_recipients": [
"LOCKHEED MARTIN CORPORATION",
"LOCKHEED MARTIN CORP"
],
"recipient": "Lockheed Martin",
"source": "usaspending",
"total_awarded": 83199278591.32
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 296 ms | $0.02 |
| 5 h ago | Passed | 402 | 220 ms | $0.02 |
| 9 h ago | Passed | 402 | 215 ms | $0.02 |
| 14 h ago | Passed | 402 | 209 ms | $0.02 |