# Government Tenders Scraper: SAM.gov, TED & UK Contracts (`steadyscrape/government-tenders-scraper`) Actor

Government tenders and contract opportunities from SAM.gov (US federal), TED (EU) and the UK's Find a Tender and Contracts Finder in one search: buyer, deadline, value, CPV and NAICS codes, set-aside, contact email and phone. Public procurement data. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/government-tenders-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 notice delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Government Tenders Scraper: SAM.gov, TED and UK contract opportunities

**Government Tenders Scraper** finds **government tenders and public contract opportunities** in four official sources at once, newest first: **SAM.gov** (every US federal contract opportunity), **TED – Tenders Electronic Daily** (public procurement of the EU and the EEA), and the UK's **Find a Tender** and **Contracts Finder**. Each notice comes as one clean row with the same columns everywhere: title (and its English translation for TED), buyer and country, publication day, **response deadline**, estimated or awarded value and currency, **CPV, NAICS and PSC codes**, **set-aside**, place of performance, **contact name, email and phone**, awardee, and the official notice link. Filter by keyword, kind of notice (open opportunities, planned notices, awards), buyer country, CPV or NAICS code, set-aside, and publication date. Export to JSON, CSV or Excel, or use it via API.

No login, no API key, no proxy, no browser: SAM.gov is read from its **public daily Contract Opportunities extract**, TED through its **anonymous search API**, and the UK sources through their **OCDS APIs**. Every row names its source and the licence it was published under. This Actor is an independent tool. It is not affiliated with or endorsed by GSA, the Publications Office of the EU or the UK Cabinet Office.

### What can this government tenders scraper do?

- **Find tenders to bid on**: every open solicitation, contract notice and UK tender notice published this week that matches your keywords or codes, with its deadline and the buyer's contact.
- **Monitor SAM.gov contract opportunities** by NAICS code and set-aside (small business, 8(a), HUBZone, SDVOSB, WOSB), with the contracting officer's name, email and phone, without a SAM.gov API key or its daily request cap.
- **Search TED tenders** by CPV code and buyer country across 27 EU countries plus Norway, Iceland, Switzerland and more, matched in TED's full text in every language, with the English title TED writes for each notice.
- **Track awards**: who won which public contract and for how much, in the US, the EU and the UK.
- **Feed a bid pipeline or a CRM**: schedule the Actor daily and send new notices to Google Sheets, Slack or a webhook through Apify integrations.

### How to search government tenders

1. Pick the **sources** (all four by default) and how many days back to read.
2. Choose the **kinds of notice**: open opportunities (the default), planned notices, awards, or other notices.
3. Narrow it down with **keywords**, **buyer countries**, **CPV codes** (EU and UK) or **NAICS codes and set-asides** (US).
4. Run it, then download the dataset as CSV, Excel or JSON, or read it through the API.

A source that cannot answer your filters is not read, and a free row says why: NAICS codes and set-asides exist only on SAM.gov, CPV codes only in Europe, and SAM.gov holds only US buyers.

### Input

```json
{
    "sources": ["sam-gov", "ted", "find-a-tender", "contracts-finder"],
    "noticeKinds": ["opportunity"],
    "keywords": ["cybersecurity", "penetration testing"],
    "postedWithinDays": 7,
    "onlyOpen": true,
    "maxResultsPerSource": 50
}
```

| field | what it does |
|---|---|
| `sources` | `sam-gov`, `ted`, `find-a-tender`, `contracts-finder` |
| `postedWithinDays`, `postedFrom`, `postedTo` | the publication window (up to 365 days) |
| `noticeKinds` | `opportunity`, `planned`, `award`, `other` |
| `keywords` | words or phrases matched from the start of a word in the title or description (TED: its full text in every language) |
| `onlyOpen` | leave out opportunities whose response deadline has passed |
| `countries` | buyer countries as ISO codes (`DE`, `FR`, `US`, `GB`) |
| `cpvCodes` | CPV codes or prefixes (`45000000` construction, `72` IT services) for TED and the UK |
| `naicsCodes`, `setAsides` | NAICS prefixes and set-aside codes for SAM.gov |
| `maxResultsPerSource`, `maxResults` | limits; 0 for none |

### Output example

