SAM.gov Public Opportunities API avatar

SAM.gov Public Opportunities API

Pricing

from $1.00 / 1,000 opportunity rows

Go to Apify Store
SAM.gov Public Opportunities API

SAM.gov Public Opportunities API

Search U.S. federal contract opportunities via the official GSA Get Opportunities Public API (api.sam.gov). Uses your own free SAM.gov api_key. No HTML scraping.

Pricing

from $1.00 / 1,000 opportunity rows

Rating

0.0

(0)

Developer

Bryce

Bryce

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

20 days ago

Last modified

Categories

Features

Limited permissions

Share

Search U.S. federal contract opportunities using the official GSA Get Opportunities Public API
(https://api.sam.gov/opportunities/v2/search).

This Actor is an API client only. It does not scrape sam.gov HTML, does not harvest contacts, and does not use paid proxies.

Get a free SAM.gov API key

  1. Create / sign in at sam.gov.
  2. Open Account Details.
  3. Request a Public API Key (instant for registered users).
  4. Paste that key into this Actor’s apiKey input (kept secret in Apify).

Docs: open.gsa.gov — Get Opportunities Public API.

What you get

FieldDescription
noticeIdSAM notice id
titleOpportunity title
solicitationNumberSolicitation number
agencyOrganization path / agency
postedDatePosted date
responseDeadlineResponse deadline
type / baseTypeNotice type
naicsCode / classificationCodeCodes
setAside / setAsideCodeSet-aside info
activeYes / No
uiLinkSAM.gov UI link when provided
descriptionLinkOfficial noticedesc API URL (not scraped HTML)
descriptionSummaryInline text only if the API returns text instead of a URL
placeOfPerformanceCity / state / zip / country summary
awardAmount / awardDate / awardNumberAward fields when present

Contact fields (pointOfContact) are intentionally omitted — no contact harvesting.

Input

  • apiKey (required, secret) — your SAM.gov public API key
  • postedFrom / postedTo (required) — MM/dd/yyyy, max 1-year span
  • keywords — mapped to official title= filter
  • ptype, status, organizationCode, organizationName, ncode, ccode, state, zip, solnum, noticeid, typeOfSetAside, rdlfrom / rdlto
  • limit — max rows to write (default 25)
  • offset — starting SAM page index (default 0)
  • pageSize — rows per API page (max 1000)

Example

{
"apiKey": "YOUR_SAM_GOV_PUBLIC_API_KEY",
"postedFrom": "10/01/2026",
"postedTo": "11/04/2026",
"keywords": "software",
"ptype": "o",
"limit": 10
}

How it works

  1. Calls https://api.sam.gov/opportunities/v2/search only.
  2. Sends a descriptive User-Agent and Accept: application/json.
  3. Stays around ~1 request/second and honors HTTP 429.
  4. Paginates with SAM offset (page index) + limit.
  5. Writes one dataset item per opportunity (contacts stripped).
  6. Fails clearly if apiKey is missing or rejected by SAM.gov.

Pricing (pay-per-event)

Intended Store pricing (synthetic events — configure in Apify Console when payout/billing info is available):

  • $0.005 per Actor start (apify-actor-start)
  • $0.001 per opportunity row written to the default dataset (apify-default-dataset-item)

Until Console monetization is enabled (requires payout / billing info on the account), the Actor still uses Actor.pushData() so synthetic PPE events will charge automatically once configured. No custom Actor.charge() events are required.

Limitations & rules

  • No HTML scraping of sam.gov.
  • No contact harvesting (PoC email/phone/name dropped).
  • No residential / upgraded proxies — plain HTTPS to api.sam.gov.
  • You must supply your own free SAM.gov api_key. Daily quotas are enforced by GSA based on account role.
  • Keep limit modest while exploring.

Use cases

  • Monitor new solicitations by keyword / NAICS / agency
  • Export award notices for analysis
  • Feed a govcon pipeline without fragile HTML scrapers

Output

Open the run’s Dataset tab (or download via API). Each item is one opportunity record.