# SAM.gov Contract Opportunities Scraper: US Federal Bids (`rowcraft/sam-gov-contract-opportunities-scraper`) Actor

US federal contract opportunities from the official SAM.gov daily extract: solicitations, awards and notices with agency, NAICS, set-aside, deadlines, place of performance and full descriptions. No API key, no contact names, e-mails or phones.

- **URL**: https://apify.com/rowcraft/sam-gov-contract-opportunities-scraper.md
- **Developed by:** [Rowcraft](https://apify.com/rowcraft) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 contract notices

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SAM.gov Contract Opportunities Scraper: US Federal Bids

Get US federal contract opportunities from **SAM.gov**, the government's single place for bids, as clean rows you can filter, schedule and send anywhere. This **SAM.gov contract opportunities scraper** reads the daily data extract that the U.S. General Services Administration (GSA) publishes for exactly this purpose, so it needs no API key, no login and no proxy, and it does not break when a web page changes. Each notice comes back as one flat row: title, solicitation number, agency and office, NAICS and PSC codes, set-aside, response deadline, place of performance, award number, amount and awardee, the full description and the link to the notice on SAM.gov, as JSON, CSV or Excel.

Filter by keywords, NAICS or PSC code, set-aside (small business, 8(a), HUBZone, service-disabled veteran-owned, women-owned), notice type, agency, state, dates and award amount, or look up specific notices by solicitation number. Schedule it with **Only new rows** to get a daily feed of new federal bids for the price of the new rows only.

**Read this first, the limits of the source:** the extract holds about 71,000 notices (the newest posted yesterday, the oldest from 2008) and is refreshed once a day, so today's postings appear tomorrow. It carries the notice text but not the attached documents. It contains the names, e-mail addresses and phone numbers of contracting officers, and this actor removes them on purpose: rows never include them (see Privacy). Everything below is measured on the real file.

![Results of SAM.gov Contract Opportunities Scraper: US Federal Bids in the Apify dataset view](https://api.apify.com/v2/key-value-stores/7hbQFQdGq61v2OZ2h/records/sam-gov-contract-opportunities-scraper-results.png)

### What you get

One row per notice, the same columns for every agency and notice type:

- **Notice:** notice ID, link to the notice on SAM.gov, solicitation number, title, notice type (solicitation, combined synopsis/solicitation, presolicitation, sources sought, special notice, award notice, justification, sale of surplus property, consolidation or bundling), the stage (`planning`, `tender`, `award` or `other`) and the original type before an amendment or award
- **Dates:** posted day and time (US Eastern), response deadline with its time zone and as a plain date, archive type and archive date, and whether the notice is still active
- **Agency:** department, sub-tier agency, contracting office, CGAC, FPDS and AAC codes, organisation type, and the office city, state, ZIP and country
- **Classification:** NAICS code, product and service code (PSC), set-aside code and its name
- **Place of performance:** street, city, state, ZIP and country where the work happens
- **Award:** award number, award date, amount in US dollars and the awardee, where the rules below allow it
- **Text:** the full description as plain text, with HTML removed, special characters repaired and e-mail addresses and phone numbers replaced by `[removed]`, and the additional-information link when the notice has one

41 fields in total, with stable names, numbers as numbers, dates in ISO format and `null` for an empty value.

### Why this actor

- **The official extract, not a web scraper.** GSA publishes the complete file of notices in its data services and the SAM.gov terms name it as the way to get data in bulk. We read that file in one streamed download. Tools that read the internal search behind the website run into the ban on scraping in those terms; this actor never does.
- **No key, no account, no proxy, no CAPTCHA.** The official API needs a personal key, has daily request limits that depend on your account type and costs one more request per notice for the description. The extract has none of those limits and carries the description in every row.
- **Reads only what you ask for.** The file is sorted by posting day, newest first, so a search for the last 7 days stops after about 20 MB of the 210 MB instead of reading it all. The default run takes seconds.
- **Filters that read like the SAM.gov search form:** NAICS and PSC codes as full codes or prefixes (`5415` covers IT services), set-asides by name, notice types, agency words, states, response deadline still open, award amount and award date.
- **Count before you pay.** **Count only** reads the file, tells you how many notices match and what they would cost at your plan, and charges only the start event.
- **Safe by construction.** Ten contact columns of the file are never read, the allowlist of columns means a column that GSA adds tomorrow is ignored until we have judged it, and a changed column layout stops the run with a clear message instead of delivering shifted data.

### How to use it

1. Open the Actor and fill in **Keywords (any of)** (the other fields are optional filters).
2. Set **Maximum notices** to a small number for a first try (the default is a safe start).
3. Optional: tick **Count only** and start once. You get the number of matching rows and the estimated cost, for free (only the start event is charged). Untick it to get the data.
4. Click **Start**. The status line shows progress; the run stops cleanly at your limit or at the charge limit you set in the run options.
5. Open the **Dataset** tab and download JSON, CSV, Excel, XML or HTML, or send the rows to Google Sheets, Slack, Make, n8n or Zapier with the Integrations tab.
6. To run it on a schedule, use **Schedules** in Apify Console and turn on **Only new rows since the last run** below: every run then costs only the new rows, and a webhook URL tells you when something new came in.

### Input

Every field is optional. With nothing filled in you get the notices posted in the last 7 days.

| Field | What it does |
|---|---|
| `keywords`, `excludeKeywords` | Words or phrases searched in the title and description, one per line; whole words, any case, `cyber*` for a prefix; a notice matches when it contains any keyword and none of the excluded ones |
| `naics`, `psc` | NAICS and product and service codes, full or as a prefix: `5415`, `236`, `541330`; `D3`, `R4`, `6515` |
| `setAsides`, `noticeTypes` | Business category (`SBA`, `8A`, `HZC`, `SDVOSBC`, `WOSB` and the others in the form) and type of notice (solicitation, sources sought, award notice and the rest) |
| `agencies`, `states` | Words from the department, sub-tier or office name; US states and territories by code or name |
| `publishedAfter`, `publishedBefore` | Dates: `2026-10-01`, `today`, `yesterday`, `7 days`, `2 weeks`, `3 months`, or `all` for the whole extract; US Eastern days |
| `openOnly`, `awardedAfter`, `minAwardAmount` | Only active notices whose response deadline is today or later; only notices with an award dated on or after a day; minimum award in dollars |
| `solicitationNumbers`, `noticeIds` | Look up specific notices; this searches the whole extract unless you set a date limit |
| `sort`, `maxItems`, `includeDescription` | Newest or oldest first, how many notices (0 = all), description on or off |
| `countOnly`, `onlyNew`, `stateName`, `notifyUrl`, `notifyWhenEmpty` | Count only (deliver nothing); see **Automation** below |

How the filters combine: different filters are combined with AND (a NAICS code and a set-aside and a state), several values of one filter with OR (two NAICS prefixes). The `states` filter uses the place of performance, and when a notice gives none, which is the case for most, the state of the contracting office, so a search for Texas also finds notices issued by Texas offices.

Example: open IT solicitations from the last two weeks that are reserved for small businesses.

```json
{
  "naics": ["5415"],
  "noticeTypes": ["solicitation", "combined-synopsis-solicitation"],
  "setAsides": ["SBA"],
  "openOnly": true,
  "publishedAfter": "2 weeks",
  "maxItems": 200
}
```

Example: award notices above one million dollars from the last month, to see who wins what.

```json
{
  "noticeTypes": ["award-notice"],
  "publishedAfter": "30 days",
  "minAwardAmount": 1000000,
  "maxItems": 500
}
```

### Output

41 fields per row. Empty values are `null`, never missing, so CSV and Excel columns are stable.

| Field | Type | Example |
|---|---|---|
| `id` | string | f50d635e4b9d4404916c47df2357fc66 |
| `url` | string | `https://sam.gov/opp/f50d635e4b9d4404916c47df2357fc66/view` |
| `solicitationNumber` | string | 36C26026Q1017 |
| `title` | string | Admin Management, Data Management, Software Development (Quality As… |
| `noticeType` | string | Combined Synopsis/Solicitation |
| `baseType` | string | Combined Synopsis/Solicitation |
| `stage` | string | tender |
| `postedDate` | string | 2026-10-13 |
| `postedAt` | string | 2026-10-13T18:26:14 |
| `responseDeadline` | string | 2026-11-03T17:00:00-08:00 |
| `responseDeadlineDate` | string | 2026-11-03 |
| `active` | boolean | True |
| `archiveType` | string | auto15 |
| `archiveDate` | string | 2026-11-18 |
| `department` | string | VETERANS AFFAIRS, DEPARTMENT OF |
| `subTier` | string | VETERANS AFFAIRS, DEPARTMENT OF |
| `office` | string | 260-NETWORK CONTRACT OFFICE 20 (36C260) |
| `cgac` | string | 036 |
| `fpdsCode` | string | 3600 |
| `aacCode` | string | 36C260 |
| `organizationType` | string | OFFICE |
| `officeCity` | string | VANCOUVER |
| `officeState` | string | WA |
| `officeZipCode` | string | 98661 |
| `officeCountry` | string | USA |
| `naicsCode` | string | 541519 |
| `pscCode` | string | H979 |
| `setAsideCode` | string | SDVOSBC |
| `setAside` | string | Service-Disabled Veteran-Owned Small Business (SDVOSB) Set-Aside (F… |
| `placeStreet` | string | Wilmington VA Medical Center 1601 Kirkwood Highway |
| `placeCity` | string | 80742 |
| `placeState` | string | OR |
| `placeZipCode` | string | 97239 |
| `placeCountry` | string | USA |
| `awardNumber` | string | N0017316D2009 |
| `awardDate` | string | 2026-09-23 |
| `awardAmount` | number | 60905336.18 |
| `awardee` | string | ANALEX CORPORATION Chantilly VA 20151 USA |
| `awardeeWithheld` | boolean | False |
| `additionalInfoLink` | string | `https://www.example.gov/solicitation` |
| `description` | string | Amendment 0001- Answer Questions submitted from vendors by question… |

#### Example rows

Two real rows from a run (long texts shortened here, complete in the dataset):

```json
[
  {
    "id": "f50d635e4b9d4404916c47df2357fc66",
    "url": "https://sam.gov/opp/f50d635e4b9d4404916c47df2357fc66/view",
    "solicitationNumber": "36C26026Q1017",
    "title": "Admin Management, Data Management, Software Development (Quality Assurance Inspection Software for EMS)",
    "noticeType": "Combined Synopsis/Solicitation",
    "baseType": "Combined Synopsis/Solicitation",
    "stage": "tender",
    "postedDate": "2026-10-13",
    "postedAt": "2026-10-13T18:26:14",
    "responseDeadline": "2026-11-03T17:00:00-08:00",
    "responseDeadlineDate": "2026-11-03",
    "active": true,
    "archiveType": "auto15",
    "archiveDate": "2026-11-18",
    "department": "VETERANS AFFAIRS, DEPARTMENT OF",
    "subTier": "VETERANS AFFAIRS, DEPARTMENT OF",
    "office": "260-NETWORK CONTRACT OFFICE 20 (36C260)",
    "cgac": "036",
    "fpdsCode": "3600",
    "aacCode": "36C260",
    "organizationType": "OFFICE",
    "officeCity": "VANCOUVER",
    "officeState": "WA",
    "officeZipCode": "98661",
    "officeCountry": "USA",
    "naicsCode": "541519",
    "pscCode": "H979",
    "setAsideCode": "SDVOSBC",
    "setAside": "Service-Disabled Veteran-Owned Small Business (SDVOSB) Set-Aside (FAR 19.14)",
    "placeStreet": null,
    "placeCity": null,
    "placeState": "OR",
    "placeZipCode": "97239",
    "placeCountry": "USA",
    "awardNumber": null,
    "awardDate": null,
    "awardAmount": null,
    "awardee": null,
    "awardeeWithheld": false,
    "additionalInfoLink": null,
    "description": "Amendment 0001- Answer Questions submitted from vendors by questions deadline of 10/05/2026 and adding attachment 1 revised RFQ 36C26026Q…"
  },
  {
    "id": "80e2ed9ad22846029666803376c01700",
    "url": "https://sam.gov/opp/80e2ed9ad22846029666803376c01700/view",
    "solicitationNumber": "N0017321F2015",
    "title": "High Assurance Computer Systems Security",
    "noticeType": "Award Notice",
    "baseType": "Special Notice",
    "stage": "award",
    "postedDate": "2026-10-21",
    "postedAt": "2026-10-21T11:32:15",
    "responseDeadline": null,
    "responseDeadlineDate": null,
    "active": true,
    "archiveType": "autocustom",
    "archiveDate": "2026-11-01",
    "department": "DEPT OF DEFENSE",
    "subTier": "DEPT OF THE NAVY",
    "office": "NAVAL RESEARCH LABORATORY",
    "cgac": "017",
    "fpdsCode": "1700",
    "aacCode": "N00173",
    "organizationType": "OFFICE",
    "officeCity": "WASHINGTON",
    "officeState": "DC",
    "officeZipCode": "20375-5328",
    "officeCountry": "USA",
    "naicsCode": "541715",
    "pscCode": "AC33",
    "setAsideCode": "NONE",
    "setAside": "No Set aside used",
    "placeStreet": null,
    "placeCity": "80742",
    "placeState": "DC",
    "placeZipCode": null,
    "placeCountry": "USA",
    "awardNumber": "N0017316D2009",
    "awardDate": "2026-09-23",
    "awardAmount": 60905336.18,
    "awardee": "ANALEX CORPORATION Chantilly VA 20151 USA",
    "awardeeWithheld": false,
    "additionalInfoLink": null,
    "description": "This action is awarded to Analex (dba Arcfield) as a sole source modification to provide continuity or comprehensive scientific, engineer…"
  }
]
```

Results can be downloaded as JSON, CSV, Excel, XML or HTML from the Dataset tab, or read through the Apify API.

![Input form of SAM.gov Contract Opportunities Scraper: US Federal Bids](https://api.apify.com/v2/key-value-stores/7hbQFQdGq61v2OZ2h/records/sam-gov-contract-opportunities-scraper-input.png)

### Pricing

**Pay per result.** You pay for each notice delivered to your dataset, nothing else: no subscription, no minimum, no charge for rows your filters drop or for the requests behind them.

| Your Apify plan | Price per 1,000 rows | Price per row |
|---|---|---|
| Free plan | **$2.00** | $0.002 |
| Starter plan | **$1.80** | $0.0018 |
| Scale plan | **$1.60** | $0.0016 |
| Business plan and above | **$1.40** | $0.0014 |

Example: 1,000 notices cost $2.00 on the Free plan and $1.40 on the Business plan. Platform usage of the run (compute, storage) is included in that price and is not billed to you separately (pay per event: the actor covers it).
A start event of $0.00005 is charged once per run (Apify default).
**Cap your spend:** set *Maximum total charge* in the run options. The actor stops cleanly when the cap is reached and you keep everything delivered until then. The run summary (`RUN_SUMMARY` in the key-value store) says why a run stopped.
**Check before you pay:** turn on **Count only** to see how many rows match and what they would cost at your tier. That run delivers nothing and costs only the start event.

### Automation: only new rows, notifications, schedules

**Only new rows since the last run.** Turn on `onlyNew` and the actor remembers every notice it delivered to you (in a key-value store named `rowcraft-sam-gov-contract-opportunities-scraper-state` in your Apify account). The next run with the same `stateName` skips what you already have and you pay only for new rows. The first run delivers everything that matches. Use a different `stateName` for each schedule or search so they keep separate memories.

**Notification when the run ends.** Put a webhook address in `notifyUrl` and the actor sends one JSON POST with the number of new rows, links to the dataset (JSON and CSV) and the run. It works out of the box with Slack and Discord incoming webhooks (the message is in `text` and `content`), with Make, n8n and Zapier catch hooks, and with your own endpoint. By default it is sent only when there is at least one new row; `notifyWhenEmpty` sends it every time.

**Schedules.** Create a schedule in Apify Console (hourly, daily, weekly or cron) with `onlyNew` on. A daily schedule gives you a feed of new notices for the price of the new rows only.

**Integrations.** Send the results to Make, n8n, Zapier, Google Sheets, Slack, Google Drive, Airtable or any webhooks from the Integrations tab of the Actor, with no code. Apify also offers native actions for Make, n8n and Zapier.

**API, SDKs and AI agents.** Every run is available through the Apify API and the official JavaScript and Python clients; the Actor can also be called by AI agents through the Apify MCP server. The example input in the API tab is a working call.

**Count only.** `countOnly` returns the number of matching notices and the estimated cost without delivering anything, so you can size a job before paying for it.

A typical setup: a schedule every morning after GSA's refresh, your NAICS codes and set-aside in the input, **Only new rows** on, and the webhook of a Slack channel in `notifyUrl`. You see each new federal bid in your channel on the day it appears and pay only for those rows.

### Use cases

- **Bid monitoring for small businesses.** One schedule per NAICS code and set-aside, so new solicitations that you could bid on reach your team the day after they are posted, with the deadline in the row.
- **Subcontracting and teaming leads.** Award notices above a threshold show which companies won large contracts in your field and which agencies buy it; the primes are the partners to approach.
- **Early warning from planning notices.** Sources sought and presolicitation notices are the contracts of next quarter. Filter by agency and keywords to see what a customer is preparing.
- **Market research and pricing.** Count notices by agency, NAICS code and state over months, and compare award amounts for the same kind of work.
- **Consultancies and proposal teams.** A daily export of every solicitation that matches a client's profile, ready for a capture meeting.
- **Data and analytics teams.** A stable schema you can load into a warehouse, with the notice ID as the primary key and the posting date for incremental loads.

Ready-made examples, each with the input filled in (open one and press Start, or save it as your own task):

- [Open federal IT solicitations posted in the last 14 days](https://apify.com/rowcraft/sam-gov-contract-opportunities-scraper/examples/open-it-solicitations-last-14-days)
- [Small business and 8(a) construction bids still open](https://apify.com/rowcraft/sam-gov-contract-opportunities-scraper/examples/small-business-construction-bids)

### What this actor does not do

- Deliver contracting officer names, e-mail addresses or phone numbers. The ten contact columns of the file are never read, on purpose.
- Download the attached documents (solicitation PDFs, statements of work, amendments). The extract does not list them; each row links to the notice page on SAM.gov, where they are.
- Show past notices that are no longer in the extract. The file holds the notices GSA keeps active; expired and deleted notices disappear from it.
- Replace the official API for a single exact lookup you need within minutes of posting: the extract is refreshed once a day.
- Search entity registrations, exclusions or wage determinations. Contract awards already made, with obligations and recipients, are a different data set published on [USAspending](https://www.usaspending.gov/).
- Log in to SAM.gov, call the internal search behind the website, use proxies or solve CAPTCHAs. None of that is needed or done.

### Limits and fair use

- **One download per run.** The actor makes a handful of requests: the robots.txt of the host, the file size and one streamed download. If the connection drops it resumes from the byte where it stopped, at most three times, with a pause between attempts. There is no parallel reading and no repeated passes over the file.
- **Reading time depends on the dates.** The default 7 days is about 6,200 notices and 23 MB. 14 days is about 11,300 notices and 36 MB, 30 days about 22,000 notices and 69 MB. The whole 210 MB file, with **Published after** set to `all`, took about 35 seconds in our measurement and under 140 MB of memory. A search without a date limit is the only slow one; use **Count only** first.
- **Newest first reads a whole day before it delivers,** because the file is ordered by day but not by time inside a day; the notices of that day are then sorted by posting time. **Oldest first** needs the whole date range before the first notice leaves, and without a date limit the whole file. Set **Maximum notices** when you sort oldest first.
- **Freshness.** GSA writes the file once a day. The run summary shows its `Last-Modified` time; if it is older than 48 hours the actor warns you and still delivers what is there.
- **Awardee names are limited by design.** An awardee is delivered only for organisations and only for awards dated 2022-04-04 or later (see Privacy and the FAQ). Everywhere else the field is empty and `awardeeWithheld` says so.
- **Lookups and old dates.** The dates in the default filter cut the read short: searching for a solicitation number from last year needs `publishedAfter` set to `all`, which is the default when you give solicitation numbers or notice IDs and no date.
- **Names inside descriptions can remain.** See Privacy. If you need rows with no free text from the notice at all, switch **Include descriptions** off.

### Data source (and licence)

The data comes from the **Contract Opportunities extract** that GSA publishes through the [SAM.gov data services](https://sam.gov/data-services), a single CSV file of 47 columns that covers the notices SAM.gov keeps active. It is regenerated every day, and the actor reads it with one streamed download and, if needed, ranged requests to resume. A second route to the same file (the download service of SAM.gov, which redirects to the same storage) is used when the first one fails; we tested both.

What we checked before building, so you do not have to:

- **robots.txt.** The file's host (`s3.amazonaws.com/falextracts`) answers 403 to a robots.txt request, which means it publishes no rules; `sam.gov/robots.txt` disallows only template and administration paths (`/core/`, `/profiles/`, `/admin/`, `/search/`, `/user/`) and nothing under `/api/` or `/data-services`; `open.gsa.gov` allows everything. The actor reads robots.txt of the host before every run, records what it found in the `COVERAGE` record of the run and stops if the file is disallowed.
- **Terms of use.** The [SAM.gov terms](https://sam.gov/about/terms-of-use) forbid bots that download restricted or sensitive data and forbid web scraping of the site, and they point to the API and to the data services for automated access to data. This actor only downloads the public extract that the terms name and never touches the website's search.
- **Licence.** The file is a work of the US federal government published as public data; no separate licence text is attached to it. Award notices dated before 2022-04-04 may contain data from Dun & Bradstreet that the terms restrict, which is why the awardee is left out for them. Check the terms yourself if you plan to republish the data as a product; this page is not legal advice.

Data: SAM.gov Contract Opportunities extract, U.S. General Services Administration; independent and not affiliated with or endorsed by the U.S. General Services Administration. Rowcraft does not use the logos of SAM.gov or GSA, and the names belong to their owners. The open API documentation is at [open.gsa.gov](https://open.gsa.gov/api/get-opportunities-public-api/).

### Privacy: no personal data

Rowcraft actors are built not to collect personal data, and the SAM.gov extract is the case where this takes real work, because every notice in it names a contracting officer:

- **Contact columns are never read.** The ten columns with the primary and secondary contact's title, name, e-mail, phone and fax are skipped before the row is built. The row is assembled from an allowlist of columns, so a new column that GSA adds is not delivered until it has been checked.
- **E-mail addresses and phone numbers in free text are replaced by `[removed]`.** In the descriptions of our sample about three in ten contain an e-mail address and about one in eight a phone number, often the officer's own. The actor removes addresses (also written with a space before the domain, or as "name at agency dot gov"), phone numbers in the usual shapes (with or without a label, with an extension, several joined by a slash, international), and bare ten-digit numbers placed next to a removed e-mail address. National stock numbers, clause numbers and part numbers are left alone because they are not phone numbers.
- **Names next to a contact cue are removed.** A name after "point of contact", "POC", "attention" or "Attn", "contact", "questions to", a name written next to a procurement role such as "Contracting Officer" or "Contract Specialist" (before or after the role), a name after a form label such as "Contact Name:", a name placed right before a removed e-mail address or phone number, and the name inside a Department of Defense digital-signature stamp become `[name removed]`. The same cues are applied to the title and to the place-of-performance street, where a delivery contact sometimes appears.
- **Text damage from the extract is repaired.** A stray "Â" left by a lost no-break-space byte is dropped, so descriptions read cleanly.
- **The awardee is a company or it is empty.** The awardee field is free text in the file. The actor delivers it only when the name shows a company form or a business word (Inc, LLC, Corp, Services, Group, Construction and similar) and the award is dated 2022-04-04 or later. A name that looks like a person's, and every older award, give `awardee: null` and `awardeeWithheld: true`.

**What cannot be guaranteed:** a person's name written in the middle of a description without any of those cues (for example "see attachment prepared by John Smith") cannot be recognised by any rule, and some will remain. If that is a problem for your use, switch **Include descriptions** off; titles, agencies, codes and amounts carry the information most users need. You are responsible for using the data in line with the law that applies to you.

### Other Rowcraft actors

All Rowcraft actors read official or public sources, deliver flat rows without personal data and support only-new runs and notifications:

- [Ashby Jobs Scraper – Job Postings with Salary Ranges](https://apify.com/rowcraft/ashby-jobs-scraper) — Job postings from Ashby job boards (jobs.ashbyhq.com) by company: title, department, team, locations with country, employment and workplace type, published salary range, full text.
- [Brazil CNPJ Companies Scraper: Receita Federal Register Data](https://apify.com/rowcraft/brazil-cnpj-companies-scraper) — Company records from the Brazilian CNPJ register for a list of CNPJ numbers or a search by state, city and CNAE activity: legal name, trade name, status, legal nature, capital, address, opening date and size.
- [Broken Link Checker – Find 404s and Dead Links API](https://apify.com/rowcraft/broken-link-checker) — Pay per crawled page, not per link: crawl a site within robots.txt and check every link on each page for 404s, 5xx errors, DNS and TLS failures and redirects.
- [Bulk Image Downloader API: Save Page Images with Sizes](https://apify.com/rowcraft/bulk-image-downloader) — Download the images of any web pages, or direct image links, into a key-value store with width, height, format, size and a download link per file.
- [Career Site Jobs Scraper: Greenhouse, Lever, Ashby, Workday](https://apify.com/rowcraft/career-site-jobs-scraper) — Job listings from the career pages of the companies you choose on Greenhouse, Lever, Ashby, Workday, Workable, Personio, Recruitee, Teamtailor and Gem, in one run and one format: title, locations, department, salary when published, full text.
- [Chrome Web Store Scraper: Users, Ratings & Versions](https://apify.com/rowcraft/chrome-web-store-scraper) — Reads public Chrome Web Store listing pages with no login, no proxy and no personal data: users, rating, category, version, update date, permissions and company developers.
- [Company Register Lookup Europe: Name, ID, Domain or LEI](https://apify.com/rowcraft/company-intelligence-europe) — Look up a European company by name, domain or registry number and get one unified profile from the official registers of France, Norway, Poland, the UK and the LEI index.
- [Domain Email and DNS Checker API: MX, SPF, DMARC, Providers](https://apify.com/rowcraft/domain-email-dns-checker) — Find which email provider, sending services and DNS host each domain uses, from public DNS records only.
- [SIRENE France Company Scraper: SIREN, NAF, Revenue, Status](https://apify.com/rowcraft/france-company-register) — French companies from the official Recherche d'entreprises API (INSEE SIRENE + INPI): SIREN and SIRET, legal form, NAF activity, head-office address, employee band, revenue and net income, labels, creation date and VAT number.
- [France Fuel Prices Scraper – Official Open Data by Station](https://apify.com/rowcraft/france-fuel-prices-scraper) — Current fuel prices at every French station, straight from the official open-data feed (Licence Ouverte 2.0): gazole, SP95, SP98, E10, E85 and GPLc, each with its update time.
- [Gem Jobs Scraper – Job Board Listings from jobs.gem.com](https://apify.com/rowcraft/gem-jobs-scraper) — Job listings from Gem job boards (jobs.gem.com) by company: title, department, offices with country, employment type, remote, hybrid or on-site, requisition ID, publication date and full ad text, from the public Gem Job Board API.
- [Google Autocomplete Suggestions Scraper – Keyword Ideas](https://apify.com/rowcraft/google-autocomplete-suggestions-scraper) — Get Google search suggestions for a list of keywords in bulk: a-z, question and preposition expansion, any language and country.
- [Google Play Apps Scraper: App Details, Installs, Ratings](https://apify.com/rowcraft/google-play-apps-scraper) — Public Google Play app details as flat rows: installs, rating, number of ratings, price, version, last update, minimum Android, ads and in-app purchases.
- [Greenhouse Jobs Scraper – Job Listings by Company Board](https://apify.com/rowcraft/greenhouse-jobs-scraper) — Job listings from Greenhouse job boards by company: title, departments, offices, publication date, full ad text, published pay ranges.
- [Hacker News Scraper API: Top, New, Best, Ask, Show Stories](https://apify.com/rowcraft/hacker-news-scraper) — Read Hacker News stories from the official Firebase API: top, new, best, Ask HN, Show HN and job lists with score, comments, domain and age.
- [Himalayas Jobs Scraper: Remote Jobs API with Salaries](https://apify.com/rowcraft/himalayas-jobs-scraper) — Remote jobs from Himalayas through its public jobs API: title, company, salary range, seniority, categories, the countries and time zones open to candidates, full description and job link.
- [Image to Text OCR API: Extract Text from Images in Bulk](https://apify.com/rowcraft/image-ocr-text-extractor) — Read the text in images given by link or found on web pages, with a local OCR engine and no third-party API.
- [KRS Poland Companies Scraper: Register Data, PKD, Status](https://apify.com/rowcraft/krs-poland-companies) — Polish companies from the official KRS register API of the Ministry of Justice: name, KRS, NIP and REGON numbers, legal form, status, address, PKD activity codes, share capital, branches and registration dates.
- [LEI Records Scraper: Legal Entity Identifier Lookup API](https://apify.com/rowcraft/lei-records-scraper) — Legal Entity Identifier (LEI) records from the Global LEI Index, read through the public GLEIF API: legal name, legal form, register number, addresses, status, renewal date and parent companies.
- [Lever Jobs Scraper – Job Postings from jobs.lever.co](https://apify.com/rowcraft/lever-jobs-scraper) — Job postings from Lever career pages (jobs.lever.co) by company: title, team, department, location, commitment, workplace type, salary range when published, description, requirements and benefits.
- [Lighthouse Website Auditor API: Core Web Vitals, Page Speed](https://apify.com/rowcraft/lighthouse-performance-audit) — Run Lighthouse on any public page and get Performance, Accessibility, Best Practices and SEO scores, lab Core Web Vitals and the biggest savings.
- [Norway Company Register Scraper: Brønnøysund Business Data](https://apify.com/rowcraft/norway-company-register-scraper) — Norwegian companies from the Central Coordinating Register for Legal Entities (Brønnøysund, NLOD open data): organisation number, legal form, industry, employees, share capital, addresses, website, VAT and bankruptcy status.
- [PDF Text Extractor API: Text, Pages and Metadata from PDFs](https://apify.com/rowcraft/pdf-text-extractor) — Get the text of every PDF you link, page by page, with page count, language and word count.
- [Personio Jobs Scraper: Job Listings, Salaries, Departments](https://apify.com/rowcraft/personio-jobs-scraper) — Job ads from any company's Personio careers feed: title, department, office, employment type, schedule, seniority, salary when published, keywords and the full description in the language you choose.
- [Platsbanken Scraper: Sweden Jobs, Employers, Org Numbers](https://apify.com/rowcraft/platsbanken-jobs-scraper) — Every job ad on Platsbanken (Arbetsförmedlingen) from the official JobTech API: headline, employer and organisation number, occupation codes, municipality, coordinates, salary type, deadline and full text.
- [Recruitee Jobs Scraper – Job Listings by Company Career Site](https://apify.com/rowcraft/recruitee-jobs-scraper) — Job listings from Recruitee career sites by company: title, department, locations with country, employment type, remote flag, published salary and full text, one request per company.
- [Remote Jobs Aggregator API: RemoteOK, WeWorkRemotely, Jobicy](https://apify.com/rowcraft/remote-jobs-aggregator) — Remote jobs from RemoteOK, We Work Remotely and Jobicy in one clean list, read from their official feeds and APIs, merged without duplicates.
- [Robots.txt and AI Crawler Access Checker API](https://apify.com/rowcraft/robots-ai-crawler-checker) — Check which AI and search crawlers a website lets in: GPTBot, ClaudeBot, PerplexityBot, Google-Extended and more, read from robots.txt by the RFC 9309 rules.
- [RSS Feed Finder and Reader – Blog and News Article API](https://apify.com/rowcraft/rss-feed-finder-reader) — Find the RSS, Atom and JSON feeds of any website and read their newest articles, from a domain name alone.
- [SEO Audit Tool: Titles, Meta Tags, Headings and Links API](https://apify.com/rowcraft/seo-audit-tool) — Audit the on-page SEO of any list of pages or websites: titles, meta descriptions, headings, canonicals, indexing, links, images and structured data, with a score and the issues found per page.
- [Shopify Products Scraper: Store Catalog Export to JSON, CSV](https://apify.com/rowcraft/shopify-products-scraper) — Products from any Shopify store's public catalog: title, vendor, type, tags, description, variants with price, compare-at price, SKU and stock, images, options, store currency.
- [Sitemap URL Extractor: Every Page with Last-Modified Dates](https://apify.com/rowcraft/sitemap-url-extractor) — Get every page a site lists in its sitemaps, with last-modified dates, from robots.txt through sitemap indexes and .gz files.
- [SSL Certificate and Security Headers Checker API](https://apify.com/rowcraft/ssl-security-headers-checker) — Check the TLS certificate and the HTTP security headers of every domain in one run, with an A+ to F grade and the exact issues to fix.
- [Store Products Scraper – Shopify, WooCommerce, VTEX](https://apify.com/rowcraft/store-products-scraper) — Export the product catalogue of any Shopify, WooCommerce or VTEX store from its public catalogue endpoint: title, brand, prices, discounts, stock, categories, images and links, one row per product, the same columns on every platform.
- [Structured Data Extractor: JSON-LD, Schema.org, Open Graph](https://apify.com/rowcraft/structured-data-extractor) — Pull the schema.org JSON-LD, Microdata, RDFa and Open Graph of any page list into flat rows: types, product price, availability, ratings, organization, breadcrumbs, with validation issues.
- [Teamtailor Jobs Scraper – Career Site Jobs by Company](https://apify.com/rowcraft/teamtailor-jobs-scraper) — Job listings from Teamtailor career sites by company: title, department, role, locations with city and country, remote or hybrid status, publication date and full ad text, from the official job feed.
- [TED Tenders Scraper: EU Public Procurement Notices API](https://apify.com/rowcraft/ted-tenders-scraper) — EU public procurement notices from TED (Tenders Electronic Daily), the official EU tenders portal, through its public Search API: title, buyer, country, CPV codes, values, deadlines, lots and document links.
- [UK Companies House Scraper: Company Search & Profiles API](https://apify.com/rowcraft/uk-companies-house-scraper) — UK companies from the official Companies House API with your free key: search by name, status, type, SIC code, date or location, or look up company numbers.
- [UK Tenders Scraper: Find a Tender + Contracts Finder API](https://apify.com/rowcraft/uk-tenders-scraper) — UK public procurement notices from Find a Tender and Contracts Finder, the official UK government portals, through their open OCDS APIs: title, buyer, region, CPV codes, values, deadlines, notice type and links.
- [Bulk URL Status and Redirect Chain Checker API](https://apify.com/rowcraft/url-status-redirect-checker) — Check the status code, redirect chain, canonical and indexing signals of every URL in a list, with the final destination and a loop flag.
- [Video Frame Extractor: Frames, Scenes, Thumbnails from MP4](https://apify.com/rowcraft/video-frame-extractor) — Extract JPG, PNG or WebP frames from direct video links (MP4, WebM, MOV, MKV, OGV): evenly spaced, every N seconds, at exact times or at scene changes.
- [VTEX Products Scraper – Public Catalog Export](https://apify.com/rowcraft/vtex-products-scraper) — Export the catalogue of any VTEX store (Auchan, Chedraui and thousands of retailers in Europe and Latin America) from its public search endpoint: title, brand, EAN, prices, list prices, stock, categories, specifications and images, one row per product.
- [Website Intelligence API: Tech, Social, SSL, DNS Profile](https://apify.com/rowcraft/website-intelligence-profiler) — One row per domain with the whole website profile: technologies, social profile links, logo and brand assets, SSL expiry, DNS and mail providers, sitemap size, robots.txt and llms.txt.
- [Website to Markdown Converter API: Text for LLMs and RAG](https://apify.com/rowcraft/website-markdown-extractor) — Turn a list of web page addresses into clean Markdown and plain text for LLMs and RAG: the main content only, with headings, links, images and tables.
- [Website Screenshot API: Full-Page PNG, JPEG and PDF Captures](https://apify.com/rowcraft/website-screenshot-api) — Capture full-page or viewport screenshots of any public web page as PNG, JPEG or WebP, with an optional A4 PDF.
- [Website Social Links Finder: Company Profiles API](https://apify.com/rowcraft/website-social-links-finder) — Get the official social media profiles of any company website: LinkedIn page, Facebook, Instagram, X, YouTube, TikTok and more, plus logo, favicon and share image.
- [Website Tech Stack Detector – Technology Lookup API](https://apify.com/rowcraft/website-tech-stack-detector) — Find the technologies behind a list of websites: CMS, e-commerce platform, analytics, tag managers, ad pixels, consent tools, chat, CDN and payments, from one polite home-page request per domain.
- [WooCommerce Products Scraper – Store API Export](https://apify.com/rowcraft/woocommerce-products-scraper) — Export every product of a WooCommerce store through its public Store API: title, SKU, prices and sale prices, stock, categories, tags, attributes, ratings, images and links, one row per product.
- [Workable Jobs Scraper: Job Listings from Career Pages](https://apify.com/rowcraft/workable-jobs-scraper) — Job listings from any company's Workable career page: title, department, location, remote or on-site, employment type, description, requirements, benefits and salary when published.
- [Workday Jobs Scraper – Jobs from myworkdayjobs.com Sites](https://apify.com/rowcraft/workday-jobs-scraper) — Job listings from Workday career sites (myworkdayjobs.com) by company: title, locations, country, posting date, time type, requisition ID and the full description.

### FAQ

**Which notices are in the data?** The notices of the SAM.gov Contract Opportunities extract: solicitations, combined synopsis/solicitations, presolicitations, sources sought, special notices, award notices, justifications, sales of surplus property and bundling notices from all federal agencies, about 71,000 of them at the time of writing. Notices that GSA removes from the extract are not included.

**Is scraping SAM.gov allowed?** The terms of SAM.gov prohibit web scraping of the site and bots that copy restricted data, and they name the data services and the API as the way to get data in bulk. This actor does not scrape the site: it downloads the public extract from the data services, one file per run, and respects robots.txt. See Data source for what we checked. This is not legal advice.

**How fresh is the data?** GSA regenerates the file once a day, in the early hours GMT. A notice posted on Tuesday appears in Wednesday's file. The run summary has `sourceLastModified`, the time of the file, and `sourceAgeHours`; when the file is older than 48 hours the actor adds a warning and still delivers.

**What is the difference from the official SAM.gov API?** The API needs a personal key, has daily request limits that depend on your account type, returns at most 1,000 notices per request, needs a date range of at most a year and gives the description only as a link that costs another request. It also returns the contact details that this actor never delivers. The extract has no key and no daily quota and contains the description in every row. What the extract lacks is the list of attached documents and notices that GSA has already removed.

**Why are there no contact e-mails or phone numbers?** Because they belong to named officials, and Rowcraft does not deliver personal data. If your goal is to reach the contracting office, the notice page on SAM.gov (the `url` of each row) shows the contact officer's details, and the `office`, `aacCode` and `subTier` fields identify the buying office.

**Why is my result empty or smaller than expected?** First, check the dates: the default is the last 7 days, so older notices need `publishedAfter` set to a date or to `all`. Second, every filter narrows the result; a set-aside plus a NAICS code plus a state can have no match in a week. Third, **Only notices still open** drops award notices and others without a deadline. Fourth, with **Only new rows** on, notices you already received are skipped. The run summary lists the part of the file that was read (`readOrder`), how many rows were read and matched, and a warning that names the likely reason.

**How do NAICS and PSC codes work here?** A code or a prefix covers everything below it: `5415` is all computer systems design services, `541512` the exact code, `236` all building construction. PSC works the same way: `D3` is IT and telecom services, `6515` medical and surgical instruments. Several codes are alternatives.

**What are the set-aside codes?** The code says which business category the notice is reserved for: `SBA` small business, `8A` the 8(a) programme, `HZC` HUBZone, `SDVOSBC` service-disabled veteran-owned, `WOSB` and `EDWOSB` women-owned, `VSA` veteran-owned (VA), `NONE` no set-aside. Choose several to get any of them. Each row has the code and the full name.

**How do I find one specific notice?** Put its solicitation number (for example `W912DY26R0001`) in `solicitationNumbers`, or its 32-character notice ID in `noticeIds`. Without a date limit the whole file is searched, which takes under a minute. Numbers that are not in the file are listed in the run summary and are not charged.

**What does the response deadline in the row mean?** `responseDeadline` is the deadline as written in the notice, with its time zone offset; `responseDeadlineDate` is the same day as a plain date, for filters and sorting. Awards and many special notices have none.

**How do I get the results into Slack, Google Sheets, Make, n8n or Zapier?** Use the Integrations tab of the Actor for the data, and the `notifyUrl` field for a message when a run ends (Slack and Discord webhooks work directly; catch hooks of Make, n8n and Zapier too).

**Can I call it from code or from an AI agent?** Yes: through the Apify API, the JavaScript and Python clients, and the Apify MCP server. The API tab shows a working example with the input of this Actor.

**Is it legal to use this data?** The actor reads the official API described in the Data source section and delivers procurement notice data without personal data. The licence of the source is described above. How you use the data is your responsibility under the law that applies to you.

**Does it collect personal data?** No. Contact persons, e-mails and phone numbers are removed and fields about people are never requested. See the Privacy section.

**The run finished with 0 rows. Did I pay?** No: with no rows delivered nothing is charged apart from the start event. Check the run summary (`RUN_SUMMARY`) for warnings, widen the filters, or run with **Only new rows** off if everything matching was already delivered to you.

### Support and reviews

**Problems, missing fields, questions:** open an issue on the **Issues** tab of this Actor. We answer within one working day and fix confirmed bugs in the next release; the changelog lists every change.

If this Actor saved you time, a short review on its page helps other users find it and helps us keep improving it.

# Changelog

This Actor's version history is a separate document: https://apify.com/rowcraft/sam-gov-contract-opportunities-scraper/changelog.md

# Actor input Schema

## `keywords` (type: `array`):

Words or phrases searched in the title and the description, one per line. A notice matches when it contains at least one. Whole words, any case; end a word with \* for a prefix (cyber\* finds cybersecurity).

## `excludeKeywords` (type: `array`):

Skip notices whose title or description contains any of these words or phrases, one per line.

## `naics` (type: `array`):

North American Industry Classification codes, one per line, as a full code or a prefix: 5415 (IT services), 236 (building construction), 541330 (engineering services). A prefix matches everything below it.

## `psc` (type: `array`):

Federal product and service codes, one per line, as a full code or a prefix: D3 (IT and telecom services), R4 (professional services), 6515 (medical supplies).

## `setAsides` (type: `array`):

Keep only notices reserved for a business category, for example small business, 8(a), HUBZone, service-disabled veteran-owned or women-owned. Empty = all notices, reserved or not.

## `noticeTypes` (type: `array`):

Which kind of notice: open solicitations, planning notices (presolicitations, sources sought), award notices and others. Empty = all types.

## `publishedAfter` (type: `string`):

Only notices posted on or after this day (US Eastern time). A date (2026-10-01), today, yesterday, a relative value such as 7 days, 2 weeks, 3 months, or all for the whole extract. Empty = 7 days. Reading stops at this day, so short periods are fast.

## `publishedBefore` (type: `string`):

Only notices posted on or before this day (2026-10-07).

## `openOnly` (type: `boolean`):

Keep only active notices with a response deadline of today or later. Notices without a deadline (awards, many special notices) are dropped.

## `awardedAfter` (type: `string`):

Only notices that carry an award dated on or after this day: a date, a relative value such as 30 days, or today. Combine with the Award notice type to list recent awards.

## `minAwardAmount` (type: `integer`):

Keep notices whose award amount is at least this many dollars. Only notices with an award amount can match.

## `agencies` (type: `array`):

Words from the name of the department, sub-tier agency or contracting office, one per line: Veterans Affairs, Army, Corps of Engineers, GSA. A notice matches when any of them appears.

## `states` (type: `array`):

Two-letter codes or names of US states and territories, one per line. Matches the place of performance; when a notice gives none (most do not), the state of the contracting office.

## `solicitationNumbers` (type: `array`):

Look up notices by solicitation number (for example W912DY26R0001), one per line. Set Published after to all to search the whole extract.

## `noticeIds` (type: `array`):

Look up notices by their 32-character SAM.gov notice ID (the id column of an earlier run), one per line. Set Published after to all to search the whole extract.

## `sort` (type: `string`):

Newest first reads the extract from the top and stops early. Oldest first needs the whole period before the first notice is delivered (and, without a date limit, the whole 210 MB file).

## `maxItems` (type: `integer`):

Stop after this many notices. 0 = all matching notices (set a charge cap for a first try).

## `includeDescription` (type: `boolean`):

The full text of the notice, with e-mail addresses and phone numbers removed. Switch off for smaller rows.

## `countOnly` (type: `boolean`):

Only count how many rows match your filters and estimate the cost at your price tier. Nothing is delivered and nothing is charged apart from the start event. Turn it off to get the data.

## `onlyNew` (type: `boolean`):

Remember the rows already delivered to you (in a key-value store in your Apify account) and deliver only rows that appeared since the last run with the same state key. The first run delivers everything that matches; later runs cost only the new rows. Ideal for schedules.

## `stateName` (type: `string`):

Name of the memory used by "Only new rows". Use a different name for each schedule or search (for example `stockholm-python`) so they do not share one memory.

## `notifyUrl` (type: `string`):

A webhook address that receives one JSON POST with the number of new rows and links to the dataset: a Slack or Discord incoming webhook, a Make, n8n or Zapier catch hook, or your own endpoint. The message is also in the `text` (Slack) and `content` (Discord) fields.

## `notifyWhenEmpty` (type: `boolean`):

By default the notification is sent only when at least one row was delivered.

## `requestIntervalMs` (type: `integer`):

Default 1000 ms. A run makes only a few requests (robots.txt, file size, one streamed download), so this matters only when a dropped connection is resumed. Minimum 500.

## Actor input object example

```json
{
  "naics": [
    "5415"
  ],
  "publishedAfter": "7 days",
  "openOnly": false,
  "sort": "newest",
  "maxItems": 50,
  "includeDescription": true,
  "countOnly": false,
  "onlyNew": false,
  "stateName": "default",
  "notifyWhenEmpty": false,
  "requestIntervalMs": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

All delivered rows in the default dataset (JSON, CSV, Excel and other formats via the dataset API).

## `runSummary` (type: `string`):

Counts, warnings and why the run stopped (RUN_SUMMARY record in the default key-value store).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "naics": [
        "5415"
    ],
    "publishedAfter": "7 days",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowcraft/sam-gov-contract-opportunities-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "naics": ["5415"],
    "publishedAfter": "7 days",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("rowcraft/sam-gov-contract-opportunities-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "naics": [
    "5415"
  ],
  "publishedAfter": "7 days",
  "maxItems": 50
}' |
apify call rowcraft/sam-gov-contract-opportunities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rowcraft/sam-gov-contract-opportunities-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5uoRa0zex95JOhYlI/builds/Ya8ogJisbEKuwfz0J/openapi.json