```json
{
    "rowType": "tender",
    "source": "sam-gov",
    "noticeId": "4c6bc11dd46d475698e7c41798305e8e",
    "referenceNumber": "111326",
    "noticeKind": "opportunity",
    "noticeType": "Combined Synopsis/Solicitation",
    "title": "FCC Yazoo City FY 2027 Q2 Food Service Subsistence Requirements",
    "buyerName": "FCC YAZOO CITY",
    "buyerHierarchy": "JUSTICE, DEPARTMENT OF > FEDERAL PRISON SYSTEM / BUREAU OF PRISONS > FCC YAZOO CITY",
    "buyerCountry": "US",
    "publishedDate": "2026-11-13",
    "responseDeadline": "2026-12-04T18:00:00.000Z",
    "naicsCode": "311999",
    "pscCode": "8945",
    "setAside": "Small Business Set Aside - Total",
    "setAsideCode": "SBA",
    "contactName": "Carlos Tate",
    "contactPhone": "662-716-1020",
    "contactEmail": "c3tate@bop.gov",
    "noticeUrl": "https://sam.gov/opp/4c6bc11dd46d475698e7c41798305e8e/view",
    "license": "US federal government data: public domain (17 U.S.C. § 105)"
}
```

A TED notice carries `title` in its own language and `titleEnglish` ("Poland – Refuse and waste related services – …"), `cpvCodes`, `estimatedValue` with `currency`, and the buyer's email and phone. A UK notice under the Procurement Act 2023 names its form in `noticeType` (`UK4` is a tender notice).

### Output fields

| field | meaning |
|---|---|
| `rowType`, `status` | `tender` and `ok` for a notice; a free status row is described below the table |
| `source`, `sourceName` | where the notice comes from |
| `noticeId`, `referenceNumber` | the source's notice id and the buyer's own reference (solicitation number, procedure id) |
| `noticeKind`, `noticeType` | opportunity, planned, award or other, and the source's own type |
| `title`, `titleEnglish`, `description` | what is being bought |
| `buyerName`, `buyerHierarchy`, `buyerCountry`, `buyerCity`, `buyerWebsite` | who buys |
| `publishedDate`, `publishedAt`, `responseDeadline` | when it was published and when offers are due (UTC) |
| `estimatedValue`, `awardedValue`, `currency`, `awardee`, `awardDate` | the money, and who won |
| `cpvCodes`, `naicsCode`, `pscCode`, `setAside`, `setAsideCode` | classification |
| `contractNature`, `procedureType`, `placeOfPerformance`, `placeOfPerformanceCountry` | what kind of contract and where |
| `contactName`, `contactEmail`, `contactPhone`, `contacts` | the contracting officer or the buyer's contact point |
| `noticeUrl`, `documentsUrl` | the official notice page and the tender documents |
| `license`, `attribution` | the source's licence and the credit it asks for |
| `scrapedAt` | when the row was read (UTC) |

A source with nothing to deliver gets one **free status row** (`rowType: "status"`) that names it in `source` and explains itself in `reason`: `no_results` (no notice passed your filters), `source_unavailable` (the source did not answer), `source_changed` (the source changed its format), `source_skipped` (the source cannot answer your filters, such as NAICS codes on TED), `spending_limit` (your maximum cost per run paid for no notice). Those rows are never charged.

### How much does it cost?

US$0.002 per notice (`tender`). A run that delivers SAM.gov notices also pays US$0.005 once for reading SAM.gov's daily extract (`us-daily-file`); a run without a SAM.gov notice never pays it. Status rows are free. 100 tenders from all four sources cost about US$0.205.

### Limits

- SAM.gov's extract holds the notices that are active; archived ones are not in it. It is rewritten once a day around 04:30 UTC, so a notice posted today appears tomorrow.
- TED publishes on weekdays; its search counts at most a few hundred thousand notices per query, so very wide windows should be split.
- Find a Tender sometimes takes a minute or more to answer one page; the Actor waits up to 4 minutes per page and retries before it gives up with a free row.
- Values are in each notice's own currency; nothing is converted.

### Is it legal to scrape government tenders?

These notices are published by governments so that suppliers can find and reuse them. US federal data is in the public domain; TED's search API is open to "any system or user" for reuse under the EU's open data policy; Find a Tender and Contracts Finder publish under the Open Government Licence v3.0, which asks you to credit the source (`attribution` in each row). SAM.gov's terms forbid scraping its website, so this Actor never touches it: it reads only the public data extract SAM.gov publishes for download. Notices name public officials' work contacts; if you use them for outreach, follow the rules that apply to you (CAN-SPAM, GDPR, PECR).

