# SA eTenders (OCDS) Tenders, Awards & Contracts (`gtnetworks/sa-etenders-ocds`) Actor

South African government tenders, awards and contracts from the National Treasury eTenders OCDS API (PDDL / CC BY 4.0). Date window + keyword/province/category/buyer filters, clean JSON with ISO dates and ZAR cents, optional PDF text. Pay per release delivered.

- **URL**: https://apify.com/gtnetworks/sa-etenders-ocds.md
- **Developed by:** [Jean-Jean Tshiula](https://apify.com/gtnetworks) (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 $4.00 / 1,000 releases

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

## SA eTenders (OCDS) Tenders, Awards & Contracts

**SA eTenders (OCDS)** gives you every **South African government tender** published through National Treasury's
[eTenders portal](https://www.etenders.gov.za/), straight from the official **OCDS API**
([swagger](https://ocds-api.etenders.gov.za/swagger/v1/swagger.json)), as clean JSON/CSV/Excel: ISO dates and closing
times, the buyer with its **province**, procurement method and category, every bid document with its URL, and the awards
and contracts blocks mapped to supplier business names and **ZAR cents**. Pick a date window, filter by **keywords,
provinces, categories, buyers or stage**, and pay only for the releases that match. Optionally pull the **text of the
tender PDFs** into the same record.

National departments, provinces, municipalities and state-owned companies (Eskom, Transnet, PRASA, Rand Water, SITA,
ACSA, ...) all publish here: roughly **700 releases a week** in October 2026.

### Why this Actor and not the other eTenders scrapers?

There are four eTenders Actors on Apify Store today (users as reported by the Store on 2026-10-30):
[fortuitous_pirate/southafrica-etender-scraper](https://apify.com/fortuitous_pirate/southafrica-etender-scraper) (24 users),
[publicmoney/etenders-south-africa-scraper](https://apify.com/publicmoney/etenders-south-africa-scraper) (4),
[scrapingmonkey/south-africa-etenders-scraper](https://apify.com/scrapingmonkey/south-africa-etenders-scraper) (2) and
[agents001/sa-tenders-feed](https://apify.com/agents001/sa-tenders-feed) (2). This Actor differs in five ways:

1. **Official API, not the website.** It reads National Treasury's OCDS API (Open Contracting Data Standard 1.1), so the
   fields are the Treasury's own, stable, and licensed for commercial reuse. No HTML parsing that breaks when the portal
   changes.
2. **It survives the API's broken releases.** The API returns HTTP 500 for any page that contains one of a few
   unserviceable releases (about 1.4 % of releases in the week we measured; a naive `PageSize=1000` call for a week
   fails every time). This Actor bisects a failing page down to the single bad release, skips only that one, and reports
   the count in the run summary. You get the other 98.6 % instead of an error.
3. **Filters you are not charged for.** Keywords, provinces, categories, buyers and stage are applied before anything is
   pushed; a release that does not match costs nothing.
4. **Province and money normalised.** Province is resolved from the buyer name and a gazetteer of South African
   municipalities and towns (`provinceSource` tells you how); tender, award and contract values are integer ZAR cents.
5. **Awards and contracts are mapped**, with supplier business names and values, and the record carries a derived
   `tag` (`tender` / `award` / `contract`). Honest note: in the 730 releases we sampled on 2026-10-30 the API published
   **no awards or contracts yet** (every release was tagged `compiled` with empty `awards`/`contracts`), so today every
   record is `tag: "tender"`. The mapping is unit-tested and will light up the day Treasury publishes them.

### What data does SA eTenders (OCDS) extract?

| Field | Example | Notes |
| --- | --- | --- |
| `ocid` | `ocds-9t57fa-176014` | OCDS contracting process id |
| `releaseId` | `ocds-9t57fa-176014-2026/10/30 00:00:00` | Release id as published by the list endpoint |
| `tag` | `tender` | Derived stage: `contract` if contracts present, else `award` if awards present, else `tender` |
| `date` | `2026-10-30` | Release date (ISO) |
| `title` | `GT/GDE/048/2026` | Tender title as published (Treasury puts the bid number here) |
| `description` | `INVITATION OF BIDDERS TO SUBMIT PROPOSALS ...` | Cleaned, max 2 000 characters |
| `procurementMethod` / `procurementMethodDetails` | `open` / `Request for Bid(Open-Tender)` | Also `Request for Quotation`, `Request for Proposal`, `Expression of interest`, ... |
| `mainProcurementCategory` | `services` | As published; often empty, see `procurementCategories` |
| `procurementCategories` | `["consultingServices"]` | Union of main + additional categories: `goods`, `services`, `consultingServices`, `works` |
| `tenderPeriodStart` / `tenderPeriodEnd` | `2026-10-30T00:00:00Z` / `2026-11-20T11:00:00Z` | ISO 8601 UTC; `closingDate` = `2026-11-20` |
| `tenderValueZarCents` | `null` | Integer cents; `null` when Treasury publishes 0 (= not stated) |
| `buyerName` / `buyerId` | `Gauteng - Education` / `203` | Organ of state |
| `province` / `provinceCode` / `provinceSource` | `Gauteng` / `GP` / `buyer` | `null` for national departments and SOEs; source is `buyer`, `municipality` or `text` |
| `documents[]` | `{ "title", "url", "format": "pdf" }` | Every bid document; URLs point at etenders.gov.za |
| `awardsCount`, `awards[]` | `0`, `[]` | `{ id, title, status, description, supplierNames[], valueZarCents, valueCurrency }` |
| `contractsCount`, `contracts[]` | `0`, `[]` | `{ id, awardId, title, status, dateSigned, periodStart, periodEnd, valueZarCents, valueCurrency }` |
| `documentsText[]` | `{ "url", "title", "numPages": 71, "chars": 20000, "text": "SBD 1 ..." }` | Only with `includeDocumentsText`; text is POPIA-screened and capped at 20 000 characters |
| `sourceUrl` | `https://ocds-api.etenders.gov.za/api/OCDSReleases/release/ocds-9t57fa-176014` | Release detail endpoint |
| `id` | `11999c617d626fab` | Stable hash of `ocid` + `releaseId`; dedupe on it |
| `scrapedAt` | `2026-10-30T00:56:55.257Z` | Collection time (UTC) |

Only **public, non-personal** information is collected (see Legal note below).

### How to use SA eTenders (OCDS)

1. Open the Actor on Apify and click **Try for free**.
2. Set **Date from** / **Date to** (defaults: the last 7 days). A week is about 700 releases.
3. Narrow it down: **Provinces** (e.g. `Gauteng`, add `National` to keep national departments and SOEs), **Procurement
   categories** (`services`, `goods`, `works`, `consultingServices`), **Buyers** (`Eskom`, `Transnet`, `Gauteng - Health`),
   **Keywords** (`solar`, `security services`, `law firms`), **Stage**.
4. Tick **Extract text from tender PDFs** if you want the bid documents' text in the record (max 50 PDFs per run).
5. Click **Start**. Results appear in the **Output** tab; export as JSON, CSV or Excel, or read them via the API.
6. To watch for new tenders, add a daily **Schedule** with a 2-day window and dedupe on `id` (or `ocid`) in your
   pipeline; an **Integration** (webhook, Google Sheets, Make, Zapier, Slack) can push each run's new releases onward.

#### Input

```json
{
    "dateFrom": "2026-10-23",
    "dateTo": "2026-10-30",
    "keywords": [],
    "provinces": ["Gauteng", "National"],
    "categories": ["services"],
    "buyers": [],
    "tags": [],
    "includeDocumentsText": false,
    "maxItems": 100
}
```

All fields are optional. `dateFrom`/`dateTo` default to the last 7 days; `maxItems` (0 = unlimited) and your run's
**Maximum total charge** both cap the run. Advanced: `pageSize` (API releases per call, default 32) and
`requestsPerSecond` (default 1, shared between the API and the document host).

#### Output sample (two real releases, run of 2026-10-30)

```json
{
    "id": "11999c617d626fab",
    "source": "sa-etenders-ocds",
    "sourceUrl": "https://ocds-api.etenders.gov.za/api/OCDSReleases/release/ocds-9t57fa-176014",
    "title": "GT/GDE/048/2026",
    "date": "2026-10-30",
    "ocid": "ocds-9t57fa-176014",
    "releaseId": "ocds-9t57fa-176014-2026/10/30 00:00:00",
    "tag": "tender",
    "ocdsTags": ["compiled"],
    "initiationType": "tender",
    "language": "en-za",
    "tenderId": "176014",
    "description": "INVITATION OF BIDDERS TO SUBMIT PROPOSALS FOR THE ESTABLISHMENT OF A PRE-QUALIFIED LIST OF LAW FIRMS THAT WILL BE USED TO PROVIDE LEGAL SERVICES TO THE GAUTENG DEPARTMENT OF EDUCATION FOR A PERIOD OF THREE (3) YEARS.",
    "tenderStatus": null,
    "procurementMethod": "open",
    "procurementMethodDetails": "Request for Bid(Open-Tender)",
    "mainProcurementCategory": null,
    "procurementCategories": ["consultingServices"],
    "tenderPeriodStart": "2026-10-30T00:00:00Z",
    "tenderPeriodEnd": "2026-11-20T11:00:00Z",
    "closingDate": "2026-11-20",
    "tenderValueZarCents": null,
    "tenderValueCurrency": "ZAR",
    "buyerId": "203",
    "buyerName": "Gauteng - Education",
    "province": "Gauteng",
    "provinceCode": "GP",
    "provinceSource": "buyer",
    "documents": [
        {
            "title": "GT GDE 048 2026 - Section 1A.pdf",
            "url": "https://www.etenders.gov.za/home/Download?blobName=76fcd012-3fba-44b1-86e9-7f7230c6af31.pdf&downloadedFileName=GT%20GDE%20048%202026%20-%20Section%201A.pdf",
            "format": "pdf"
        }
    ],
    "documentsCount": 1,
    "awardsCount": 0,
    "awards": [],
    "contractsCount": 0,
    "contracts": [],
    "scrapedAt": "2026-10-30T00:56:55.257Z"
}
```

```json
{
    "id": "6fa6c396491978df",
    "source": "sa-etenders-ocds",
    "sourceUrl": "https://ocds-api.etenders.gov.za/api/OCDSReleases/release/ocds-9t57fa-176032",
    "title": "TN050/2026",
    "date": "2026-10-30",
    "ocid": "ocds-9t57fa-176032",
    "releaseId": "ocds-9t57fa-176032-2026/10/30 00:00:00",
    "tag": "tender",
    "ocdsTags": ["compiled"],
    "initiationType": "tender",
    "language": "en-za",
    "tenderId": "176032",
    "description": "SUPPLY AND DELIVERY OF LED HIGH MAST LIGHTS",
    "tenderStatus": null,
    "procurementMethod": "open",
    "procurementMethodDetails": "Request for Bid(Open-Tender)",
    "mainProcurementCategory": "services",
    "procurementCategories": ["services"],
    "tenderPeriodStart": "2026-10-30T00:00:00Z",
    "tenderPeriodEnd": "2026-11-13T14:00:00Z",
    "closingDate": "2026-11-13",
    "tenderValueZarCents": null,
    "tenderValueCurrency": "ZAR",
    "buyerId": "89",
    "buyerName": "Dawid kruiper Local Municipality",
    "province": "Northern Cape",
    "provinceCode": "NC",
    "provinceSource": "municipality",
    "documents": [
        {
            "title": "TN050 2026 Tender for submission Final (1).pdf",
            "url": "https://www.etenders.gov.za/home/Download?blobName=3cd211df-74ba-4e0c-9170-6c17c6a26a24.pdf&downloadedFileName=TN050%202026%20Tender%20for%20submission%20Final%20%281%29.pdf",
            "format": "pdf"
        }
    ],
    "documentsCount": 1,
    "awardsCount": 0,
    "awards": [],
    "contractsCount": 0,
    "contracts": [],
    "scrapedAt": "2026-10-30T00:56:55.283Z"
}
```

### How much does it cost?

This Actor uses **pay-per-event** pricing. You are charged only for:

| Event | Price | When |
| --- | --- | --- |
| Actor start | $0.01 | Once per run |
| Release (`record`) | $0.004 | Each release that passes your filters and is delivered to your dataset |
| Document text (`document_text`) | $0.002 | Each tender PDF whose text is extracted (only with `includeDocumentsText`; max 50 per run) |

A full week of South African tenders (about 700 releases) costs about $2.80 + $0.01; a daily run with a 2-day window and a
province filter typically costs a few cents. Filtered-out releases and duplicates are never charged, and a run that finds
nothing costs only the start fee. Set **Maximum total charge** on the run to cap your spend; the Actor stops cleanly when
the cap is reached and keeps everything collected so far. Apify platform usage (compute) is included in the event prices.

### Legal and ethics

- **Source and licence.** National Treasury publishes this data under the
  [Open Data Commons Public Domain Dedication and Licence (PDDL 1.0)](https://opendatacommons.org/licenses/pddl/1-0/)
  (named in the API's swagger) and states on the [eTenders transparency portal](https://data.etenders.gov.za/Home/LearnMore)
  that users may "use this data for any purpose including commercial and non-commercial use", publish content based on
  it, and re-publish it "providing a link to the original source remains intact" (CC BY 4.0 terms). Every record carries
  its `sourceUrl`; keep it when you re-publish.
- **No personal data.** The API publishes organs of state, tender texts and supplier organisations; Treasury strips
  contact persons (the `parties` / `contactPoint` blocks are empty). This Actor additionally runs a POPIA guard over every
  text field, including award descriptions and extracted PDF text, and replaces South African ID numbers, phone numbers
  and e-mail addresses with `[REDACTED-*]` markers. Supplier names are published by Treasury as the awarded legal
  entities; if a sole proprietor trades under a personal name it will appear as Treasury published it.
- **Polite.** One request per second (shared with PDF downloads), identifying User-Agent, no scraping of the eTenders
  website itself, no bypassing of anything.
- **Not the whole of SA procurement.** Only tenders advertised through eTenders appear; some provinces and municipalities
  also advertise on their own portals and in the Government Tender Bulletin. Verify closing dates against the official
  bid document before you bid.
- Operator: `<YOUR NAME / COMPANY>`, `<CONTACT E-MAIL>`.

### FAQ

**Why does a run report "N release(s) the API could not serve were skipped"?** The Treasury API fails with HTTP 500 on
a small number of releases (about 1 in 70 in October 2026). The Actor isolates and skips exactly those; the count is in
the status message and in `RUN_SUMMARY` (`api.skippedUnserviceable`). Nothing else is lost.

**Why is `mainProcurementCategory` often empty?** Treasury frequently leaves it blank and puts the category in
`additionalProcurementCategories`. Use `procurementCategories` (the union) and the loose **categories** filter.

**Why is `tenderValueZarCents` null?** The API publishes `value.amount = 0` for almost every tender; 0 is treated as
"not stated". Values appear in `awards[]`/`contracts[]` when Treasury publishes them.

**Why is `province` null for Eskom or a national department?** They have no province. Add `National` to the
**Provinces** filter to keep them alongside a province. Municipal buyers resolve through a gazetteer of SA
municipalities and towns (`provinceSource: "municipality"`); a few ambiguous names (e.g. Emalahleni, which exists in two
provinces) stay null on purpose.

**Does `releaseId` look odd?** Yes: the list endpoint formats it as `...-2026/10/30 00:00:00` while the detail endpoint
uses `...-2026-10-30`. We keep the list form verbatim and build `id` from it, so `id` is stable across runs.

**What happens when my budget runs out mid-run?** The Actor stops fetching, keeps all records already pushed, and ends
with a status message saying the budget was reached.

**Can I get only new releases?** Yes: run daily with `dateFrom` = yesterday, or dedupe on `id` / `ocid` in your pipeline.

**Historic backfill?** The API serves any date window, but older windows hit more unserviceable releases. For bulk
history National Treasury also publishes monthly JSON/CSV files on the portal.

**Something is missing or wrong?** Open an issue on the Actor's **Issues** tab or e-mail `<CONTACT E-MAIL>`. Other South
African public-data sources are available on request.

### Changelog

See [CHANGELOG.md](./CHANGELOG.md).

# Changelog

This Actor's version history is a separate document: https://apify.com/gtnetworks/sa-etenders-ocds/changelog.md

# Actor input Schema

## `dateFrom` (type: `string`):

First release date to include (YYYY-MM-DD, inclusive). Leave empty for 7 days ago.

## `dateTo` (type: `string`):

Last release date to include (YYYY-MM-DD, inclusive). Leave empty for today.

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

Keep only releases whose title, description, buyer or supplier names contain ANY of these words (case-insensitive). Empty = all.

## `provinces` (type: `array`):

Keep only buyers in these provinces. Names or codes: Gauteng, GP, KwaZulu-Natal, KZN, Western Cape, WC, Eastern Cape, Free State, Limpopo, Mpumalanga, Northern Cape, North West. Add 'National' to also keep national departments and SOEs (no province). Province is read from the buyer name and a municipality gazetteer; see README.

## `categories` (type: `array`):

OCDS procurement categories as published: services, consultingServices, goods, works. Loose match: 'services' also matches 'consultingServices'. Empty = all.

## `buyers` (type: `array`):

Keep only buyers whose name contains ANY of these fragments (case-insensitive), e.g. 'Eskom', 'Transnet', 'Gauteng - Health'. Empty = all.

## `tags` (type: `array`):

Keep only releases at these stages: tender (no award yet), award (awards published), contract (contracts published). Empty = all.

## `includeDocumentsText` (type: `boolean`):

Download each release's PDF documents and add their extracted text (documentsText\[]). Max 50 PDFs per run, 5 MB and 20 s each. Charged per PDF (document_text event) in addition to the record.

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

Stop after this many releases have been pushed. 0 = no limit (your 'Maximum total charge' still caps spend).

## `pageSize` (type: `integer`):

Releases requested per API call (rounded down to a power of two, max 1000). The API refuses to serve a few releases; failing pages are bisected automatically, so smaller pages cost more calls but waste less on a failure. Default 32.

## `requestsPerSecond` (type: `integer`):

Politeness limit against the API and the eTenders document host (shared). Default 1.

## `proxyConfiguration` (type: `object`):

Optional. The eTenders API is public and needs no proxy.

## `operatorContact` (type: `string`):

E-mail or URL identifying who runs this Actor, as courtesy to National Treasury. Defaults to the OPERATOR_CONTACT environment variable.

## Actor input object example

```json
{
  "keywords": [],
  "provinces": [
    "Gauteng",
    "National"
  ],
  "categories": [
    "services"
  ],
  "buyers": [],
  "tags": [],
  "includeDocumentsText": false,
  "maxItems": 100,
  "pageSize": 32,
  "requestsPerSecond": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `records` (type: `string`):

One record per OCDS release (tender, award or contract) in the default dataset.

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

RUN_SUMMARY JSON: records pushed, charged events, duplicates and filtered-out counts, stop reason, source window.

# 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": [],
    "provinces": [
        "Gauteng",
        "National"
    ],
    "categories": [
        "services"
    ],
    "buyers": [],
    "tags": [],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("gtnetworks/sa-etenders-ocds").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": [],
    "provinces": [
        "Gauteng",
        "National",
    ],
    "categories": ["services"],
    "buyers": [],
    "tags": [],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("gtnetworks/sa-etenders-ocds").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": [],
  "provinces": [
    "Gauteng",
    "National"
  ],
  "categories": [
    "services"
  ],
  "buyers": [],
  "tags": [],
  "maxItems": 100
}' |
apify call gtnetworks/sa-etenders-ocds --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gtnetworks/sa-etenders-ocds"
        }
    }
}
```

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/TQvvWccZFMb2UCdfT/builds/Rda11vRNvidqTgPmV/openapi.json
