# Hilma Finland Procurement Notices Scraper (`badboxx_newlife/hilma-finland-procurement-notices-scraper`) Actor

- **URL**: https://apify.com/badboxx_newlife/hilma-finland-procurement-notices-scraper.md
- **Developed by:** [Francesco Correnti](https://apify.com/badboxx_newlife) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Hilma Finland Procurement Notices Scraper

Exports public procurement notices from Hilma (hankintailmoitukset.fi), Finland's official notice portal, as JSON/CSV. Uses the same public search endpoint the Hilma website calls (`/search/eformnotices`): no login, no API key, no browser. Business data only: no contact persons, phones or personal emails.

### Input

| Field | Type | Default | Meaning |
|---|---|---|---|
| `query` | string | empty | Keywords (Finnish/Swedish work best) |
| `cpv` | string list | empty | CPV code prefixes, e.g. `45` |
| `noticeType` | string | empty | Hilma main type, e.g. `ContractNotices`, `ContractAwardNotices`, `Modification` |
| `publishedFrom` | string | empty | `YYYY-MM-DD`, earliest publication date |
| `maxItems` | integer | 100 | Max notices returned (cap on cost) |

### Output

| Field | Meaning |
|---|---|
| `noticeId` | Hilma notice number, e.g. `2026-061324` |
| `title` | Notice title (fi, else sv/en) |
| `buyerName`, `buyerBusinessId` | Buyer and Y-tunnus |
| `noticeType`, `procedureType` | Hilma main type; procedure (e.g. `open`) or null |
| `cpvCodes` | List of CPV codes |
| `estimatedValue`, `currency` | Estimated value or null |
| `publishedAt`, `deadline` | ISO timestamps; deadline null if none |
| `nuts`, `city` | Buyer NUTS code and city (null if not given) |
| `language` | Title language: `fi`, `sv`, `en` |
| `url` | Public Hilma notice URL |
| `source` | Always `hilma` |

Missing values are `null`, never invented.

### Pricing

Pay per event: $0.005 per run (`actor-start`) + $0.002 per notice (`notice`). The run stops at `maxItems` or when your charge limit is hit.

### Sample (real local run, maxItems=10; full items in `sample.json`)

| noticeId | title | buyer | Y-tunnus | type | published | deadline | city |
|---|---|---|---|---|---|---|---|
| 2026-061329 | Tietoliikennelaitteet | Vantaan kaupunki | 0124610-9 | Modification | 2026-11-06 | - | - |
| 2026-061328 | Lukitusalan tuotteiden ja palveluiden hankinta | Vantaan kaupunki | 0124610-9 | ContractAwardNotices | 2026-11-06 | - | - |
| 2026-061327 | Raakapuun autokuljetuspalveluiden hankinta 1.1.202 | Metsähallitus Metsätalous Oy | 2752751-5 | ContractAwardNotices | 2026-11-06 | - | Helsinki |
| 2026-061324 | Valaistusverkon huolto- ja kunnossapitotyöt 2027-2 | Hollolan kunta | 0146248-5 | ContractNotices | 2026-11-06 | 2026-12-07 | Hollola |
| 2026-061323 | Perusopetuksen iltapäivätoiminnan hankinta Vantaan | Vantaan kaupunki | 0124610-9 | ContractNotices | 2026-11-06 | 2026-12-14 | - |
| 2026-061322 | Koulutuskeskus Salpaus -kuntayhtymän palkkapalvelu | Koulutuskeskus Salpaus -kuntayht | 0993644-6 | ContractNotices | 2026-11-06 | 2026-12-11 | Lahti |
| 2026-061321 | VAKEDno-2026-4947 / Yleisanestesiahammashoitopalve | Vantaan ja Keravan hyvinvointial | 3221356-1 | ContractNotices | 2026-11-06 | 2026-12-02 | - |
| 2026-061318 | Vastuullisuuskonsultointi | Senaatti-kiinteistöt | 1503388-4 | ContractNotices | 2026-11-06 | 2026-12-07 | Helsinki |
| 2026-061315 | Ultra-low-latency scalable and modular platform fo | Aalto University Foundation sr | 2228357-4 | ContractAwardNotices | 2026-11-06 | - | AALTO |
| 2026-061311 | Näytteenotto- ja laboratoriopalvelut, Keski-Pohjan | Kokkolan kaupunki | 0179377-8 | ContractNotices | 2026-11-06 | 2026-12-07 | KOKKOLA |

### Run / check

`python3 check.py` runs the scraper locally (live, maxItems=10, no Apify platform) and asserts fields, types, PII, maxItems and PPE events; exit 0/1. `python3 check.py --sample` rewrites `sample.json`. `APIFY_TOKEN=... python3 publish.py --noruns` pushes, builds and sets pricing/SEO without starting a run (`--help` for flags).

# Actor input Schema

## `query` (type: `string`):

Full-text search on hankintailmoitukset.fi (Finnish/Swedish terms work best). Example: rakennus.

## `cpv` (type: `array`):

CPV code prefixes; a notice matches if any of its CPV codes starts with one. Example: 45 (construction).

## `noticeType` (type: `string`):

Hilma main type, e.g. ContractNotices, Modification. Empty = all.

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

Earliest publication date, YYYY-MM-DD. Empty = no limit (newest first).

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

Maximum notices returned; you pay per notice, so this caps cost. Example: 100.

## Actor input object example

```json
{
  "query": "",
  "cpv": [],
  "noticeType": "",
  "publishedFrom": "",
  "maxItems": 100
}
```

# Actor output Schema

## `notices` (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 = {
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("badboxx_newlife/hilma-finland-procurement-notices-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 = { "maxItems": 100 }

# Run the Actor and wait for it to finish
run = client.actor("badboxx_newlife/hilma-finland-procurement-notices-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 '{
  "maxItems": 100
}' |
apify call badboxx_newlife/hilma-finland-procurement-notices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,badboxx_newlife/hilma-finland-procurement-notices-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/JB8UgeLSvbotak1ra/builds/VDWz337HMgaIba7HC/openapi.json
