Docs / Government data

GET /v1/opportunities

Federal contract opportunities from SAM.gov — solicitations, presolicitations, sources-sought, and award notices — normalized into flat JSON. Every record carries the notice id, title, solicitation number, posted date, type, set-aside, NAICS, place of performance, an award block (when present), a point of contact, and the sam.gov link.

Parameters

ParamInValues
posted_fromqueryPosted-date start, YYYY-MM-DD (default: 30 days ago). SAM caps a query window at 1 year.
posted_toqueryPosted-date end, YYYY-MM-DD (default: today)
naicsqueryNAICS code, up to 6 digits, e.g. 541519
ptypequeryProcurement type: o solicitation, p presolicitation, a award, etc.
statequeryPlace-of-performance state, e.g. TX
set_asidequerySet-aside code, e.g. SBA, 8A, WOSB, HZC
titlequeryMatch on opportunity title
limitquery1–200 (default 20)
offsetqueryPage offset (default 0)

Request

# recent small-business software solicitations
curl "https://api.edgrapi.com/v1/opportunities?naics=541519&set_aside=SBA&limit=20" -H "X-API-Key: edgr_..."

Response

{
  "scope": "federal contract opportunities (SAM.gov)", "count": 1,
  "total": 1284, "limit": 20, "offset": 0,
  "posted_from": "08/17/2026", "posted_to": "09/16/2026",
  "opportunities": [
    { "notice_id": "a1b2c3d4e5", "title": "Enterprise Cloud Services BPA",
      "solicitation_number": "W912-26-R-0001", "posted_date": "2026-08-27",
      "type": "Solicitation", "base_type": "Solicitation", "active": true,
      "response_deadline": "2026-09-30", "naics_code": "541519",
      "set_aside": "Total Small Business Set-Aside", "set_aside_code": "SBA",
      "place_of_performance": { "city": "Huntsville", "state": "AL", "zip": "35808", "country": "USA" },
      "award": null,
      "point_of_contact": { "name": "Jane Roe", "email": "jane.roe@army.mil", "phone": "256-555-0100" },
      "ui_link": "https://sam.gov/opp/a1b2c3d4e5/view", "resource_links": [] }
  ],
  "source": "SAM.gov Contract Opportunities API (open.gsa.gov)"
}

US government data from the public SAM.gov API. Leave the dates off for the recent feed. No matches returns count: 0 and is free. Cost: 2 credits.