US Federal Contracts & Grants API: SAM.gov, Grants.gov, Awards avatar

US Federal Contracts & Grants API: SAM.gov, Grants.gov, Awards

Pricing

Pay per event

Go to Apify Store
US Federal Contracts & Grants API: SAM.gov, Grants.gov, Awards

US Federal Contracts & Grants API: SAM.gov, Grants.gov, Awards

Search US federal contract opportunities (SAM.gov), grants (Grants.gov) and past awards (USAspending) by keyword, NAICS, agency, state and set-aside. No API key. Schedule it for daily alerts.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Code Pulse

Code Pulse

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 hours ago

Last modified

Features

Limited permissions

Share

US Federal Contracts & Grants API: SAM.gov opportunities, Grants.gov grants and USAspending awards, no API key

Find US government work before your competitors do. Search contract opportunities from SAM.gov, grant opportunities from Grants.gov and past contract awards from USAspending, filtered by keyword, NAICS code, agency, state, set-aside and deadline. All from official public sources, with no SAM.gov key to request and no rate limit to manage.

Try it free: Apify's free plan includes $5 of monthly credit, enough for about 1,600 contract opportunities. Press Start at the top of this page.

At a glance

  • What it is: an API and no-code tool for federal contract, grant and award data.
  • Three sources in one: contract opportunities (SAM.gov), grants (Grants.gov), awards (USAspending: who won, how much).
  • Filters: keywords (title matches listed first), NAICS codes, agencies, state, set-aside (SBA, 8(a), HUBZone, SDVOSB, WOSB), notice type, posted and closing dates, minimum amount.
  • Output: one row per opportunity, with deadline, days left, contact person and email, set-aside and a link. Grants add award ceiling and floor, eligibility and expected awards.
  • Price: $0.003 per contract or grant opportunity and $0.002 per award. Errors are free.
  • How to call it: the Apify Console, the REST API, n8n, Make, Zapier, or an AI agent through MCP. Put it on a daily schedule for new-opportunity alerts.

Does this sound like you?

What's going wrongWhat this does about it
"SAM.gov's search is slow and I can't get the results into a spreadsheet."Run a search and download CSV, Excel or JSON.
"I want an alert when a relevant solicitation is posted."Schedule it daily with Posted in the last 1 day and send the results to email or Slack.
"The SAM.gov API needs a key, a role, and has strict limits."No key needed here: it reads the public data SAM.gov publishes every day.
"Which opportunities are for small businesses in my NAICS code?"Filter by NAICS, set-aside code and state.
"Who won the last contract like this, and for how much?"Switch to Past awards with the same keywords and a minimum value.
"I never find grants alongside contracts."One run can search both.

Who uses it

  • Small businesses and government contractors: a daily list of new opportunities in your NAICS codes and set-aside category.
  • Business development and capture teams: competitor and incumbent research from award data.
  • Consultants and grant writers: open federal grants with deadlines, ceilings and eligibility.
  • Researchers and journalists: federal spending by keyword, agency and period.
  • AI agents: give a research or sales agent a "find federal opportunities" tool through MCP.

How to use it in 3 steps

  1. Choose Where to look and add Keywords or other filters.
  2. Press Start.
  3. Read the Output tab, or download JSON, CSV or Excel. To get alerts, add a schedule.

What you get

A contract opportunity:

{
"success": true, "source": "SAM.gov", "type": "contract_opportunity",
"title": "Military Sealift Command (MSC) Cybersecurity Support Services", "notice_type": "Solicitation",
"agency": "DEPT OF DEFENSE", "sub_tier": "DEPT OF THE NAVY", "naics": "541519", "psc": "D302",
"set_aside": "Total Small Business Set-Aside (FAR 19.5)", "set_aside_code": "SBA",
"posted_date": "2026-11-12 10:05:00", "response_deadline": "2026-12-04T17:00:00+00:00", "days_until_deadline": 16,
"place_of_performance": { "city": "Norfolk", "state": "VA", "country": "USA" },
"contact": { "name": "A. Contracting Officer", "email": "contracting.officer@navy.mil" },
"matched_in": "title", "matched_keywords": ["cybersecurity"],
"url": "https://sam.gov/workspace/contract/opp/..."
}

