# South Africa Tenders Scraper and Daily Alerts (`randready/za-etenders-radar`) Actor

Scrape open South African government tenders (RFQs and bids) from the official open procurement data. Daily alerts by keyword, buyer and closing date, cancellations and awards flagged, SAST closing times, document links. Recovers records other scrapers miss.

- **URL**: https://apify.com/randready/za-etenders-radar.md
- **Developed by:** [Rand Ready](https://apify.com/randready) (community)
- **Categories:** Lead generation, Business, Automation
- **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 tender returneds

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

## South Africa Tenders Scraper and Daily Alerts

Get open South African public-sector tenders as clean rows, straight from the official
National Treasury eTenders OCDS API. Built for bid consultants, contractors, SME support
programmes and AI agents that need a reliable daily tender feed.

### What it does

- Reads the official feed for the dates you choose and keeps the latest version of each tender.
- Recovers from the feed's frequent server errors by splitting the date window and retrying, and lists any day it could not read in `RUN_SUMMARY`. Gaps are never hidden.
- Flags cancellations, award and bidder-list notices so you only get real invitations to bid (you can include the others if you want them).
- Filters by keyword, buyer, category (goods, services, works) and days left to close.
- Alert mode: `onlyNewSinceLastRun` returns only tenders you have not seen, ideal for a daily schedule.

### Output (one row per tender)

`ocid, tenderId, reference, buyer, description, category, procurementMethodDetails, noticeType,
publishedAt, closingAtUtc, closingAtSast, daysToClose, isOpen, estimatedValueZar, documentCount,
documents[{title,url}], portalUrl, license`

### Pricing

Free during launch: you pay only your own Apify platform usage (a typical 7-day search used under US$0.01 in our tests). Planned pricing once monetisation is switched on: US$0.003 per tender returned after your filters, with filtered-out rows free. The change will be announced on this page in advance.

### Data and licence

Source: https://ocds-api.etenders.gov.za, published by National Treasury under the
Open Data Commons PDDL (public domain). This Actor is independent and not affiliated
with National Treasury. Always confirm details in the official tender documents.

# Actor input Schema

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

Match any of these words in the tender reference or description. Leave empty for all.

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

Match buyers whose name contains any of these, e.g. ESKOM, City of Cape Town.

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

OCDS main procurement category: goods, services or works.

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

How far back to read the feed when dateFrom is not set.

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

Optional. Overrides publishedWithinDays.

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

Optional. Defaults to today.

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

Drop tenders whose closing time has passed.

## `closingWithinDays` (type: `integer`):

Optional. Only tenders closing within this many days.

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

invitation_to_bid, cancellation, award_or_bidder_list, information_request.

## `onlyNewSinceLastRun` (type: `boolean`):

For scheduled alerts. Skips tenders already returned by an earlier run of your Actor.

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

Stop after this many tenders are returned.

## Actor input object example

```json
{
  "publishedWithinDays": 2,
  "openOnly": true,
  "noticeTypes": [
    "invitation_to_bid"
  ],
  "onlyNewSinceLastRun": false,
  "maxItems": 1000
}
```

# Actor output Schema

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

Dataset items in table view.

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

Counts and source errors for this run.

# 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 = {
    "publishedWithinDays": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("randready/za-etenders-radar").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 = { "publishedWithinDays": 2 }

# Run the Actor and wait for it to finish
run = client.actor("randready/za-etenders-radar").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 '{
  "publishedWithinDays": 2
}' |
apify call randready/za-etenders-radar --silent --output-dataset

```

## MCP server setup

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

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/10HPCJ6Wrcw0WTpVy/builds/SdDCqGTLfgKUrRB1x/openapi.json
