Skip to content

SAM.gov API: Search contract opportunities

Finds active federal contract notices on SAM.gov that match keywords, agency, place of performance, set-aside, notice type and posting period.

sam.gov (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by SAM.gov.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

State optionalstate

Place-of-performance state, such as Texas or TX.

Not set

Agency optionalagency

Federal agency name, such as Department of Veterans Affairs.

Not set

Keywords, requiredkeywords

Words to search for, such as janitorial services.

janitorial services

Set Aside optionalset_aside

Business preference, such as hubzone.

any (default)

One of any, small_business, women_owned, veteran_owned, service_disabled_veteran_owned, hubzone, 8a.

Max Results optionalmax_results

Maximum notices to return, such as 25.

25 (default)

Whole number from 1 to 100.

Notice Type optionalnotice_type

Kind of notice, such as solicitation.

any (default)

One of any, solicitation, presolicitation, sources_sought, combined_synopsis, award_notice.

Posted Within Days optionalposted_within_days

Only notices posted within this many days, such as 30.

30 (default)

Whole number from 1 to 365.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "opportunities": [    {      "link": "https://sam.gov/workspace/contract/opp/546f260eefcc42e996f4d6ac7df2b460/view",      "title": "Swan Lake Ranger District Janitorial Contract, Flathead National Forest",      "agency": "AGRICULTURE, DEPARTMENT OF",      "office": "USDA-FS, CSA INTERMOUNTAIN 7",      "industry": "Janitorial Services",      "notice_id": "546f260eefcc42e996f4d6ac7df2b460",      "set_aside": "Small Business Set Aside - Total",      "naics_code": "561720",      "notice_type": "Combined Synopsis/Solicitation",      "posted_date": "2026-10-22",      "response_deadline": "2026-11-12T13:00:00-07:00",      "solicitation_number": "1240LS26Q0044",      "place_of_performance": "Montana, UNITED STATES"    },    {      "link": "https://sam.gov/workspace/contract/opp/0602507394964d76986220e4c04c2194/view",      "title": "CFO JANITORIAL SERVICES (5 YEAR)",      "agency": "INTERIOR, DEPARTMENT OF THE",      "office": "ELY DISTRICT OFFICE",      "industry": "Janitorial Services",      "notice_id": "0602507394964d76986220e4c04c2194",      "set_aside": "Small Business Set Aside - Total",      "naics_code": "561720",      "notice_type": "Solicitation",      "posted_date": "2026-10-22",      "response_deadline": "2026-11-16T11:00:00-08:00",      "solicitation_number": "140L3926Q0031",      "place_of_performance": null    },    {      "link": "https://sam.gov/workspace/contract/opp/52157360719345188f4407ea74392ec7/view",      "title": "Janitorial Contract Eagle Pass, TX",      "agency": "DEPT OF DEFENSE",      "office": "W076 ENDIST FT WORTH",      "industry": "Janitorial Services",      "notice_id": "52157360719345188f4407ea74392ec7",      "set_aside": "Small Business Set Aside - Total",      "naics_code": "561720",      "notice_type": "Combined Synopsis/Solicitation",      "posted_date": "2026-10-22",      "response_deadline": "2026-11-05T12:00:00-06:00",      "solicitation_number": "W9126G27QA003",      "place_of_performance": null    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
sam.gov/search_contract_opportunities
Returns
title, agency, office, notice type, dates, place, industry, set-aside, link, ids

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method sam.gov/search_contract_opportunities with the inputs above.

Ask your agent

  • Find active federal solicitations for janitorial services in Texas posted in the last 14 days
  • Show me small business set-aside notices from the Department of Veterans Affairs for medical equipment maintenance
  • Search sources sought notices about cybersecurity consulting for any agency, posted within 60 days, up to 40 results
  • Look up combined synopsis notices in Ohio for HVAC repair with veteran-owned set-aside on SAM.gov
  • Any presolicitation for construction of roads or bridges in TX from the Army Corps of Engineers this month, max 15 results

See more

  • Finds open UK public-sector tender notices on Find a Tender matching keywords, optionally filtered by contract region, estimated value and closing date, newest first.

    find-tender.service.gov.uk/search_tenders
  • Finds U.S. federal grant opportunities by topic, agency, applicant type and status, with funding and eligibility details. Open results exclude opportunities whose closing date has passed.

    grants.gov/search_grants
  • Searches USAspending federal awards by keywords, awarding agency, state of performance and date across contracts, grants, loans and direct payments. Searches from October 1, 2007 onward.

    usaspending.gov/search_federal_awards
  • Searches USAJOBS federal jobs by keywords, location, salary threshold and applicant group, in website relevance order. Salary ranges may start below the threshold; annual pay or remote status is null when the announcement does not state it.

    usajobs.gov/search_jobs
  • Finds published EU contract award notices on Tenders Electronic Daily by contract topic or winning company, newest publication first, optionally limited to a buyer country and a start date. Values and tender counts are included when published; counts across lots are summed.

    ted.europa.eu/search_contract_awards
  • Find Federal Register rules, proposed rules, notices, and presidential documents by topic, agency, publication dates, and comment status. Significant means designated significant by the source; documents without that designation show no.

    federalregister.gov/search_rules
  • Finds recently published EU procurement notices matching what is being bought, with buyer, estimated value, submission deadline and TED notice link. Open-only results must have a future submission deadline.

    ted.europa.eu/search_tenders
  • Returns federal obligations and distinct awards for a company or organization, including its parent and child recipient records. Covers the selected fiscal year or the last five fiscal years.

    usaspending.gov/get_company_federal_awards