# Finland Business Register (YTJ / PRH) - Company Data Scraper (`gettingtechnicl/fi-prh-ytj-company-api`) Actor

Extract company data from Finland Business Register (YTJ / PRH) via its official public JSON API. Search by name, location, business id, company form and export 32 structured fields per company as JSON, CSV or Excel - reliable, with no fragile HTML scraping.

- **URL**: https://apify.com/gettingtechnicl/fi-prh-ytj-company-api.md
- **Developed by:** [Terry Gluff](https://apify.com/gettingtechnicl) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 verified record extracteds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Finland Business Register (YTJ / PRH) - Company Data Scraper

Extract company data from Finland Business Register (YTJ / PRH) via its official public JSON API. Search by name, location, business id, company form and export 32 structured fields per company as JSON, CSV or Excel - reliable, with no fragile HTML scraping.

### What you get

Every record is delivered as a clean, structured row you can export to **JSON, CSV, or Excel**. Fields include:

- `value`
- `business_id_registration_date`
- `business_id_source`
- `name`
- `names_type`
- `names_registration_date`
- `names_end_date`
- `names_version`
- `names_source`
- `main_business_line_type`
- `main_business_line_descriptions_lang_language_code`
- `main_business_line_descriptions_lang_description`
- `type_code_set`
- `main_business_line_registration_date`
- `main_business_line_source`
- `company_forms_type`
- `company_forms_current_descriptions_lang_language_code`
- `company_forms_current_descriptions_lang_description`
- `company_forms_end_date`
- `company_forms_version`
- `company_forms_source`
- `registered_entries_type`
- `registered_entries_current_descriptions_lang_language_code`
- `registered_entries_current_descriptions_lang_description`
- `registered_entries_registration_date`
- `registered_entries_end_date`
- `register`
- `authority`
- `trade_register_status`
- `status`
- `registration_date`
- `end_date`

### Input

Configure the run with these options (all optional -- leave blank to fetch everything):

- **Name** — Company name (search for current or previous company names, parallel company names or auxiliary company names)
- **Location** — Town or city
- **Business Id** — Business ID
- **Company Form** — Company form
- **Main Business Line** — Main line of business (Search by Statistics Finland TOL 2008 code or by text)
- **Registration Date Start** — Company registration date over a period of time (write the start date in the format yyyy-mm-dd)
- **Registration Date End** — Company registration date over a period of time (write the end date in the format yyyy-mm-dd)
- **Post Code** — Postal code of street or postal address
- **Business Id Registration Start** — Date of grant of Business ID over a period of time (Write the start date in the format yyyy-mm-dd)
- **Business Id Registration End** — Date of grant of Business ID over a period of time (write the end date in the format yyyy-mm-dd)
- **Maximum results** — cap how many records to return.

### How to use

1. Click **Start** (or call the Actor via the [Apify API](https://docs.apify.com/api/v2) or a client SDK).
2. Set any filters you need and run it.
3. Download the results as JSON, CSV, or Excel from the run's dataset.

### Pricing

This Actor uses **pay-per-result** pricing: you are billed only for the records it returns, with no monthly subscription.

### Notes

This Actor collects publicly available data. Please use it responsibly and in line with the source website's terms of service.

# Actor input Schema

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

Company name (search for current or previous company names, parallel company names or auxiliary company names)

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

Town or city

## `business_id` (type: `string`):

Business ID

## `company_form` (type: `string`):

Company form

## `main_business_line` (type: `string`):

Main line of business (Search by Statistics Finland TOL 2008 code or by text)

## `registration_date_start` (type: `string`):

Company registration date over a period of time (write the start date in the format yyyy-mm-dd)

## `registration_date_end` (type: `string`):

Company registration date over a period of time (write the end date in the format yyyy-mm-dd)

## `post_code` (type: `string`):

Postal code of street or postal address

## `business_id_registration_start` (type: `string`):

Date of grant of Business ID over a period of time (Write the start date in the format yyyy-mm-dd)

## `business_id_registration_end` (type: `string`):

Date of grant of Business ID over a period of time (write the end date in the format yyyy-mm-dd)

## `max_items` (type: `integer`):

Maximum number of records to fetch and push to the dataset.

## Actor input object example

```json
{
  "max_items": 100
}
```

# Actor output Schema

## `results` (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("gettingtechnicl/fi-prh-ytj-company-api").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("gettingtechnicl/fi-prh-ytj-company-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 gettingtechnicl/fi-prh-ytj-company-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gettingtechnicl/fi-prh-ytj-company-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sekIjkXG4zxlKKOVu/builds/FBUy2TJkZ6IdN6abq/openapi.json
