Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Fed-Spend Intelligence Contracts API
description: 'Federal Spending Intelligence API for searching contracts, awards, and opportunities from USASpending and SAM.gov data sources.
## Authentication
All API endpoints require an API key passed via the `x-api-key` header.
## Rate Limits
- Free: 100 requests/day
- Researcher: 1,000 requests/day
- Professional: 10,000 requests/day
- Enterprise: Unlimited
## Response Format
All responses follow a consistent format:
```json
{
"success": true,
"data": { ... },
"meta": {
"requestId": "uuid",
"timestamp": "ISO-8601"
}
}
```'
version: 1.0.0
contact:
name: Fed-Spend Support
email: support@fed-spend.com
url: https://fed-spend.com
license:
name: Proprietary
url: https://fed-spend.com/terms
servers:
- url: https://fed-spend.com/api/v1
description: Production API
- url: http://localhost:3000/api/v1
description: Local Development
security:
- ApiKeyAuth: []
tags:
- name: Contracts
description: Contract-specific endpoints
paths:
/contracts/{id}:
get:
tags:
- Contracts
summary: Get Contract Details
description: Retrieve detailed information about a specific contract by ID.
operationId: getContract
parameters:
- name: id
in: path
required: true
description: Contract ID (PIID or Award ID)
schema:
type: string
- name: includeModifications
in: query
description: Include modification history
schema:
type: boolean
default: false
responses:
'200':
description: Contract details
content:
application/json:
schema:
$ref: '#/components/schemas/ContractResponse'
'404':
description: Contract not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
ContractResponse:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true