### Related Actors

- [Building Permits Scraper](https://apify.com/steadyscrape/building-permits-scraper): US building permits with contractor contacts.
- [Business Entity Search](https://apify.com/steadyscrape/business-entity-search): US state business registrations.
- [Companies House Scraper](https://apify.com/steadyscrape/companies-house-scraper): UK companies and their officers.

# Actor input Schema

## `sources` (type: `array`):

The official sources to search, all at once, each one's newest notices first. Every row names its source and licence. <b>SAM.gov</b> is read from its public daily extract (all US federal contract opportunities), <b>TED</b> through its anonymous search API (EU and EEA public procurement), <b>Find a Tender</b> and <b>Contracts Finder</b> through their OCDS APIs (UK).

## `postedWithinDays` (type: `integer`):

Notices published from this many days ago up to today. Ignored when the dates below are set.

## `postedFrom` (type: `string`):

The first publication day, YYYY-MM-DD. Leave empty to count back from the last day.

## `postedTo` (type: `string`):

The last publication day, YYYY-MM-DD. Leave empty for today.

## `noticeKinds` (type: `array`):

<b>Open opportunities</b> are calls to bid (solicitations, contract notices, UK tender notices). <b>Planned</b> are early notices (pre-solicitations, sources sought, prior information, pipeline and planned procurement). <b>Awards</b> name who won and for how much. <b>Other</b> are corrections, modifications, cancellations and justifications. Each row says its kind in <code>noticeKind</code> and the source's own type in <code>noticeType</code>.

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

Only notices whose title or description contains any of these words or phrases, from the start of a word, case and accents aside: <code>cybersecurity</code>, <code>road maintenance</code>, <code>cleaning</code>. TED matches them in its full text in every EU language, translations included. Leave empty for every notice.

## `onlyOpen` (type: `boolean`):

Leave out opportunities and planned notices whose response deadline has passed. Notices without a deadline are kept.

## `countries` (type: `array`):

Only buyers in these countries, as ISO codes: <code>DE</code>, <code>FR</code>, <code>PL</code>, <code>US</code>, <code>GB</code>. A source that holds no buyer there is not read, and a free row says so (SAM.gov is US, Find a Tender and Contracts Finder are GB, TED covers the EU, the EEA and more). Leave empty for every country.

## `cpvCodes` (type: `array`):

Only notices classified under these CPV codes or their sub-codes: <code>45000000</code> (construction work) also matches 45210000; <code>72</code> is all IT services. CPV is used by TED, Find a Tender and Contracts Finder; with CPV codes and no NAICS code, SAM.gov is not read.

## `naicsCodes` (type: `array`):

Only SAM.gov notices under these NAICS codes or their prefixes: <code>541512</code>, <code>2382</code>, <code>54</code>. With NAICS codes or set-asides and no CPV code, the EU and UK sources are not read.

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

Only SAM.gov notices with one of these set-asides (small business, 8(a), HUBZone, SDVOSB, WOSB…).

## `maxResultsPerSource` (type: `integer`):

Stop reading a source after this many notices. 0 for no limit.

## `maxResults` (type: `integer`):

Stop the run after this many notices across every source. 0 for no limit.

## Actor input object example

```json
{
  "sources": [
    "sam-gov",
    "ted",
    "contracts-finder"
  ],
  "postedWithinDays": 7,
  "noticeKinds": [
    "opportunity"
  ],
  "keywords": [],
  "onlyOpen": false,
  "countries": [],
  "cpvCodes": [],
  "naicsCodes": [],
  "setAsides": [],
  "maxResultsPerSource": 3,
  "maxResults": 500
}
```

# Actor output Schema

## `notices` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "sources": [
        "sam-gov",
        "ted",
        "contracts-finder"
    ],
    "postedWithinDays": 7,
    "maxResultsPerSource": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/government-tenders-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 = {
    "sources": [
        "sam-gov",
        "ted",
        "contracts-finder",
    ],
    "postedWithinDays": 7,
    "maxResultsPerSource": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/government-tenders-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 '{
  "sources": [
    "sam-gov",
    "ted",
    "contracts-finder"
  ],
  "postedWithinDays": 7,
  "maxResultsPerSource": 3
}' |
apify call steadyscrape/government-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/government-tenders-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/MuEjJWmHpdZBycqOC/builds/pIAqRQ6U1pvRk8hMb/openapi.json
