# Lebanon Tender Radar: PPA Tenders and Award Results (`dottti/lebanon-tender-radar`) Actor

Lebanon government tenders from the Public Procurement Authority portal (ppa.gov.lb) as clean JSON: announced tenders with deadlines, bid bond and documents, and award results with the winning supplier and amount in LBP or USD.

- **URL**: https://apify.com/dottti/lebanon-tender-radar.md
- **Developed by:** [Dottti](https://apify.com/dottti) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 tender delivereds

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

## Lebanon Tender Radar: PPA Tenders and Award Results

Get Lebanon government tenders from the [Public Procurement Authority portal](https://www.ppa.gov.lb) (هيئة الشراء العام) as clean JSON, CSV or Excel.

The Actor reads two public lists of the portal:

- **Announced tenders.** Public tenders, auctions and direct agreements from ministries, councils, municipalities and public companies. Each tender can carry its full notice: purchase type, sector, submission deadline, opening session, bid bond, currency, lots and links to the notice and tender documents (PDF).
- **Award results.** One row per awarded lot, with the winning supplier, the amount, the currency (LBP or USD), the result date and the end of the standstill period.

### Who uses this

- **Suppliers and contractors** get a daily list of new Lebanese tenders in their field.
- **Bid teams** see who wins each type of contract, and at what amount.
- **Sales and market analysts** track which companies win with each ministry or council.
- **Consultancies and development agencies** watch public spending by entity and sector.

Bidding in the Gulf too? See [Etimad Tender Radar](https://apify.com/dottti/etimad-tender-radar) for Saudi Arabia and [Bahrain Tender Radar](https://apify.com/dottti/bahrain-tender-radar) for Bahrain.

### Daily tender alert in 3 steps

1. Set your filters. For example, `mode` = `tenders` and `keywords` = `["صيانة"]`.
2. Click **Save as a new task**, then add a daily schedule to the task. Set `sinceDate` to yesterday's date, or keep `maxItems` small, so each run reads only the newest pages.
3. Connect the task to email, Slack or Google Sheets from the **Integrations** tab.

### What you get

Text stays in Arabic exactly as the portal publishes it. The tender below comes from a real run on 21 October 2026 (the document list is shortened to 1 of 3):

```json
{
  "recordType": "tender",
  "tenderId": "13183",
  "purchaseCode": "201/ س ش أ /2026",
  "title": "أشغال تأهيل وصيانة طرق في قضاء المتن",
  "procuringEntity": "وزارة الأشغال العامة والنقل",
  "procurementMethod": "مناقصة عمومية",
  "publishedOn": "2026-10-20T00:00:00+03:00",
  "bidOpening": "2026-11-10T10:00:00+02:00",
  "url": "https://www.ppa.gov.lb/ar/tenders/details/13183",
  "raw": {
    "publishedOn": "الثلاثاء 20 تشرين الأول 2026",
    "bidOpening": "الثلاثاء 10 تشرين الثاني 2026 10:00"
  },
  "details": {
    "stage": "الاعلان",
    "status": "نشط",
    "purchaseType": "أشغال",
    "sector": "تأهيل وصيانة الطرقات",
    "procurementCategory": "المرافق العامة",
    "awardCriterion": "تنزيل مئوي (نسبة المئوية)",
    "fundingSource": "الموازنة العامة / الخزينة / الصندوق (لبنان - الجهة الشارية)",
    "estimatedValueMin": null,
    "estimatedValueMax": null,
    "estimateIsConfidential": true,
    "currency": "LBP",
    "bidBondAmount": 0,
    "bidValidity": "90 يوم",
    "submissionDeadline": "2026-11-10T09:00:00+02:00",
    "technicalOpening": "2026-11-10T10:00:00+02:00",
    "financialOpening": null,
    "clarificationDeadline": "2026-10-27T09:00:00+02:00",
    "submissionPlace": "قلم المديرية العامة للطرق والمباني في مبنى وزارة الأشغال العامة والنقل في الفياضية – ط 4",
    "lots": ["المجموعة (1) - أشغال تأهيل وصيانة طرق في قضاء المتن"],
    "documents": [
      {
        "name": "دعوة للإعلان عن المناقصة العمومية - إشعار الإعلان عن عملية الشراء",
        "url": "https://pe.ppa.gov.lb/storage/tenders/files/grLOcUDwFPVqlaNS1K0DRz4RQMbn2S3XCdlM-1792496774.pdf"
      }
    ]
  },
  "country": "LB"
}
```

An award result from the same day:

```json
{
  "recordType": "award",
  "tenderId": "13201",
  "title": "اشغال ترميم مبنى مصلحة الزراعة في مدينة النبطية / المجموعة (1) - اشغال ترميم مبنى مصلحة الزراعة في مدينة النبطية",
  "tenderTitle": "اشغال ترميم مبنى مصلحة الزراعة في مدينة النبطية",
  "lot": "المجموعة (1) - اشغال ترميم مبنى مصلحة الزراعة في مدينة النبطية",
  "procuringEntity": "مجلس الجنوب",
  "awardedOn": "2026-10-21T08:25:31+03:00",
  "standstillEnds": "2026-11-04T08:25:31+02:00",
  "winner": "مؤسسة الأبراج للتجارة و المقاولات",
  "winners": ["مؤسسة الأبراج للتجارة و المقاولات"],
  "amount": 3608689476,
  "currency": "LBP",
  "url": "https://www.ppa.gov.lb/ar/tenders/details/13201/awards",
  "raw": {
    "awardedOn": "2026-10-21 08:25:31",
    "standstillEnds": "2026-11-04 08:25:31",
    "amount": "3,608,689,476.00 LBP"
  },
  "country": "LB"
}
```

#### Notes on the fields

- **Money.** Each amount comes with the currency the portal prints, `LBP` or `USD`. The Actor converts nothing.
- **Estimates.** Most entities keep the estimated value secret. Then `estimatedValueMin` and `estimatedValueMax` are `null` and `estimateIsConfidential` is `true`.
- **Dates** are ISO 8601 in Beirut time: `+03:00` in summer, `+02:00` in winter. The text as published is kept in `raw` and `details.rawDetail`.
- **Deadlines.** The tender page has a plan tab and an announcement tab. When their dates differ, the Actor uses the announcement tab.
- **Direct agreements** (الاتفاق الرضائي) have no submission deadline, so those fields are `null`.
- **Award rows** are per lot. A tender with three lots gives three award rows.
- **Missing values** are `null`. The Actor never fills a gap with a guess.

### Input

| Field | What it does |
| --- | --- |
| `mode` | `tenders` (default) or `awards`. |
| `keywords` | Words matched against title, procuring entity, purchase code and, for awards, the winner. Arabic spelling variants match each other. |
| `matchMode` | `any` (default) or `all`. |
| `entityContains` | Keep records whose procuring entity contains this text, for example `وزارة الصحة العامة`. |
| `methodContains` | Tenders only. For example `مناقصة عمومية`, `مزايدة` or `الاتفاق الرضائي`. |
| `sinceDate` | `YYYY-MM-DD`. Tenders announced, or awards given, on or after this date. |
| `includeDetails` | Tenders only. Adds the full notice from each tender page. On by default. |
| `maxItems` | Hard cap on delivered records, and so on cost. Default 100. |
| `maxPages` | Advanced. Stop after this many list pages. 0 means no cap. |

#### Example: this month's award results for medicines

```json
{
  "mode": "awards",
  "keywords": ["ادوية"],
  "sinceDate": "2026-10-01",
  "maxItems": 500
}
```

#### Example: open public tenders of the Ministry of Public Works

```json
{
  "mode": "tenders",
  "entityContains": "وزارة الأشغال العامة والنقل",
  "methodContains": "مناقصة عمومية",
  "includeDetails": true,
  "maxItems": 100
}
```

### Pricing

- **Tender delivered:** $0.005 per tender that passes your filters and is stored in your dataset ($5 per 1,000).
- **Award delivered:** $0.02 per award result, with winner and amount, stored in your dataset ($20 per 1,000).

Filtering is free. You pay only for records delivered. `maxItems` caps the cost of any run.

### Limits

- On 21 October 2026 the tender list held 1,165 rows on 24 pages (50 per page) and the award list held about 7,350 rows on 368 pages (20 per page).
- Both lists come newest first. Within a page a tender can sit a day out of date order, so `sinceDate` stops paging only when a whole page is older.
- Filters run on the Actor's side after each page is read. A narrow filter over the whole award list still reads every page, at about 2 to 3 seconds per page.
- The Actor waits at least 1 second between requests and retries with backoff on HTTP 429, 5xx and network errors. With `includeDetails`, each delivered tender costs one extra request.
- The Actor connects directly with an honest client name and no proxy. If the portal refuses the connection, the run retries with backoff and then stops with a clear error; it does not try to get around a block.
- Contact names, phone numbers and e-mails on tender pages are left out.
- Tender documents are linked by URL. The Actor does not download them.
- Data comes from the public pages of the Public Procurement Authority portal. No login and no credentials are used.

### Development

```bash
npm install
npm test        # parser tests on saved live pages
apify run       # local run, reads storage/key_value_stores/default/INPUT.json
```

# Actor input Schema

## `mode` (type: `string`):

tenders: announced procurements (public tenders, auctions, direct agreements), newest first. awards: award results per lot, with the winning supplier and the amount, newest first.

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

Words matched against the title, procuring entity, purchase code and, for awards, the winner. Arabic spelling variants (أ/إ/ا, ة/ه, ى/ي) match each other. Leave empty to return everything the other filters allow.

## `matchMode` (type: `string`):

any: keep a record when at least one keyword matches. all: keep it only when every keyword matches.

## `entityContains` (type: `string`):

Keep only records whose procuring entity contains this text, for example وزارة الصحة العامة or مجلس الجنوب.

## `methodContains` (type: `string`):

Keep only tenders whose procurement method contains this text, for example مناقصة عمومية (public tender), مزايدة (auction) or الاتفاق الرضائي (direct agreement).

## `sinceDate` (type: `string`):

YYYY-MM-DD. Tenders: announced on or after this date. Awards: result date on or after this date. Paging stops at the first page that is fully older, so this also keeps runs short.

## `includeDetails` (type: `boolean`):

Open each delivered tender's page and add purchase type, sector, submission deadline, opening sessions, bid bond, currency, estimate (when public), lots and document links. Adds one request per delivered tender.

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

Hard cap on delivered records, newest first. You are charged per record delivered, so this is also your cost cap.

## `maxPages` (type: `integer`):

Stop after this many list pages (50 tenders or 20 awards per page). 0 means read until the last page, maxItems or sinceDate stops the run.

## `requestDelayMs` (type: `integer`):

Pause before each request to the government portal. Never lower than 1000 ms; lower values are raised to 1000.

## `maxRetries` (type: `integer`):

Retries with exponential backoff when the portal answers 429 or 5xx, or the network fails.

## Actor input object example

```json
{
  "mode": "tenders",
  "keywords": [],
  "matchMode": "any",
  "includeDetails": true,
  "maxItems": 20,
  "maxPages": 0,
  "requestDelayMs": 1000,
  "maxRetries": 5
}
```

# Actor output Schema

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

Matching tenders (title, procuring entity, method, dates, bid bond, documents) or award results (winner, amount, currency, result date).

# 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": [],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("dottti/lebanon-tender-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 = {
    "keywords": [],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("dottti/lebanon-tender-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 '{
  "keywords": [],
  "maxItems": 20
}' |
apify call dottti/lebanon-tender-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dottti/lebanon-tender-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/Ac4uzCnwBE6Hyystz/builds/lWEArasUQAJ04mFV9/openapi.json
