USAspending.gov API
Overview
USAspending.gov provides a free, open API to explore how the United States federal government spends taxpayer money across contracts, grants, loans, and more. No API key is required, making it simple for beginners to start querying federal spending data immediately. It is a powerful tool for data journalism, research projects, or anyone interested in government transparency.
Beginner Tip
Use the /api/v2/search/spending_by_award/ endpoint with a POST request to search for specific contracts or grants — the API uses JSON request bodies rather than URL query parameters.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from USAspending.gov",
"description": "US federal spending data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
results List of spending awards or agencies matching your query. total_count Total number of records matching the query before pagination. award_id Unique identifier for a specific federal award or contract. recipient_name Name of the company or organization that received the federal award. award_amount Total dollar amount of the federal award in USD. awarding_agency_name Name of the federal agency that issued the award. Implementation Example
const url = "https://api.usaspending.gov/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bank Negara Malaysia Open Data
⭐ Beginner's PickBank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators.
BCLaws
BCLaws gives you free access to the full text of British Columbia's laws and regulations.
Brazil
⭐ Beginner's PickBrasilAPI is a free, community-driven API that centralizes public data about Brazil in one easy-to-use place.
Brazil Central Bank Open Data
The Brazil Central Bank Open Data API provides free access to official financial and economic data from Brazil s central bank (Banco Central do Brasil).
Brazil Receita WS
Brazil Receita WS lets you look up official information about Brazilian companies using their CNPJ (tax registration number).