# OCDS Tenders Scraper: Global Open Contracting Data to Excel (`tenderfeed/ocds-registry-tenders`) Actor

Export public contracting processes from the Open Contracting Partnership Data Registry (official OCDS JSONL bulk downloads, 130+ publishers, no API key). Filter by country, publisher, keyword, stage, status, buyer and dates. Default: newest open tenders from the last 7 days. Excel, CSV, JSON.

- **URL**: https://apify.com/tenderfeed/ocds-registry-tenders.md
- **Developed by:** [TenderFeed](https://apify.com/tenderfeed) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

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

## OCDS Tenders Scraper: Global Open Contracting Data to Excel

**Export public contracting processes from the Open Contracting Partnership Data Registry to Excel, CSV or JSON, with no API key.** The [OCP Data Registry](https://data.open-contracting.org/) collects official [OCDS](https://standard.open-contracting.org/) publications from 130+ publishers in about 70 countries and republishes them as compiled releases (one contracting process per line). This Actor reads the registry's public metadata list and streams the official yearly JSONL bulk downloads. It returns one clean row per process: title, buyer, country, stage, status, procedure, classification codes, publication date, deadline, estimated value and source links.

Built by **TenderFeed** ([apify.com/tenderfeed](https://apify.com/tenderfeed)). No login, no browser, no HTML scraping.

### Official sources

- Metadata (all publications): `GET https://data.open-contracting.org/publications.json`
- Yearly compiled releases: `GET https://data.open-contracting.org/en/publication/{id}/download?name={year}.jsonl.gz`
- Dataset page (licence, coverage, attribution): `https://data.open-contracting.org/en/publication/{id}`

The registry website allows automated access (`robots.txt` is `Allow: /`). Downloads are the files the registry itself offers for reuse. Each publisher states its own licence on its dataset page (many are attribution-only open licences such as the UK Open Government Licence). Cite the original publisher and the registry; TenderFeed is not affiliated with or endorsed by the Open Contracting Partnership or any publisher.

This is a **bulk compiled-release** source, not a live notice board. The registry retrieves many datasets monthly and a few weekly (for example UK Find a Tender is retrieved weekly; several African and Latin American portals monthly). A default run therefore looks at the most recently updated publications whose year files stay under the size cap.

### What can you do with it?

- **Cross-country opportunity alerts** where a dedicated national API is not available, or when you want one schema across many publishers.
- **Market intelligence** (set `stages` to include `award` / `contract`) for suppliers, journalists and researchers.
- **Bid consultancies**: feed a CRM or spreadsheet with new compiled tenders from selected countries.
- **AI agents**: use it as an **MCP tool** (Apify MCP server) and ask *"Which open works tenders in Liberia or Kenya close this month?"*

Dedicated TenderFeed Actors already cover some of the same countries with faster, live sources (UK Find a Tender, Germany, Kenya PPIP, and others). Use those when you only need one country in near real time; use this Actor when you want the registry's multi-country OCDS dump.

### Input example

```json
{
  "countries": ["United Kingdom", "Liberia", "Kenya"],
  "keywords": ["water", "software"],
  "publishedFrom": "7 days",
  "onlyOpen": true,
  "maxResults": 50
}
```

- `keywords` match title, description, OCID and buyer name (`keywordMode`: any / all).
- `countries`: names or ISO codes (`"GB"`, `"United Kingdom"`, `"Kenya"`).
- `publicationIds`: registry ids from the dataset URL (e.g. `41` = UK Find a Tender, `156` = Liberia PPCC, `128` = UK Contracts Finder, `147` = Kenya PPRA).
- `publishers`: contains-match on the registry title or `source_id`.
- `stages`: `tender` (default), `planning`, `award`, `contract`.
- `contractTypes`: `goods`, `works`, `services`. `procurementMethods` matches OCDS `open` / `selective` / `limited` / `direct` or the local method name.
- `publishedFrom` / `publishedTo`: `YYYY-MM-DD` or relative (`"7 days"`, `"2 weeks"`). Default published-from is the last 7 days.
- `onlyOpen` (on by default): active tenders whose `tenderPeriod.endDate` is today or later.
- `maxFileMb` (default 250): skip a yearly `.jsonl.gz` larger than this unless you listed it in `publicationIds`. The default reads the large active feeds such as Ecuador SERCOP (~134 MB), Germany BMI (~120 MB) and UK Find a Tender, and skips only the very largest files such as Guatemala (~360 MB) and Greece Diavgis (~258 MB). Records are pre-filtered by publication date before parsing, so a default 7-day run stays fast at 512 MB memory.

Default run: open opportunity notices from the last 7 days, newest first, 50 results, contacts off.

### Output example

```json
{
  "source": "ocds-registry",
  "sourceId": "ocds-dwjm7l-290692-2026-11-01T00:11:01Z",
  "ocid": "ocds-dwjm7l-290692",
  "url": "https://data.open-contracting.org/en/publication/156",
  "title": "REHABILITATION OF ROADS AND BRIDGES",
  "status": "active",
  "procedureType": "National Open Competitive Bidding (NOB)",
  "contractType": "works",
  "buyerName": "NIMBA COUNTY ADMINISTRATION",
  "buyerCountry": "LR",
  "country": "LR",
  "publishedAt": "2026-11-01T00:11:01Z",
  "deadline": "2026-11-16T12:00:00Z",
  "valueAmount": 1000000,
  "valueCurrency": "USD",
  "publicationId": 156,
  "publisherTitle": "Public Procurement and Concessions Commission (PPCC)"
}
```

Other fields: `noticeType`, `deadlineAt`, `estimatedValue`, `currency`, `cpvCodes` / `naicsCodes` / `otherClassificationCodes`, `cpvOrNaics`, `documentsUrl`, `awardees`, `awardedValue`, `tenderRef`, `procurementMethod`, `publicationUrl`, `sourceUrl`, `stage`. Schema 1.2 aliases (`country`, `deadline`, `valueAmount`, `valueCurrency`, `cpvOrNaics`) are filled automatically.

The data follows the same normalized schema as our other TenderFeed Actors ([EU TED](https://apify.com/tenderfeed/ted-eu-tenders), [SAM.gov](https://apify.com/tenderfeed/sam-gov-opportunities), [Kenya PPIP](https://apify.com/tenderfeed/kenya-ppip-tenders)).

### Daily alerts ("only new" monitoring mode)

Turn on `onlyNew`, set a `monitoringId` (for example `"ocds-water"`) and schedule the Actor. Each run returns, and charges for, only processes you have not received yet.

### Personal data

Many OCDS contact points are named individuals (name, email, phone on `parties[].contactPoint`). **Buyer contacts are off by default**; turn on `includeBuyerContacts` to add `buyerContactName` / `Email` / `Phone`. Organisation names, cities and countries are always kept.

### Volume and freshness (measured 2026-11-08)

The registry listed **136 publications** (93 not frozen). Publications with `date_to` in November 2026 included UK Find a Tender, UK Contracts Finder, Germany BMI, Greece Diavgis, Guatemala, Québec, and Liberia PPCC. Yearly compressed file sizes vary from under 1 MB (Liberia, Taiwan, Nigeria BPP) to tens of megabytes (UK Find a Tender 2026: 77 MB) and hundreds of megabytes (Guatemala 2026: ~360 MB). Retrieval is often monthly, so "last 7 days" returns whatever the registry last pulled that still falls in that window.

### Pricing

Pay per result: **$2.50 per 1,000 results**, plus Apify's small actor-start fee ($0.00005). You pay only for tenders saved to the dataset.

# Actor input Schema

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

Words to look for in the title, description, OCID and buyer name, e.g. \["software", "water", "road"]. Empty = all notices.

## `keywordMode` (type: `string`):

Match ANY or ALL keywords.

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

Limit to registry countries. Accepts names or ISO codes, e.g. \["United Kingdom", "GB", "Liberia", "Kenya"]. Empty = all countries (still subject to the file-size cap).

## `publicationIds` (type: `array`):

Optional OCP Data Registry publication ids (from publications.json or the dataset page URL), e.g. \["41", "156"] for UK Find a Tender and Liberia PPCC. Empty = every matching publication.

## `publishers` (type: `array`):

Match against the registry title or source_id (case-insensitive contains), e.g. \["Find a Tender", "PPCC", "Contracts Finder"].

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

Which contracting-process stages to keep. Default is open opportunity notices (tender). Add planning, award or contract for market intelligence.

## `contractTypes` (type: `array`):

OCDS mainProcurementCategory. Empty = all.

## `procurementMethods` (type: `array`):

Empty = all. Match against procurementMethod or procurementMethodDetails (contains), e.g. \["open", "selective", "limited", "direct"].

## `buyerName` (type: `string`):

Procuring entity / buyer name contains (case-insensitive).

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

Match CPV, NAICS or other item classification ids by prefix, e.g. \["72", "45", "5415"].

## `publishedFrom` (type: `string`):

YYYY-MM-DD or relative ("7 days", "2 weeks"). Default: last 7 days. Compared to the compiled-release date (or tender.datePublished / tenderPeriod.startDate).

## `publishedTo` (type: `string`):

YYYY-MM-DD. Default: no upper bound.

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

Keep tender-stage notices whose status is active and whose tenderPeriod.endDate is today or later (rows with no deadline are kept).

## `includeFrozen` (type: `boolean`):

The registry marks some publications as frozen (no longer updated by the publisher). Off by default.

## `maxFileMb` (type: `integer`):

Skip a yearly JSONL.gz that is larger than this, unless you listed the publication in publicationIds. Default 250 MB reads the large active feeds (Ecuador SERCOP, Germany BMI, UK Find a Tender). Lower it for faster, cheaper runs; raise it for the very largest datasets.

## `minValue` (type: `number`):

Minimum estimated tender value (in the notice currency). Notices with no value are kept.

## `maxValue` (type: `number`):

Maximum estimated tender value (in the notice currency). Notices with no value are kept.

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

0 = no limit. Default 50. The Actor scans matching year files, then returns the newest notices first.

## `includeBuyerContacts` (type: `boolean`):

Adds contactPoint name/email/phone from the buyer or procuring entity when the notice publishes them (buyerContactName / Email / Phone). Off by default — many OCDS contact points are named individuals.

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

Remember what earlier runs delivered and return (and charge for) only processes you have not received yet. Ideal for scheduled alerts.

## `monitoringId` (type: `string`):

Name of the watch-list memory used by 'Only new'. Use a different ID per saved search/schedule.

## `includeRawData` (type: `boolean`):

Adds the compiled release under `raw` (much bigger output). Person-level contactPoint fields are removed unless buyer contacts are on.

## Actor input object example

```json
{
  "keywordMode": "any",
  "stages": [
    "tender"
  ],
  "publishedFrom": "7 days",
  "onlyOpen": true,
  "includeFrozen": false,
  "maxFileMb": 250,
  "maxResults": 20,
  "includeBuyerContacts": false,
  "onlyNew": false,
  "includeRawData": false
}
```

# Actor output Schema

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

All normalized records from the default dataset, opened in the Overview view.

# 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 = {
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("tenderfeed/ocds-registry-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 = { "maxResults": 20 }

# Run the Actor and wait for it to finish
run = client.actor("tenderfeed/ocds-registry-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 '{
  "maxResults": 20
}' |
apify call tenderfeed/ocds-registry-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tenderfeed/ocds-registry-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/7UiiSZqKdI7E4SQvr/builds/peabcOF4IDw2BoiYf/openapi.json
