USAspending.gov

USAspending.gov

Government

US federal spending data

Visit API

📚 Documentation & Examples

Everything you need to integrate with USAspending.gov

🚀 Quick Start Examples

USAspending.gov Javascript Examplejavascript
// USAspending.gov API Example
const response = await fetch('https://api.usaspending.gov/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

The US Federal Spending Data API offers seamless access to comprehensive data regarding federal spending across various sectors. With robust data sets encompassing contracts, grants, loans, and direct payments, this API serves as a valuable resource for researchers, policy makers, and developers aiming to gain insights into government expenditures. Users can easily retrieve data in a user-friendly format, allowing for in-depth analysis of how taxpayer dollars are allocated and spent across the nation. The API empowers transparency and accountability in government spending, driving informed decision-making at all levels.

Utilizing the US Federal Spending Data API comes with numerous advantages. Key benefits include:

  • Access to real-time federal spending information
  • Detailed insights into various government funding sources
  • A straightforward interface for querying extensive data sets
  • Enhanced accountability through transparency in expenditures
  • Support for data-driven decision-making in government and business

Here’s a simple JavaScript code example for making a GET request to this API:

fetch('https://api.usaspending.gov/api/v2/spending_by_award/')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error fetching data:', error));
🔒

Security Assessment

F
🔒HTTPS
Enabled
SSL Grade: T
🛡️Headers
65/100
HSTSXFO
🕒Last Assessed
1 weeks ago
ℹ️Click for detailed analysis

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 2Jun 4Jun 6Jun 8Jun 10Jun 12Jun 14Jun 16Jun 18Jun 20Jun 22Jun 24Jun 26Jun 28Jul 104008001440Minutes
Online
Offline

Related APIs in Government