US Federal Opportunities API

Find US government work before your competitors do: contract opportunities from SAM.gov, grants from Grants.gov and past awards from USAspending, filtered by keyword, NAICS code, agency, state and set-aside. No API key.

Try it on Apify Examples on GitHub

$0.003 per contract or grant opportunity and $0.002 per award. Errors are free. Made by CodePulse; these pages document our hosted Actor.

Quick start

export APIFY_TOKEN=...   # free Apify account: Console > Settings > API & Integrations

curl -sS -X POST \
  "https://api.apify.com/v2/acts/codepulsehq~us-federal-opportunities-api/run-sync-get-dataset-items?token=${APIFY_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"sources": ["contracts"], "keywords": ["cybersecurity"], "naics": ["5415"], "postedWithinDays": 14, "maxResults": 20}'

Guides

How to get SAM.gov contract opportunities without an API key

SAM.gov publishes a public daily extract of every active contract opportunity. How to use it, what is in it, and how to search it by keyword, NAICS and set-aside.

How to get daily alerts for new federal contract opportunities

Set up a daily alert for new federal contract opportunities in your NAICS code or keywords, delivered to email, Slack or a spreadsheet.

How to search Grants.gov opportunities through an API

Search open federal grants by keyword with award ceilings, deadlines and eligibility, using Grants.gov's public API or the Actor.

How to find who won federal contracts using USAspending data

Find which companies won federal contracts matching your keywords, with amounts, agencies and dates, for competitor and incumbent research before you bid.

NAICS codes and federal set-aside codes explained

What NAICS and PSC codes mean on federal contract notices, and what the set-aside codes SBA, 8A, HZC, SDVOSBC and WOSB stand for.

Frequently asked questions

Do I need a SAM.gov API key? No. The Actor reads the public daily extract of active contract opportunities that SAM.gov publishes.

How fresh is the data? Contract opportunities are as fresh as SAM.gov’s overnight extract. Grants come live from Grants.gov. Awards trail real events because agencies report with a delay.

What does it cost? $0.003 per contract or grant opportunity, $0.002 per award. Errors are free and you can cap spend per run.

Is the data official? Yes: SAM.gov, Grants.gov and USAspending.gov. This project is not affiliated with or endorsed by the US government.

More from CodePulse