# Finland Company Registry (PRH YTJ) (`goobertje/finland-company-registry`) Actor

- **URL**: https://apify.com/goobertje/finland-company-registry.md
- **Developed by:** [goober](https://apify.com/goobertje) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 company returneds

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

## Finland Company Registry: company lists and lookups from the PRH YTJ open data

Get Finnish companies from the official PRH YTJ open data API as clean JSON rows: business ID (Y-tunnus), current name and auxiliary names, company form, main business line (TOL / NACE), addresses, registration and end dates, website and the derived OVT, Peppol and VAT identifiers. Use it to build B2B lead lists, enrich a customer list by business ID, or check that a supplier exists. No API key, no proxies, no browser.

Built by goobertje. It reads the official PRH YTJ open data API. This is not an official PRH product and is not affiliated with or endorsed by the Finnish Patent and Registration Office (PRH).

### Why use this Actor

- Official source: the PRH YTJ open data API v3, not scraped HTML. It needs no key and no registration.
- Search by name, location (municipality), postal code, company form, main business line and registration date range.
- Lookup mode: up to 2000 business IDs, with the Finnish check digit verified before any request. An invalid or unknown ID gives a free status row.
- Multilingual descriptions: English, Finnish or Swedish, falling back to Finnish and then to any language the record has. Company names are returned as registered.
- `includeEnded` decides whether companies with an end date are delivered. Off by default, so a search returns active companies.
- Polite by design: honest User-Agent, at least 1 second between requests, retries on 5xx, and a stop after three 403 or 429 answers in a row instead of evading a block.
- Derived OVT, Peppol participant and VAT candidates for every company, with an honest warning that they are derived, not proof of registration.

### Quick start

Type a name such as `Fiskars` (or a location such as `Oulu`) and click Start:

```json
{
  "name": "Fiskars",
  "maxItems": 10
}
```

You get a dataset with one row per active company, and a final status message that says how many companies were read and delivered and why rows were skipped (for example ended companies, duplicates or unusable records). The run takes a few seconds.

### Input

| Field | Meaning |
|---|---|
| `businessIds` | Lookup mode. Business IDs as 7 digits, a hyphen and a check digit, for example `0112038-9`. Spaces are ignored and the check digit is verified, so a typo never reaches the API. Up to 2000. Cannot be combined with any search filter, so clear the prefilled `location` (Oulu) first. Invalid IDs give a free `invalid_business_id` row; unknown IDs give a free `not_found` row. |
| `name` | Name search, as the API matches it. Only letters, digits, spaces, hyphens, apostrophes, ampersands and dots are used; other characters become spaces. Not a business ID: use `businessIds` for that. |
| `location` | Municipality name, for example `Oulu`, `Helsinki` or `Espoo`. |
| `postCode` | 5-digit Finnish postal code, for example `90100`. One code per run. |
| `companyForm` | YTJ company form code, for example `16` (osakeyhtiö / limited company) or `17` (julkinen osakeyhtiö / public limited company). One code per run. |
| `mainBusinessLine` | Main business line (TOL / NACE) code, 2 to 5 digits, for example `62200`, `70100` or `62100`. One code per run. |
| `registrationDateFrom`, `registrationDateTo` | Registration date range, `YYYY-MM-DD`. The start must not be later than the end. |
| `includeEnded` | Include companies with an end date (ceased). Applies to searches and to explicit business ID lookups. Default: false. |
| `language` | `en`, `fi` or `sv` for company form, business line and city descriptions. Falls back to Finnish, then to any language in the record. Default: `en`. |
| `maxItems` | Cost cap. Stop after this many companies are delivered (and charged). 1 to 100000. Default: 100. |

A search needs at least one criterion (a search with no filter would be the whole register). The server chooses the page size: the API has no `pageSize` or `limit` parameter. The Actor stops when the rows read reach `totalResults` or when a page comes back empty.

### What you get

| Field | Meaning |
|---|---|
| `status` | Company rows: the PRH company status code as published, for example `2`. Status rows: `not_found`, `invalid_business_id` or `ended` (a looked-up company that has ceased, when `includeEnded` is off). |
| `businessId`, `name` | Business ID (Y-tunnus) and current registered name. |
| `auxiliaryNames` | Other current names: parallel and auxiliary trade names. |
| `companyForm`, `companyFormCode` | Company form description in the chosen language, and the code as published (for example `17`). |
| `mainBusinessLineCode`, `mainBusinessLine` | Main business line (TOL / NACE) code and its description in the chosen language. |
| `tradeRegisterStatus` | Trade register status code as published. |
| `registrationDate`, `endDate` | ISO dates. `endDate` is null while the company is active. |
| `streetAddress`, `postalAddress` | `{street, postCode, city, country}`. A post-office box becomes `PL <number>`. `postalAddress` is null when none is published. |
| `website` | Website as published, or null. It may lack the scheme. |
| `lastModified` | Last modification timestamp as published (no timezone). |
| `ovtCode`, `peppolParticipantId`, `vatNumber` | Derived candidates, see the Peppol section below. |
| `registryUrl`, `sourceApiUrl`, `scrapedAt` | YTJ web page, the exact API URL that returned the company, and the time of the request. |
| `license`, `attribution` | Licence of the source data and the attribution text. |

Unknown values are null. Nothing is guessed. Real sample, from a lookup of Nokia Oyj (business ID `0112038-9`, shortened; the full item has 13 auxiliary names):

```json
{
  "status": "2",
  "businessId": "0112038-9",
  "name": "Nokia Oyj",
  "auxiliaryNames": ["Nokia Networks", "Nokia Mobile Phones", "Nokia Corporation"],
  "companyForm": "Public limited company",
  "companyFormCode": "17",
  "mainBusinessLineCode": "70100",
  "mainBusinessLine": "Activities of head offices",
  "tradeRegisterStatus": "1",
  "registrationDate": "1896-12-19",
  "endDate": null,
  "streetAddress": { "street": "Karakaari 7", "postCode": "02610", "city": "ESPOO", "country": "FI" },
  "postalAddress": { "street": "PL 226", "postCode": "00045", "city": "NOKIA GROUP", "country": "FI" },
  "website": "www.nokia.com",
  "lastModified": "2026-11-10T17:07:58",
  "ovtCode": "003701120389",
  "peppolParticipantId": "0216:003701120389",
  "vatNumber": "FI01120389",
  "registryUrl": "https://tietopalvelu.ytj.fi/yritys/0112038-9",
  "sourceApiUrl": "https://avoindata.prh.fi/opendata-ytj-api/v3/companies?businessId=0112038-9",
  "license": "CC BY 4.0",
  "attribution": "Source: Finnish Patent and Registration Office (PRH), YTJ open data, licensed CC BY 4.0",
  "scrapedAt": "2026-11-13T12:00:00Z"
}
```

#### Status rows (lookup mode, free)

A business ID whose check digit fails gives `{"status": "invalid_business_id", ...}` without any request to the API. An ID the register does not know gives `{"status": "not_found", ...}`. Both are pushed to the dataset and are never charged. An ended company in a lookup is not delivered unless `includeEnded` is true; instead you get a free `{"status": "ended", ...}` row naming its end date, so no requested ID disappears silently.

### Pricing

Pay per event: the event is `company-returned`, $4.00 per 1,000 companies (set in the Apify Console). You pay only for company rows that are delivered. You do not pay for status rows, for ended companies skipped by the default `includeEnded: false`, for duplicate rows, or for failed and invalid runs. `maxItems` caps the cost per run.

Example: `maxItems` 500 costs at most $2.00. Setting a maximum cost per run in the Console also stops the Actor.

### Peppol, OVT and VAT numbers: derived candidates, not proof

Every company row carries three identifiers built from the business ID alone:

- `ovtCode` is `0037` plus the eight digits of the business ID. For `0112038-9` the digits are `01120389`, so `ovtCode` is `003701120389`. The `0037` prefix is the Finnish OVT (organisaatiotunnus) scheme.
- `peppolParticipantId` is `0216:` plus the OVT code, for example `0216:003701120389`.
- `vatNumber` is `FI` plus the eight digits, for example `FI01120389`.

These are well-formed candidates, not a statement that the company is registered in the Peppol network or is VAT-liable. Being reachable over Peppol requires the company (or its service provider) to have registered the identifier in a Peppol lookup service. To verify, check the identifier with a Peppol lookup (for example through the company's Peppol service provider or the Peppol Directory) before sending e-invoices. VAT liability is a separate register fact; check it in the YTJ or VAT register information rather than inferring it from the `FI` number alone. Nothing in this dataset is a substitute for that verification.

### Use with AI agents (MCP, Claude, Cursor, n8n, Make)

AI agents can call this Actor through the Apify MCP server.

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=goobertje/finland-company-registry" } } }
```

Sign in with OAuth in the browser on first use. Example prompts and the input each one maps to:

1. "Find 20 software companies in Oulu." maps to `{"mainBusinessLine": "62200", "location": "Oulu", "maxItems": 20}`.
2. "Look up these business IDs: 0112038-9 and 3661661-6." maps to `{"businessIds": ["0112038-9", "3661661-6"]}`.
3. "Which companies named Fiskars were registered since 2026-01-01?" maps to `{"name": "Fiskars", "registrationDateFrom": "2026-01-01", "maxItems": 50}`.

In n8n, Make or Zapier, use the Apify node or module, pick this Actor and paste the same JSON.

### Use cases

- Build a B2B prospect list of companies in one business line and municipality.
- Enrich a CRM export that only holds Finnish business IDs.
- Check that supplier or customer business IDs exist and are still active.
- Monitor new registrations by re-running with a recent `registrationDateFrom`.
- Size a market: `totalResults` in the status message tells you how many companies match, before `maxItems` stops delivery.

### FAQ

**Where does the data come from, and is it allowed?** From the PRH YTJ open data API at avoindata.prh.fi, published as open data. It needs no registration or key. The licence and attribution are in every row and repeated at the end of this page.

**How fresh is it?** It is the live register at the time of the run. `lastModified` is the register's own timestamp and `scrapedAt` is the time of the request.

**What does a typical run cost?** 50 companies cost $0.20 at the intended price; 250 cost $1.00. Status rows and skipped rows cost nothing.

**Does it include companies that have ceased?** No by default: a row with an `endDate` is skipped. Switch on `includeEnded` to receive them, for searches and lookups alike.

**What happens when the source blocks or changes?** The Actor retries 5xx answers with 2, 4 and 8 second backoffs, backs off on 403 and 429, and stops after three 403 or 429 answers in a row without trying to evade. If rows were already delivered, the run ends as a partial success with a message. If none were, it fails.

**Why does a city appear in Finnish when I chose English?** Descriptions and city names are returned in the chosen language when the register has it, then in Finnish, then in any language it has. Many records publish only Finnish and Swedish city names, so English gives `ESPOO` while Swedish gives `ESBO`.

**What is NOT included?** Directors, shareholders, beneficial owners, financial figures, employee counts, emails and phone numbers, and historical lists of names or addresses. Only the current register values are flattened into a row.

### Limits and honest caveats

- YTJ covers companies registered in Finland. It is not a worldwide or EU-wide register, and a Finnish branch of a foreign company appears only as registered in Finland.
- The API has no page-size parameter. The server decides how many companies a page holds. The Actor stops when the rows read reach `totalResults`, or on an empty page, and has a safety ceiling of 100 pages (about 10,000 companies at 100 rows per page) for a search. Narrow the search (add a location, postal code, company form, business line or a registration date range) to reach the rest.
- Rate limits and politeness: at least 1 second between requests, an honest identifying User-Agent, retries on 5xx with increasing backoff, and a hard stop after three consecutive 403 or 429 answers. A search run makes at most 120 requests; a lookup run makes one request per business ID plus a small margin for retries.
- Status and trade register codes are published as the register gives them (`status`, `tradeRegisterStatus`); the Actor does not interpret them beyond exposing them. A company is treated as ended when it has an `endDate`.
- Company names are returned as registered and are often Finnish or Swedish even when `language` is `en`; only descriptions and city names are translated.
- `website` is as published and may lack `https://`.
- `ovtCode`, `peppolParticipantId` and `vatNumber` are derived from the business ID. They are candidates, not proof of Peppol registration or VAT liability. Verify with a Peppol lookup and the register before relying on them.
- The register is authoritative and can change after a run. Some values can be out of date or missing; unknown values stay null rather than being guessed.
- Personal data and marketing law: some Finnish companies are sole traders or small firms whose register data can identify a natural person. You are responsible for using the data lawfully, including data-protection and marketing rules. This README is not legal advice.

Source: Finnish Patent and Registration Office (PRH), YTJ open data, CC BY 4.0. Licence: https://creativecommons.org/licenses/by/4.0/

The attribution text stored in every row is: "Source: Finnish Patent and Registration Office (PRH), YTJ open data, licensed CC BY 4.0". This Actor is an independent project: it is not affiliated with or endorsed by the Finnish Patent and Registration Office (PRH) or the YTJ service.

Found a problem or want a field added? Open an issue on the Actor page.

# Actor input Schema

## `businessIds` (type: `array`):

Look up these companies by business ID: 7 digits, a hyphen and a check digit, for example 0112038-9. Spaces are ignored and the Finnish check digit is verified. Up to 2000. Cannot be combined with any search filter: when you fill in this field, clear the other fields first. An invalid ID gives a free 'invalid_business_id' row, an unknown one a free 'not_found' row. Example: \["0112038-9", "3661661-6"].

## `name` (type: `string`):

Search companies by name, as the API matches it. Only letters, digits, spaces, hyphens, apostrophes, ampersands and dots are used (other characters become spaces). Not a business ID: use 'Business IDs' for that. Example: "Fiskars".

## `location` (type: `string`):

Keep companies registered in this municipality, by name, for example Oulu, Helsinki or Espoo. Prefilled with Oulu so a first run returns data: clear it before using 'Business IDs'. Example: "Oulu".

## `postCode` (type: `string`):

Keep companies with this 5-digit Finnish postal code, for example 90100. One code per run. Example: "90100".

## `companyForm` (type: `string`):

Keep companies with this company form code, as used by the YTJ API: 16 (osakeyhtiö / limited company), 17 (julkinen osakeyhtiö / public limited company), 14 (yksityinen elinkeinonharjoittaja / sole trader), and so on. One code per run. Example: "16".

## `mainBusinessLine` (type: `string`):

Keep companies with this main business line code: 2 to 5 digits, for example 62200 (computer consultancy), 70100 (head offices) or 62100 (computer programming). One code per run. Example: "62200".

## `registrationDateFrom` (type: `string`):

Keep companies whose registration date in the trade register is on or after this date, format YYYY-MM-DD. Empty means any. Example: "2026-01-01".

## `registrationDateTo` (type: `string`):

Keep companies whose registration date is on or before this date, format YYYY-MM-DD. Must not be earlier than 'Registered since'. Empty means any. Example: "2026-11-30".

## `includeEnded` (type: `boolean`):

Include companies that have an end date (they have ceased and are no longer active). Applies to searches and to explicit business ID lookups. Default: false, so only active companies are delivered.

## `language` (type: `string`):

Language used for company form, business line and city descriptions. Falls back to Finnish, then to any language the record has. Company names are returned as registered. Default: en.

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

Stop after this many companies are delivered (and charged). 1 to 100000. Default: 100. One search reads at most 100 result pages (about 10,000 companies); split larger lists by location, postal code or registration date.

## Actor input object example

```json
{
  "businessIds": [],
  "location": "Oulu",
  "includeEnded": false,
  "language": "en",
  "maxItems": 10
}
```

# Actor output Schema

## `companies` (type: `string`):

Finnish companies as flat lead rows.

# 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 = {
    "location": "Oulu",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("goobertje/finland-company-registry").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 = {
    "location": "Oulu",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("goobertje/finland-company-registry").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 '{
  "location": "Oulu",
  "maxItems": 10
}' |
apify call goobertje/finland-company-registry --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goobertje/finland-company-registry"
        }
    }
}
```

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/zVMckf1qACn1S8Cqp/builds/plVUDeoltlRUoGJrw/openapi.json
