# Latvia Tender Radar: IUB Public Tenders and Contract Awards (`dottti/latvia-tender-radar`) Actor

Latvia public tenders and award results from the IUB open data as clean JSON: buyer, value in EUR, CPV, deadline, EIS link, bids received, winners and contract values. Filter by keyword, buyer, CPV and value, and get alerts for new notices.

- **URL**: https://apify.com/dottti/latvia-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 $3.50 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Latvia Tender Radar: IUB Public Tenders and Contract Awards

Get Latvia's public tenders and award results as clean JSON: what is being bought, by whom, the estimated value in
EUR, the CPV code, the bid deadline, the EIS link to the tender documents, how many bids came in, who won each lot and
for how much. Filter by keyword, buyer, category, CPV and value, and schedule it to get alerts for new notices.

The data comes from the official open data service of the Procurement Monitoring Bureau of Latvia (Iepirkumu
uzraudzības birojs, IUB), which publishes every e-form notice as a daily JSON file. No login, no browser, no scraping
of web pages.

### Who it is for

- **Suppliers and contractors** bidding in Latvia: a daily list of tenders still open in your field, with the deadline,
  the value and the EIS link where you get the documents and submit.
- **Competitor and price research**: every award result with the winner, the winning price per lot, the number of bids
  and the lowest and highest bid.
- **Firms working on EU-funded projects**: each row says whether a lot is EU funded, and notices from private buyers
  under Cabinet regulation 104 (mk-contract, mk-result) are included.
- **Consultants, analysts and journalists**: a clean table of procurements by buyer, CPV or value.

### What you get

One row per tender notice:

```json
{
  "recordType": "tender",
  "procedureId": "a498d500-90e4-43e5-ad5f-bcdd6310e8c6",
  "procurementId": "SKS 2026/18",
  "title": "Saulkrastu novada ceļu un ielu uzturēšana 2026/2027 ziemas periodā",
  "buyer": "Sabiedrība ar ierobežotu atbildību \"Saulkrastu komunālserviss\"",
  "buyerRegNo": "40103027944",
  "buyerCity": "Saulkrasti",
  "noticeType": "pil-contract",
  "procedureType": "open",
  "legalBasis": "pil-under",
  "category": "services",
  "cpv": "90620000-9",
  "estimatedValue": 120000,
  "currency": "EUR",
  "euFunded": false,
  "lots": 3,
  "lotDetails": [
    { "name": "Sniega tīrīšana un kaisīšana Saulkrastu novadā", "estimatedValue": 80000, "deadline": "2026-11-23T09:00:00+02:00", "euFunded": false },
    { "name": "Sniega tīrīšana Sējas pagastā", "estimatedValue": 30000, "deadline": "2026-11-23T09:00:00+02:00", "euFunded": false }
  ],
  "publishedDate": "2026-11-06",
  "deadline": "2026-11-23T09:00:00+02:00",
  "daysLeft": 13,
  "isOpen": true,
  "documentsUrl": "https://www.eis.gov.lv/EKEIS/Supplier/Procurement/185747",
  "sourceUrl": "https://www.eis.gov.lv/EKEIS/Supplier/Procurement/185747",
  "country": "LV"
}
```

And one row per award result:

```json
{
  "recordType": "award",
  "procurementId": "SNP/2026/35/AK",
  "title": "Remonta darbi Smiltenes vidusskolā",
  "buyer": "Smiltenes novada pašvaldība",
  "buyerRegNo": "90009067337",
  "noticeType": "pil-award",
  "category": "works",
  "cpvCodes": ["45000000-7", "45453100-8"],
  "awarded": true,
  "awardedLots": 2,
  "decisionDate": "2026-05-27",
  "bidsReceived": 10,
  "lowestBid": 12501.37,
  "highestBid": 24930.31,
  "winner": "Sabiedrība ar ierobežotu atbildību \"ASE\"",
  "winnerCompanyId": "44103021098",
  "winningValue": 12501.37,
  "contractValue": 31862.46,
  "winners": [
    { "lot": "Sanitārā mezgla remonts", "name": "Sabiedrība ar ierobežotu atbildību \"ASE\"", "companyId": "44103021098", "naturalPerson": false, "country": "LVA", "size": "small", "value": 12501.37, "contractDate": "2026-06-11", "contractUrl": "https://www.eis.gov.lv/EKEIS/Supplier/Procurement/171818" }
  ],
  "publishedDate": "2026-11-06",
  "country": "LV"
}
```

