API Documentation
Integrate federal spending intelligence into your applications
Overview
The Fed-Spend API provides programmatic access to federal spending data from USASpending.gov and SAM.gov. Use it to search for contracts, awards, and opportunities, track recompete opportunities, and analyze set-aside programs.
Base URL
https://fed-spend.com/api/v1Quick Start
1
Get your API key
Visit the API Dashboard to generate your key
2
Make your first request
Include your API key in the
x-api-key header3
Explore the data
Search, filter, and analyze federal spending data
Authentication
All API requests require authentication via an API key passed in the request header.
Header
x-api-key: YOUR_API_KEYRate Limits
API rate limits vary by subscription tier.
FreeCurrent
100/day
Researcher
1,000/day
Professional
10,000/day
Enterprise
Unlimited
Need more API calls? Upgrade your plan for higher limits.
Code Examples
curl -X POST "https://fed-spend.com/api/v1/search" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "cloud services",
"agency": "Department of Defense",
"maxResults": 25
}'Endpoints
POST
/api/v1/searchSearch Federal Spending Data
Search across federal contracts, awards, and opportunities
GET
/api/v1/contracts/{id}Get Contract Details
Retrieve detailed information about a specific contract
GET
/api/v1/recompeteGet Recompete Opportunities
Get contracts expiring soon (Professional+)
GET
/api/v1/set-asideGet Set-Aside Statistics
Get opportunities by socioeconomic set-aside type (Professional+)