# Government Tenders Scraper: SAM.gov, TED EU, UK & World Bank (`pikoulas/government-tenders`) Actor

US, EU, UK and World Bank public tenders in one search and one item shape: SAM.gov, TED, Find a Tender, Contracts Finder and World Bank-financed projects by keyword, CPV or NAICS code, country or stage. Buyers, deadlines, values, winners, documents, and new tender alerts.

- **URL**: https://apify.com/pikoulas/government-tenders.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (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 $3.00 / 1,000 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

## Government Tenders Scraper: SAM.gov, TED EU, UK & World Bank

Public tenders from the US, the EU, the UK and World Bank-financed projects in one search and one
table, without an account or an API key:

- **Five sources at once:** SAM.gov (US federal contract opportunities), TED (the EU's procurement
  journal: every EU country, Norway, Switzerland and more), the UK's Find a Tender and Contracts
  Finder, and the World Bank's procurement notices (bids and expressions of interest for the
  projects it finances in some 150 countries), read side by side.
- **One shape:** the same fields for every notice, whichever source it's from: title, description,
  stage, buyer with its country, city, email and phone, published date, deadline, place of
  performance, CPV or NAICS and PSC codes, set-aside, estimated and awarded value with currency,
  winners, lots and links to submit and to its documents. What only one source has stays in
  `sourceFields`.
- **Filters that work on all of them:** keywords, buyer countries, stage (planning, open tender,
  award), published within days, only those still open for bids; and each source's own codes: CPV
  for TED and the UK, NAICS, PSC and small-business set-asides for SAM.gov.
- **No repeats:** a notice Find a Tender and Contracts Finder both carry is given once, and a SAM.gov
  solicitation once however often it was amended, at its newest.
- **New tender alerts:** with **Only new notices** on, a scheduled run gives, and charges for, only
  the notices no earlier run gave.

Everything the first four published in a day, about 9,000 notices, took three minutes; a week of the UK's
notices about six, at the pace its services allow. It costs **$3 per 1,000 notices**.

### What people use it for

- **Bid alerts:** every new tender for your services in the countries you sell to, each morning,
  to a sheet, Slack or your CRM through Make, Zapier or n8n.
- **Business development:** open tenders with their deadlines, values and buyers' contacts in one
  table, US federal, European and World Bank-financed together.
- **Competitor and market research:** award notices with who won, for how much, from which buyer.
- **Lead lists:** the public bodies buying under a code, with their emails and websites.

### How to search government tenders

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter **Keywords**, and narrow by **Buyer countries**, **Stages** or codes if you like.
3. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through
   the API.