Contact names, phone numbers and e-mail addresses from the source are left out on purpose. When a winner is a private
person (a sole trader without a company), the row keeps the lot, value and size but sets the name to null and
`naturalPerson` to true.

If nothing matches or the IUB service can't be reached, you get a free `status` row that says so, and the run still
ends successfully, so schedules keep working.

### How to use it

- **Empty input**: up to 20 rows (tenders still open plus award results with a winner) from notices published in the
  last 2 days. Takes a few seconds.
- **Your field**: set `keywords` (Latvian works best: remonts, būvdarbi, datori, medikamenti, ceļu) or `cpvPrefixes`
  (45 construction, 33 medical, 72 IT services), and `minValueEur`.
- **Award results only**: set `recordTypes` to `awards` and an earlier `updatedSince`.
- **Alerts**: turn on `onlyNew` and schedule the Actor daily (Schedules in Apify Console). Each run returns only notices
  it has not delivered before for the same filters. Re-published copies of a notice are not delivered twice.

### Pricing

Pay per result: **$5.00 per 1,000 tenders** and **$12.00 per 1,000 award results** delivered. Status rows are free.
Platform usage is included in the price. Set a maximum cost per run in Apify Console and the Actor stops cleanly when
it is reached.

### Limits

- One file is read per day (about 1.3 MB, 150 to 300 notices). Long date windows read one file per day; filters are
  applied after reading. The data starts on 2023-10-25.
- Today's file appears once the day is published by IUB; until then the run reads the earlier days.
- Titles and descriptions are in Latvian, as published. Values are in EUR, as published; small procurements under
  the Public Procurement Law article 9 often have no estimated value.
- Planning, contract execution and contract modification notices are not returned.

### Data source

Open data of Iepirkumu uzraudzības birojs (Procurement Monitoring Bureau of Latvia), open.iub.gov.lv, published under
CC0 1.0. Each row carries a `source` attribution and a `sourceUrl` to the EIS record or the official day file.

# Actor input Schema

## `recordTypes` (type: `string`):

tenders: calls for bids (contract notices). awards: award results with winners and contract values. both: both kinds.

## `updatedSince` (type: `string`):

Read notices published on this day or later (YYYY-MM-DD). One file per day is read. Empty = the last 2 days and today. Data starts 2023-10-25.

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

Words matched against the title, description, lot names, buyer, procurement ID and winners. Case and Latvian accents are ignored, so skeldas matches šķeldas. Latvian works best, for example remonts, būvniecība, datori, medikamenti, ceļu.

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

any: at least one keyword. all: every keyword.

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

Keep notices whose buyer name contains one of these, for example pašvaldība, Rīgas, universitāte or Latvijas Valsts ceļi.

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

Supplies, services or works. Empty = all.

## `cpvPrefixes` (type: `array`):

Keep notices with a main or additional CPV code starting with one of these (2 to 8 digits). Example: 45 for construction work, 33 for medical equipment, 72 for IT services.

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

Keep these IUB notice types only. Empty = all tender and award types. pil = Public Procurement Law, sps = utilities, mk = Cabinet regulation 104 (EU-funded private buyers).

## `minValueEur` (type: `integer`):

Keep tenders with an estimated value, and awards with a contract value, of at least this many euros. Notices without a published value are dropped when this is set.

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

Keep only tenders whose bid deadline has not passed yet.

## `awardedOnly` (type: `boolean`):

Skip result notices where no winner was chosen (no bids, or the procedure was closed).

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

Stop after this many matching notices.

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

Skip notices this Actor already delivered in earlier runs with the same filters, including re-published copies of the same notice. Use with a daily schedule.

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

Pause between day-file downloads. Minimum 200.

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

Retries per request on network errors, 429 and 5xx responses.

## Actor input object example

```json
{
  "recordTypes": "both",
  "matchMode": "any",
  "openOnly": true,
  "awardedOnly": true,
  "maxItems": 20,
  "onlyNew": false,
  "requestDelayMs": 300,
  "maxRetries": 4
}
```

# Actor output Schema

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

Buyer, value, CPV, deadline, EIS link, bids received, winners and contract values.

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

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

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

```

## MCP server setup

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