Closing Soon
GEThttps://api-federal-contracts.dataandapis.com/v1/opportunities/closing
Closing Soon is an endpoint of the Federal Contracts API. 86,500 active SAM.gov opportunities and 48,000 awards over $1M, searchable and refreshed daily.
Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.
Request
Query parameters
| Parameter | Example | |
|---|---|---|
| agency | Optional | |
| days | 14 | Optional |
| limit | 20 | Optional |
| naics | 5415 | Optional |
| page | Optional | |
| set_aside | Optional |
Example request
curl
curl "https://api-federal-contracts.dataandapis.com/v1/opportunities/closing?days=14&limit=20&naics=5415" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-federal-contracts.dataandapis.com/v1/opportunities/closing?days=14&limit=20&naics=5415", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api-federal-contracts.dataandapis.com/v1/opportunities/closing?days=14&limit=20&naics=5415",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Example response
Example response{
"ok": true,
"window_days": 14,
"count": 3,
"results": [
{
"notice_id": "2f6d849eff7a4c4bbe56b5ff2381196d",
"title": "191N6026Q0007 - PR16205087 - American Center Chennai�s Technology Infrastructure modernization",
"agency": "STATE, DEPARTMENT OF",
"type": "Solicitation",
"posted_date": "2026-08-28",
"response_deadline": "2026-09-15",
"naics": "541519",
"set_aside": "No Set aside used",
"place_of_performance": {
"city": "Chennai",
"state": "IN-TN"
},
"active": true,
"awarded": false
},
{
"notice_id": "676bc1a3c21b425f9eee9a70858e5665",
"title": "Post Industry Day Notice HITS-UIII",
"agency": "DEPT OF DEFENSE",
"type": "Special Notice",
"posted_date": "2026-06-29",
"response_deadline": "2026-09-15",
…
Show full response
Example response
{
"ok": true,
"window_days": 14,
"count": 3,
"results": [
{
"notice_id": "2f6d849eff7a4c4bbe56b5ff2381196d",
"title": "191N6026Q0007 - PR16205087 - American Center Chennai�s Technology Infrastructure modernization",
"agency": "STATE, DEPARTMENT OF",
"type": "Solicitation",
"posted_date": "2026-08-28",
"response_deadline": "2026-09-15",
"naics": "541519",
"set_aside": "No Set aside used",
"place_of_performance": {
"city": "Chennai",
"state": "IN-TN"
},
"active": true,
"awarded": false
},
{
"notice_id": "676bc1a3c21b425f9eee9a70858e5665",
"title": "Post Industry Day Notice HITS-UIII",
"agency": "DEPT OF DEFENSE",
"type": "Special Notice",
"posted_date": "2026-06-29",
"response_deadline": "2026-09-15",
…{
"ok": true,
"window_days": 14,
"count": 3,
"results": [
{
"notice_id": "2f6d849eff7a4c4bbe56b5ff2381196d",
"title": "191N6026Q0007 - PR16205087 - American Center Chennai�s Technology Infrastructure modernization",
"agency": "STATE, DEPARTMENT OF",
"type": "Solicitation",
"posted_date": "2026-08-28",
"response_deadline": "2026-09-15",
"naics": "541519",
"set_aside": "No Set aside used",
"place_of_performance": {
"city": "Chennai",
"state": "IN-TN"
},
"active": true,
"awarded": false
},
{
"notice_id": "676bc1a3c21b425f9eee9a70858e5665",
"title": "Post Industry Day Notice HITS-UIII",
"agency": "DEPT OF DEFENSE",
"type": "Special Notice",
"posted_date": "2026-06-29",
"response_deadline": "2026-09-15",
"naics": "541512",
"set_aside": "No Set aside used",
"place_of_performance": {
"city": null,
"state": "MS"
},
"active": true,
"awarded": false
},
{
"notice_id": "85a781413dc646e0a078e8a71d910b96",
"title": "Post Industry Day Notice HITS-UIII",
"agency": "DEPT OF DEFENSE",
"type": "Special Notice",
"posted_date": "2026-06-24",
"response_deadline": "2026-09-15",
"naics": "541512",
"set_aside": "No Set aside used",
"place_of_performance": {
"city": null,
"state": "MS"
},
"active": true,
"awarded": false
}
]
}