A grant:

{
"success": true, "source": "Grants.gov", "type": "grant_opportunity",
"title": "Fiscal Years 2025 and 2026 Congestion Relief Program", "agency": "DOT Federal Highway Administration",
"number": "FHWA-CRPP-27-001", "posted_date": "11/17/2026", "close_date": "12/17/2026", "days_until_close": 29,
"award_ceiling": 100000000, "award_floor": 10000000, "eligible_applicants": ["State governments"],
"url": "https://www.grants.gov/search-results-detail/364277"
}

An award:

{ "success": true, "source": "USAspending", "type": "award", "recipient": "MAVERIS LLC", "amount": 219100000, "agency": "Department of Veterans Affairs",
"description": "VA CYBERSECURITY OPERATIONS CENTER NEXT GENERATION", "url": "https://www.usaspending.gov/award/..." }

Problems come back as success: false rows with a plain-English reason. Those rows are free.

Input options

OptionWhat it does
Where to lookcontracts, grants, awards. Pick one or several.
Keywords / Leave out keywordsAny-match search in titles and descriptions. Title matches come first.
NAICS codesA short code matches everything under it (5415 = computer systems design).
AgenciesPart of an agency name (defense, veterans, navy).
Place of performanceTwo-letter state codes. Contracts only.
Set-asides, notice typesSBA, 8A, HZC, SDVOSBC, WOSB. Solicitation, Sources Sought and so on. Contracts only.
Posted in the last / Closing withinDate windows in days.
Minimum amountGrant ceiling or award value.
Maximum results per sourceA cost cap. Default 100.

Call it from code

curl -X POST "https://api.apify.com/v2/acts/codepulsehq~us-federal-opportunities-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "sources": ["contracts"], "keywords": ["cybersecurity"], "naics": ["5415"], "setAsides": ["SBA"], "postedWithinDays": 7 }'
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("codepulsehq/us-federal-opportunities-api").call(run_input={"sources": ["contracts", "grants"], "keywords": ["artificial intelligence"], "postedWithinDays": 7})
for row in client.dataset(run.default_dataset_id).iterate_items():
print(row["source"], row["title"], row.get("days_until_deadline") or row.get("days_until_close"))

Use it from an AI agent (MCP)

{ "mcpServers": { "federal-opportunities": { "url": "https://mcp.apify.com?tools=codepulsehq/us-federal-opportunities-api" } } }

Ask: "Find small-business set-aside cybersecurity solicitations posted this week and list the contacts."

Get a daily alert

In Apify, create a Schedule for this Actor with Posted in the last (days) set to 1. Connect the run to Slack, email, Google Sheets or a webhook from the Integrations tab, and you get only the new opportunities each day.

Pricing

ResultPrice
Contract or grant opportunity$0.003
Past award$0.002

You pay only for results returned. Errors are free, and you can set a maximum cost per run.

Quick answers

How do I get SAM.gov contract opportunities without an API key? Use this Actor. It reads SAM.gov's public daily extract of active contract opportunities, so there's no key to request.

How do I find opportunities for small businesses in my NAICS code? Add your NAICS code and set Set-asides to SBA (or 8A, HZC, SDVOSBC, WOSB).

How do I get alerts for new federal contracts? Schedule the Actor daily with Posted in the last (days) set to 1 and send the results to email or Slack.

How do I find out who won a contract? Choose Past awards and search by keyword, agency or amount.

Is the data official? Yes: SAM.gov's public extract, Grants.gov's API and USAspending.gov's API. This Actor isn't affiliated with or endorsed by the US government.

Limits you should know

  • Contract data is as fresh as SAM.gov's daily extract (refreshed overnight US time), not live.
  • Award data is from USAspending and trails real events. Agencies report with a delay, and award amounts are what was obligated, not always what was paid.
  • Keyword search is plain text matching, not semantic search. Boilerplate in a description (for example a security clause) can match a keyword. Title matches are listed first to help.
  • Attachments (the solicitation documents) aren't downloaded. Each row links to the notice.

More from CodePulse

FAQ

Something broke or you need another filter? Open an issue from the Issues tab with your input.