# Kenya Tenders Scraper: PPIP tenders.go.ke to Excel (`tenderfeed/kenya-ppip-tenders`) Actor

Scrape Kenyan public tenders from the Public Procurement Information Portal (PPIP, tenders.go.ke) via the official active-tenders JSON API, no key. Filter by keyword, method, category, buyer, AGPO, open deadline. "Only new" daily alerts. Excel, CSV, JSON.

- **URL**: https://apify.com/tenderfeed/kenya-ppip-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

## Kenya Tenders Scraper: PPIP tenders.go.ke to Excel

**Export Kenyan public tenders from the Public Procurement Information Portal (PPIP) to Excel, CSV or JSON, with no API key.** PPIP ([tenders.go.ke](https://tenders.go.ke)) is Kenya's official e-procurement notice board under the Public Procurement Regulatory Authority. This Actor reads the official JSON API `GET /api/active-tenders` and returns one clean row per notice: title, tender reference, OCDS id, procuring entity, method and category, publication and close dates, AGPO flag, document link and the direct PPIP notice URL. PPIP lists **~600 active tenders** at any time (593 measured 2026-11-06).

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

### Endpoints used

- Active list (Laravel paginator, 10 per page): `GET https://tenders.go.ke/api/active-tenders?page={n}`
- Notice page: `https://tenders.go.ke/tenders/{id}`
- Documents: absolute URLs under `https://tenders.go.ke/storage/Documents/...`

The portal rate-limits around 60 requests/minute (`Too Many Attempts.`); the Actor throttles and retries with backoff.

### What can you do with it?

- **Open tender alerts** for Kenya and East Africa suppliers, NGOs and development contractors.
- **AGPO / reserved opportunities** for youth, women and persons with disability (filter `onlyAgpo`).
- **Market intelligence**: which State Corporations, Counties and Ministries buy what.
- **Bid consultancies**: feed a CRM or spreadsheet with every new PPIP notice.
- **AI agents**: use it as an **MCP tool** (Apify MCP server) and ask *"Which open goods tenders close this week at Kenya Power?"*

### Input example

```json
{
  "keywords": ["software", "ICT"],
  "procurementCategories": ["Goods", "services"],
  "onlyOpen": true,
  "maxResults": 50
}
```

- `keywords` match title, description and tender reference.
- `procurementMethods` / `procurementCategories`: free-text contains match (e.g. `"Open Tender"`, `"Framework"`, `"Works"`).
- `buyerName` / `peType` narrow the Procuring Entity.
- `onlyOpen` (on by default) keeps notices whose `close_at` is today or later.
- Default run: open active tenders, newest first within each page, 50 results. No default `publishedFrom` — the feed is already the live active list.

### Output example

```json
{
  "source": "ke-ppip",
  "sourceId": "308839",
  "ocid": "ocds-5whusi-308839-KP1/9A.3/OT/01/FC/26-27",
  "url": "https://tenders.go.ke/tenders/308839",
  "title": "THREE- YEAR FRAMEWORK CONTRACT FOR SUPPLY OF DISTRIBUTION TRANSFORMERS (LOCAL MANUFACTURERS)",
  "procedureType": "Framework Agreements",
  "noticeType": "Goods",
  "contractType": "goods",
  "status": "active",
  "buyerName": "Kenya Power & Lighting Company",
  "buyerCountry": "KE",
  "publishedAt": "2026-10-15T00:00:00",
  "deadlineAt": "2026-11-06T23:00:00",
  "tenderRef": "KP1/9A.3/OT/01/FC/26-27",
  "documentsUrl": "https://tenders.go.ke/storage/Documents/1792075904663-tender-document.pdf"
}
```

Other fields: `peCode`, `peType`, `venue`, `openingDate`, `financialYear`, `submissionMethods`, `addendaCount`, `documentsCount`, `documentTitles`, `setAside` (AGPO), `tenderFee`, `bidSecurityValue`, `otherClassificationCodes`.

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), [Colombia SECOP](https://apify.com/tenderfeed/colombia-secop-tenders), [Netherlands TenderNed](https://apify.com/tenderfeed/netherlands-tenderned-tenders)).

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

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

### Personal data

PPIP's active-tenders payload includes PE organisation contacts and, sometimes, the personal email/phone of the officer who created the notice, plus subscriber (bidder) lists. **Buyer contacts are off by default**; turn on `includeBuyerContacts` to add `buyerContactName` / `Email` / `Phone`. Subscriber personal data is **never** exported.

### Pricing

Suggested 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. The default run takes under a minute.

# Actor input Schema

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

Words to look for in the tender title, description and reference, e.g. \["software", "transformer", "road"]. Empty = all active tenders.

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

Match ANY or ALL keywords.

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

Empty = all. Match against PPIP method title or code (case-insensitive contains), e.g. \["Open Tender", "Framework", "Request for Quotation"]. Common values: Open Tender, Restricted Tender, Framework Agreements, Direct Procurement, Request for Quotation, Request for Proposal, Low Value Procurement.

## `procurementCategories` (type: `array`):

Empty = all. Match against category title or code, e.g. \["Goods", "Works", "services", "Consultancy"].

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

Procuring Entity name contains (case-insensitive), e.g. "Kenya Power", "County", "Ministry".

## `peType` (type: `string`):

Procuring Entity type contains, e.g. "State Corporation", "County", "Ministry", "University".

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

YYYY-MM-DD or relative ("30 days"). Default: no lower bound (the feed is already the live active list, ~600 notices).

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

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

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

Keep only active notices whose close date (close_at) is today or later. The source endpoint is active-tenders; turn off only if you also widen other filters and want rows past their close date that still appear in the feed.

## `onlyAgpo` (type: `boolean`):

Keep only tenders flagged for AGPO (Access to Government Procurement Opportunities) or other reservations.

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

0 = no limit. Default 50. PPIP lists ~600 active tenders at any time (measured 2026-11-06).

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

Adds the PE officer who created the notice and PE organisation email/phone (buyerContactName / Email / Phone). Off by default. Subscriber (bidder) personal data is never exported.

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

Remember what earlier runs delivered and return (and charge for) only tenders you have not received yet. Ideal for scheduled daily 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 full active-tenders row under `raw` (bigger output). Person-level keys and subscriber lists are removed unless buyer contacts are on (subscribers are always dropped).

## Actor input object example

```json
{
  "keywordMode": "any",
  "onlyOpen": true,
  "onlyAgpo": false,
  "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/kenya-ppip-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/kenya-ppip-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/kenya-ppip-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tenderfeed/kenya-ppip-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/5BiLfQZZ6zDOxR9U7/builds/vcmQpzYmlMuWEuUud/openapi.json
