# Public Tender Scraper (`stephaniehhnbrg/public-tender-scraper`) Actor

Public Tender Scraper is an Apify Actor designed to collect public tender information from various government procurement portals.

- **URL**: https://apify.com/stephaniehhnbrg/public-tender-scraper.md
- **Developed by:** [Stephanie Hohenberg](https://apify.com/stephaniehhnbrg) (community)
- **Categories:** Automation, Lead generation, Jobs
- **Features:** Limited permissions
- **Stats:** 40 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.01 / 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

### Public Tender Scraper

[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript\&logoColor=fff)](#)
[![Playwright](https://img.shields.io/badge/Playwright-2EAD33?logo=playwright\&logoColor=white)](#)
[![Groq](https://img.shields.io/badge/Groq-AI-FF6600?logo=groq\&logoColor=fff)](#)

<i>Public Tender Scraper</i> is an [Apify Actor](https://apify.com/actors) designed to collect public tender information from multiple government procurement portals.
While public tenders ensure transparency and fair competition, counteracting favoritism and corruption, they are not publicly advertised in one place.
Each government provides their own platform, if any, to let organizations publish tenders, on which businesses and suppliers can apply and bid.

Supported platforms:

| Country      | National procurement portal                                                                                 |
|:-------------|:------------------------------------------------------------------------------------------------------------|
| 🇩🇪 Germany | [e-Vergabe](https://www.evergabe-online.de/start.html)                                                      |
| 🇮🇪 Ireland | [gov.ie eTenders](https://www.etenders.gov.ie/epps/viewCFTSAction.do)                                       |
| 🇪🇺 tba     | [Link](https://commission.europa.eu/funding-tenders/tools-public-buyers/public-procurement-eu-countries_en) |

<i>Public Tender Scraper</i> can help businesses ...

- to automate steps in their procurement process
- to find suitable tenders faster and more efficiently across various platforms
- to go international and win contracts abroad

... by providing the following functionalities: <br />
🔎 Unified tender search across multiple national platforms <br />
🏗️ Automation-ready data for integration into procurement workflows <br />
💬 Automatic translation of queries and results to/from user's language <br />
💾 Flexible output formats: JSON and CSV <br />
🧩 Simple API integration for seamless embedding in systems <br />

#### How to integrate?

1. Generate the API keys

- [Apify API Key](https://console.apify.com/settings/integrations)
- [Groq API Key](https://console.groq.com/keys) (optional, to enable translation feature)

2. Export env variables \
   `export APIFY_API_KEY=apify_api_...` \
   `export GROQ_API_KEY=gsk_...`
3. Invoke the Actor via curl

```bash
curl -X POST "https://api.apify.com/v2/acts/stephaniehhnbrg~public-tender-scraper-germany/runs?token=$APIFY_API_KEY" \
    -d '{"keyword": "Ultraschall", "maxResults": "10", "groqApiKey":"'"$GROQ_API_KEY"'"}' \
    -H 'Content-Type: application/json'
```

4. Retrieve the RUN-ID from the JSON response (data > id)
5. Check the status of the run (data > status)

```bash
curl "https://api.apify.com/v2/acts/stephaniehhnbrg~public-tender-scraper-germany/runs/<RUN-ID>?token=$APIFY_API_TOKEN"
```

6. Retrieve the DATASET-ID from the JSON response (data > defaultDatasetId)
7. Fetch the dataset items, as soon as the run holds the status succeeded.

```bash
curl "https://api.apify.com/v2/datasets/<DATASET-ID>/items?view=overview"
```

Alternatively, open the Apify Console link from the status response (data > consoleUrl)

- https://console.apify.com/view/runs/<RUN-ID>

#### Dev Notes

##### Folder Structure

The project was initialized using the Apify template <i>ts-crawlee-playwright-chrome</i>, which provides a standard structure:

```
.actor/                    # Actor metadata and I/O schemas
src/                       # Source code
storage/
├── datasets/              # Actor outputs (JSON + CSV)
├── key_value_stores/      # Input variables and run statistics
└── request_queues/        # Crawling data
```

##### Run Actor locally

1. Install Apify - [Guide](https://docs.apify.com/cli/docs/installation)
2. Configure input parameters (keyword, maxResults, groqApiKey) by editing [INPUT.json](./storage/key_value_stores/default/INPUT.json)
3. Run the actor locally
   ```bash
   apify run
   ```
4. Review the output

- as JSON objects: [./storage/datasets/default](./storage/datasets/default)
- as CSV file: [./storage/datasets/result.csv](./storage/datasets/result.csv)

##### Publish Actor

After running the following commands:

```bash
apify login
apify push
```

check out the [Apify console](https://console.apify.com/actors) and publish the actor via the  UI.

# Actor input Schema

## `keyword` (type: `string`):

Search term to look for in tender platforms

## `maxResults` (type: `string`):

How many records to fetch per search: 10, 25, 50, 100, or \* for all results.

## `countries` (type: `string`):

Which national tender platforms to be scrapped

## `groqApiKey` (type: `string`):

Enables translation of keywords to the platform language and conversion of platform data into the user's language.

## Actor input object example

```json
{
  "keyword": "Printing",
  "maxResults": "25",
  "countries": "GER"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `downloadCsv` (type: `string`):

No description

## `totalItems` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("stephaniehhnbrg/public-tender-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("stephaniehhnbrg/public-tender-scraper").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 '{}' |
apify call stephaniehhnbrg/public-tender-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stephaniehhnbrg/public-tender-scraper"
        }
    }
}
```

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/zS0CJLZw2afbXt61o/builds/dxKONrBIOrzwGOCtT/openapi.json
