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
| Param | In | Values |
|---|---|---|
posted_from | query | Posted-date start, YYYY-MM-DD (default: 30 days ago). SAM caps a query window at 1 year. |
posted_to | query | Posted-date end, YYYY-MM-DD (default: today) |
naics | query | NAICS code, up to 6 digits, e.g. 541519 |
ptype | query | Procurement type: o solicitation, p presolicitation, a award, etc. |
state | query | Place-of-performance state, e.g. TX |
set_aside | query | Set-aside code, e.g. SBA, 8A, WOSB, HZC |
title | query | Match on opportunity title |
limit | query | 1–200 (default 20) |
offset | query | Page 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)"
}