Search Opportunities

GEThttps://api-federal-contracts.dataandapis.com/v1/opportunities

Search Opportunities 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

ParameterExample
activetrueOptional
agencyOptional
awardedOptional
deadline_afterOptional
deadline_beforeOptional
limit20Optional
naics5415Optional
page1Optional
posted_sinceOptional
pscOptional
qcybersecurityOptional
set_asideOptional
stateOptional
typeOptional

Example request

curl
curl "https://api-federal-contracts.dataandapis.com/v1/opportunities?active=true&limit=20&naics=5415&page=1&q=cybersecurity" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-federal-contracts.dataandapis.com/v1/opportunities?active=true&limit=20&naics=5415&page=1&q=cybersecurity", {
  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?active=true&limit=20&naics=5415&page=1&q=cybersecurity",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "ok": true,
  "total": 38,
  "page": 1,
  "limit": 20,
  "count": 3,
  "results": [
    {
      "notice_id": "6a4ca55e1e4544fcb51d123c0d016d11",
      "title": "Enterprise Cybersecurity Services",
      "agency": "HOMELAND SECURITY, DEPARTMENT OF",
      "type": "Special Notice",
      "posted_date": "2026-08-27",
      "response_deadline": null,
      "naics": "541519",
      "set_aside": null,
      "place_of_performance": {
        "city": "Washington",
        "state": "DC"
      },
      "active": true,
      "awarded": false
    },
    {
      "notice_id": "e722cac361344849888424706eacbaf0",
      "title": "D--Cyber and Operations Assurance Program (COAP) Support Services.",
      "agency": "INTERIOR, DEPARTMENT OF THE",
      "type": "Justification",
…
Show full response
{
  "ok": true,
  "total": 38,
  "page": 1,
  "limit": 20,
  "count": 3,
  "results": [
    {
      "notice_id": "6a4ca55e1e4544fcb51d123c0d016d11",
      "title": "Enterprise Cybersecurity Services",
      "agency": "HOMELAND SECURITY, DEPARTMENT OF",
      "type": "Special Notice",
      "posted_date": "2026-08-27",
      "response_deadline": null,
      "naics": "541519",
      "set_aside": null,
      "place_of_performance": {
        "city": "Washington",
        "state": "DC"
      },
      "active": true,
      "awarded": false
    },
    {
      "notice_id": "e722cac361344849888424706eacbaf0",
      "title": "D--Cyber and Operations Assurance Program (COAP) Support Services.",
      "agency": "INTERIOR, DEPARTMENT OF THE",
      "type": "Justification",
      "posted_date": "2026-08-27",
      "response_deadline": null,
      "naics": "541512",
      "set_aside": null,
      "place_of_performance": {
        "city": null,
        "state": null
      },
      "active": true,
      "awarded": true
    },
    {
      "notice_id": "07b8aa34c78244b08b6150e51bdb0c48",
      "title": "DJ01--Cybersecurity Architecture and Engineering Services RFI Loopback (VA-26-00064748)",
      "agency": "VETERANS AFFAIRS, DEPARTMENT OF",
      "type": "Sources Sought",
      "posted_date": "2026-08-26",
      "response_deadline": "2026-08-26",
      "naics": "541512",
      "set_aside": "Service-Disabled Veteran-Owned Small Business (SDVOSB) Set-Aside (FAR 19.14)",
      "place_of_performance": {
        "city": null,
        "state": null
      },
      "active": true,
      "awarded": false
    }
  ]
}