# Fonecta.fi Scraper (`memo23/fonecta-scraper`) Actor

Scrape fonecta.fi (Finland) into structured business rows: name, phone, email when listed, website, address, hours, Y-tunnus. Keyword search. HTTP only. JSON or CSV out. $5 per 1,000 listings.

- **URL**: https://apify.com/memo23/fonecta-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation
- **Stats:** 17 total users, 16 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Fonecta.fi Finland Scraper

Scrape [fonecta.fi](https://www.fonecta.fi/) (Fonecta Caller) into one row per **business**: name, phone, email when listed, website, address, opening hours, Y-tunnus (Finnish business id).

Works from a keyword plus optional city, a nationwide term, or a pasted `/haku/` URL. Search cards already embed `__NEXT_DATA__` JSON — no Apify Proxy required on current HTML. `PERSON` rows are dropped.

**Pricing:** $0.005 per listing (`pushData`). Extra `contact-phone` $0.002 and `contact-email` $0.05 when those fields are present.

### Why use this scraper?

- Phone, website, hours, and Y-tunnus sit on the search card. Email is present when Fonecta publishes it.
- Nationwide `/haku/ravintola` or a city baked into the term (`/haku/ravintola%20tampere`).
- Optional harvest of the business site when the directory has no inbox.
- Private persons (`contactType: PERSON`) are not written to the dataset.

### Overview

Built for lead lists and local research on Finnish companies. Each dataset item is one OFFICE or COMPANY listing from Fonecta Caller. Finder.fi is a sibling product and is not crawled.

### Supported inputs

| Input | What it does |
|---|---|
| `searchTerms` | What you type in Fonecta, e.g. `ravintola`, `putkimies` |
| `locations` | City appended to the term. Empty = nationwide |
| `startUrls` | `https://www.fonecta.fi/haku/...` only |
| `maxItems` | Stop after N unique listings (free plan cap 50) |
| `harvestWebsiteEmail` | Fetch the business site if Fonecta has no inbox |
| `proxy` | Leave off |

Unsupported: Finder.fi URLs, private-person lookups, Helsinki city facet on queries Fonecta blocks with `TOO_MANY_PERSONS_TO_SHOW_BY_LAW`.

### Use cases

| Who | Why |
|---|---|
| Sales / agencies | Finnish phones and emails from a category |
| Researchers | Hours, Y-tunnus, and city coverage |
| SEO / maps | Website + coordinates per listing |

### How it works

1. Build `https://www.fonecta.fi/haku/{term}` (city appended when set). Page N is `?page=N` (15 rows).
2. Parse `<script id="__NEXT_DATA__">` → `dehydratedState.queries[0].state.data.results`.
3. Keep `OFFICE` / `COMPANY`. Drop `PERSON`.
4. Charge `contact-phone` / `contact-email` after `pushData`.
5. If still no email and harvest is on, fetch the business homepage/contact page.

### Input configuration

| Field | Type | Required | Notes |
|---|---|---|---|
| `searchTerms` | string\[] | one of terms/URLs | e.g. `ravintola` |
| `locations` | string\[] | no | e.g. `Tampere` |
| `startUrls` | url\[] | no | `/haku/` only |
| `maxItems` | integer | no | default 50 |
| `maxPages` | integer | no | default 20 |
| `harvestWebsiteEmail` | boolean | no | default true |
| `maxConcurrency` | integer | no | default 5 |
| `proxy` | proxy | no | default off |

#### Example input

```json
{
  "searchTerms": ["ravintola"],
  "locations": [],
  "maxItems": 10,
  "harvestWebsiteEmail": false,
  "proxy": { "useApifyProxy": false }
}
```

### Output overview

One JSON object per business. Search cards already carry phone, website, hours, coordinates, and often email.

### Output samples

Nationwide `ravintola`, search card (fields trimmed):

```json
{
  "listingId": "971292",
  "name": "Ravintola Raveliini",
  "phone": "0107624859",
  "email": "ravintola.raveliini@sok.fi",
  "website": "https://www.raflaamo.fi/fi/ravintola/kouvola/ravintola-raveliini",
  "street": "Kanuunakuja 2",
  "postalCode": "45200",
  "city": "Kouvola",
  "country": "FI",
  "yTunnus": "2467766-5",
  "contactType": "OFFICE",
  "hours": ["MO 16:00-22:00"],
  "source": "fonecta"
}
```

### Key output fields

| Group | Fields |
|---|---|
| Identity | `listingId`, `name`, `yTunnus`, `contactType`, `category` |
| Contact | `phone`, `phones`, `email`, `website`, `social` |
| Place | `street`, `postalCode`, `city`, `address`, `latitude`, `longitude`, `country` |
| Hours | `hours`, `hoursToday`, `openNow` |
| Meta | `profileUrl`, `source`, `searchTerm`, `scrapedAt` |

### FAQ

**Does this scrape Finder.fi?** No. Stay on fonecta.fi. Finder is linked from the footer and is a different site.

**Why is email sometimes empty?** Fonecta does not publish an inbox on every card. Turn `harvestWebsiteEmail` on, or accept directory-only fields.

**Helsinki city filter?** On some large queries Fonecta disables the Helsinki facet (`TOO_MANY_PERSONS_TO_SHOW_BY_LAW`). Use a nationwide term or a smaller city.

**Are private persons included?** No. `contactType: PERSON` is skipped.

**Cloudflare?** Search HTML currently returns 200 without a proxy. If a run hits a challenge, retry with RESIDENTIAL + Unblocker.

### Support

Issues: https://console.apify.com/actors/memo23/fonecta-scraper/issues

### Additional services

Custom scrapers and lead pipelines: contact via the Apify Store profile.

### Explore more scrapers

[Pages d'Or BE Scraper](https://apify.com/memo23/pagesdor-scraper) · [Gouden Gids NL Scraper](https://apify.com/memo23/goudengids-nl-scraper) · [PagesJaunes Scraper](https://apify.com/memo23/pagesjaunes-scraper-cheerio) · [Yell.com Scraper](https://apify.com/memo23/yell-scraper)

### 🤖 For AI Agents & LLM Apps

- Actor: `memo23/fonecta-scraper`
- Minimal input: `{ "searchTerms": ["ravintola"], "maxItems": 5, "harvestWebsiteEmail": false, "proxy": { "useApifyProxy": false } }`
- Output: one JSON object per business (`name`, `phone`, `email`, `website`, `city`, `yTunnus`, `hours`)
- Billing: $0.005 / result; +$0.002 if `phone`; +$0.05 if `email`
- Persons are not returned. Helsinki facet may be disabled on large queries.

### ⚠️ Disclaimer

This actor is not affiliated with, endorsed by, or sponsored by Fonecta Oy or its affiliates. Fonecta® and Fonecta Caller® are trademarks of their respective owners. The actor collects publicly listed business information from fonecta.fi. You are responsible for lawful use (GDPR, ePrivacy, your own outreach). Public data only. Do not use the data for spam.

### SEO Keywords

fonecta scraper, fonecta.fi scraper, fonecta caller scraper, finland yellow pages scraper, finnish business directory scraper, y-tunnus scraper, ravintola leads finland, putkimies leads, finland company phone email, fonecta api alternative, finland local business dataset, lead generation finland, finnish restaurant directory, tampere business list, apify finland scraper

# Actor input Schema

## `startUrls` (type: `array`):

Paste fonecta.fi /haku/ links. Examples: <code>https://www.fonecta.fi/haku/ravintola</code>, <code>https://www.fonecta.fi/haku/ravintola%20tampere</code>, <code>https://www.fonecta.fi/haku/putkimies?page=2</code>. Finder.fi URLs are ignored.

## `searchTerms` (type: `array`):

What you would type into Fonecta Caller, e.g. <b>ravintola</b>, <b>putkimies</b>, <b>kampaamo</b>. One row per term. Every term is searched in every city below. Leave cities empty for a nationwide FI search. Helsinki as a city facet can be disabled on large person-heavy queries — use a nationwide term or a smaller city. A fonecta.fi /haku/ URL also works here.

## `locations` (type: `array`):

Finnish city, e.g. <b>Tampere</b>, <b>Turku</b>, <b>Oulu</b>. Appended to the term as <code>/haku/{term} {city}</code>. Empty = nationwide search.

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

Stop after this many unique businesses across the whole run. Free plan is capped at 50.

## `harvestWebsiteEmail` (type: `boolean`):

If the Fonecta card has no inbox, fetch the business website homepage/contact page. Default on. Search cards already include email when Fonecta lists one.

## `maxPages` (type: `integer`):

Page N is <code>/haku/{term}?page=N</code>. Each page has 15 businesses.

## `maxConcurrency` (type: `integer`):

How many search pages (and optional website harvests) to load at the same time.

## `proxy` (type: `object`):

Leave off. Search HTML currently answers without Apify Proxy. Use RESIDENTIAL+Unblocker only if a run returns 403 / a challenge page.

## Actor input object example

```json
{
  "searchTerms": [
    "ravintola"
  ],
  "locations": [],
  "maxItems": 50,
  "harvestWebsiteEmail": true,
  "maxPages": 20,
  "maxConcurrency": 5,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "searchTerms": [
        "ravintola"
    ],
    "locations": [],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/fonecta-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 = {
    "searchTerms": ["ravintola"],
    "locations": [],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/fonecta-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 '{
  "searchTerms": [
    "ravintola"
  ],
  "locations": [],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call memo23/fonecta-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/fonecta-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/61Y2p23WmIWKkDdYk/builds/ZVxUTZwkxzAgqzd6S/openapi.json