For alerts, turn on **Only new notices**, give the search a **Memory name**, and schedule the run
daily (Apify's **Schedules**) with **Published within (days)** at 2, a day's overlap. The first run
gives every notice that matches; the next ones only what's new since.

```json
{
  "keywords": ["cybersecurity", "cloud services"],
  "countries": ["US", "DE", "FR", "GB"],
  "stages": ["tender"],
  "publishedWithinDays": 7,
  "hidePassedDeadlines": true,
  "maxResultsPerSource": 0,
  "onlyNew": true,
  "memory": "cyber-bids"
}
```

Filters combine, and the values within one are alternatives. Keywords are matched in a notice's title
and description, and on TED in its full text in any language. A filter only some sources have leaves
the others out: **Buyer countries** US reads only SAM.gov, GB only the UK's two, a European country
TED and a World Bank borrower the World Bank (Poland or Türkiye both); CPV codes alone leave SAM.gov
out, NAICS or PSC codes or set-asides alone read only SAM.gov, and CPV with NAICS codes reads all but
the World Bank, each by its own codes. The World Bank has no codes and gives no awards here, so any
code, or **Stages** award alone, leaves it out.

### Output

```json
{
  "source": "TED",
  "noticeId": "810914-2026",
  "url": "https://ted.europa.eu/en/notice/-/detail/810914-2026",
  "title": "Spain – Repair and maintenance services of building installations – Servicio Mantenimiento Integral en Atención Primaria Mallorca",
  "description": "Servicio de mantenimiento integral de los centros de salud y unidades básicas ...",
  "stage": "tender",
  "noticeType": "cn-standard",
  "procedure": "open",
  "category": "services",
  "publishedDate": "2026-11-20",
  "deadline": "2026-12-18T23:59:00+01:00",
  "buyerName": "Servicio de Salud de las Illes Balears",
  "buyerCountry": "ESP",
  "buyerCity": "Palma",
  "buyerContact": "Servicio de Salud de las Illes Balears",
  "buyerEmail": "departamentocontratacion@ibsalut.es",
  "buyerPhone": null,
  "buyerWebsite": "http://www.ibsalut.es",
  "placeOfPerformance": ["ES532", "ESP"],
  "cpvCodes": ["50700000", "50000000", "51000000"],
  "naicsCode": null,
  "pscCode": null,
  "setAside": null,
  "value": 8139971.72,
  "awardedValue": null,
  "currency": "EUR",
  "suppliers": [],
  "awardDate": null,
  "lots": 1,
  "submissionUrl": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=dAbf9fR3T6DVGIpKDxgsAQ%3D%3D",
  "documents": ["https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=dAbf9fR3T6DVGIpKDxgsAQ%3D%3D", "https://ted.europa.eu/en/notice/810914-2026/pdf"],
  "sourceFields": {"originalTitle": "Servicio Mantenimiento Integral en Atención Primaria Mallorca", "mainCpvCode": "50700000", "officialLanguages": ["SPA"]}
}
```

- `stage` is `planning` (prior information, presolicitations, sources sought), `tender` (open
  for bids) or `award`; null for notices of sale and contract changes, which come only without a
  **Stages** filter.
- `noticeType` is the source's own: SAM.gov's notice type, TED's form code (`cn-standard` a
  contract notice, `can-standard` an award), the UK's release tags, the World Bank's notice type
  (Invitation for Bids, Request for Expression of Interest; a General Procurement Notice is a
  borrower's plan, so `planning`).
- `buyerCountry` is a three-letter code (USA, GBR, DEU). On SAM.gov the buyer is the contracting
  office, with the contracting officer as its contact; on the World Bank the borrower's implementing
  agency, its project's country the place of performance.
- `value` is the estimate in `currency`; `awardedValue` what an award notice gives as awarded.
- `sourceFields` keeps what one source alone has: SAM.gov's department, sub-tier, solicitation
  number and archive date; TED's original-language title; the UK's contract dates, postcode and
  whether a notice suits small businesses; the World Bank's project id and name, reference and the
  buyer's address.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~government-tenders/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["software"], "publishedWithinDays": 1}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/government-tenders`.

### How much does it cost to get government tenders?

You pay **$0.003 per notice**, which is $3 per 1,000 notices, on Apify's paid plans, and $4 per
1,000 on the free plan. There are no monthly fees, and a run that finds nothing costs nothing; with
**Only new notices**, nothing is charged for a notice an earlier run gave. Set a spending limit on a
run and it stops there with what it has.

### Good to know

- SAM.gov is read from the file it publishes each day about 04:30 UTC, with its active notices:
  a notice posted since comes in the next day's run, and archived ones aren't in it.
- The UK's two services allow about one request every 10 seconds, 100 notices each, and filter by
  date only, so a keyword search reads every UK notice in the window: a week takes some minutes.
- Find a Tender and Contracts Finder give each update of a notice (an amendment, an award) as a
  notice of its own.
- **Max notices per source** caps each source, newest first; 0 for all that match.
- Each source is read from one address at a steady pace, under its `robots.txt`. If one refuses or
  asks to slow down for longer than a short wait, that source stops and the others go on; the log
  says so.

### FAQ

#### Where does the data come from?

From each source's own open data, not their websites:

- **SAM.gov:** the Contract Opportunities extract SAM.gov publishes for anyone to download. [SAM.gov's
  terms of use](https://sam.gov/content/about/terms-of-use) offer its data through APIs and extracts
  and prohibit web scraping; this Actor reads the extract. Most of it is the work of federal
  employees and in the public domain in the US.
- **TED:** the Search API the EU's Publications Office offers anonymously. [TED's legal
  notice](https://ted.europa.eu/en/legal-notice) says the notices "can be freely reused, for
  commercial or non-commercial purposes". A winner who is a private person isn't named.
- **Find a Tender and Contracts Finder:** their open data feeds, which the Cabinet Office publishes
  under the Open Government Licence. The licence doesn't cover personal data: buyers' contact names
  are left out, their emails and phones kept as the contact for bidders.
- **World Bank:** its procurement notices API, published as the [Procurement Notice
  dataset](https://datacatalog.worldbank.org/search/dataset/0037776/procurement-notice) under the
  [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) licence, which
  allows commercial use with attribution: the source is the World Bank, and each notice's `url` links
  it. Contract awards are left out, as their bidders include individual consultants.

Your use of the data is your own responsibility; buyers' contacts are personal data under laws such
as the GDPR where they name a person. If you're unsure, ask a lawyer. This Actor isn't affiliated
with or endorsed by SAM.gov, the General Services Administration, the EU's Publications Office,
the Cabinet Office or the World Bank Group.

Source: TED (ted.europa.eu), © European Union, reused under Commission Decision 2011/833/EU. Find a
Tender and Contracts Finder (Cabinet Office): contains public sector information licensed under the
[Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field or a
country's tenders you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

#### Just one source?

Each has an Actor of its own, with more of its filters: [SAM.gov](https://apify.com/pikoulas/sam-gov)
(agencies, states, every contact), [TED EU tenders](https://apify.com/pikoulas/ted-tenders) (TED's
expert queries, dates), [UK tenders](https://apify.com/pikoulas/uk-tenders) (regions, values) and
[World Bank tenders](https://apify.com/pikoulas/world-bank-tenders) (categories, any start date).

# Actor input Schema

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

Words or phrases in the notice's title or description (TED: its full text, in any language): cybersecurity, cloud services, cleaning. A notice with any of them is kept; leave empty for all.

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

Two- or three-letter codes: US reads SAM.gov, GB Find a Tender and Contracts Finder, a European country TED (DE, FRA, PL), a World Bank borrower the World Bank (KE, IND, BR). Empty for all.

## `stages` (type: `array`):

Empty for all, notices of sale and contract changes too.

## `publishedWithinDays` (type: `integer`):

Only notices published in the last this many days; 1 for a daily schedule. 0 for no limit (SAM.gov keeps only active notices; the UK feeds go back 10 years, read until the limit below).

## `hidePassedDeadlines` (type: `boolean`):

Leave out notices whose response deadline has passed. Those without a deadline are kept.

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

Common Procurement Vocabulary codes, each with everything under it: 72 (IT services), 7221, 45000000-7. With CPV codes and no NAICS or PSC code, SAM.gov isn't read; with any code, the World Bank isn't.

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

Each with everything under it: 5415 (computer systems design), 541512. With NAICS or PSC codes and no CPV code, only SAM.gov is read.

## `pscCodes` (type: `array`):

Product and Service Codes, each with everything under it: D3 (IT services), R425.

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

Small-business set-asides: SAM.gov only, so with one the other sources aren't read.

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

Empty for all five.

## `language` (type: `string`):

TED's titles, descriptions and buyers' names in this language where the notice has it; otherwise English, then the notice's own.

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

Newest first; 0 for all that match.

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

Give, and charge for, only the notices no earlier run with the same memory gave. Schedule it daily for new tender alerts.

## `memory` (type: `string`):

One per alert, so two schedules don't share a memory. Kept in your account's key-value store government-tenders-memory for 90 days.

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "publishedWithinDays": 7,
  "hidePassedDeadlines": false,
  "language": "eng",
  "maxResultsPerSource": 20,
  "onlyNew": false,
  "memory": "default"
}
```

# Actor output Schema

## `overview` (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 = {
    "keywords": [
        "software"
    ],
    "maxResultsPerSource": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/government-tenders").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 = {
    "keywords": ["software"],
    "maxResultsPerSource": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/government-tenders").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 '{
  "keywords": [
    "software"
  ],
  "maxResultsPerSource": 20
}' |
apify call pikoulas/government-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pikoulas/government-tenders"
        }
    }
}
```

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/duki8xGDugBhxkfXH/builds/BdUoeQGMo9PB8mHpQ/openapi.json
