# Local.ch Scraper (`azzouzana/local-ch-scraper`) Actor

Only $1/1K 💰 Scrape local.ch businesses in seconds 📊 Get names, phones, emails, addresses, opening hours, reviews, and more. Export to Excel, CSV, HTML, or via API. Fast, simple, and super affordable! Grab your search URL & you're good to go 🙌

- **URL**: https://apify.com/azzouzana/local-ch-scraper.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** Lead generation, Automation, Integrations
- **Stats:** 110 total users, 6 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Local.ch Business Directory Scraper (By Search URL)

### 🤩 Features

🚀 Our **blazing-fast local.ch scraper** 🏠 lets you extract public information of business search results from `local.ch` and export them in various formats (JSON, CSV, HTML, etc.).  
🔥 Simply provide your search URLs (optionally with filters applied), and you're all set!  
👉 It allows you to extract detailed business information, including company name, category, phone number, email, address, website, opening hours, reviews and much more.

### 📚 How to use this actor

1. 👉 [Register for a free Apify account](https://apify.com/sign-up?fpr=cbgdsf) – no credit card required!
2. 🎉 Just click the **"Get Started"** button and complete a quick signup.
3. 💰 A free account includes enough credits to test this actor.

The scraper has a required `startUrl` parameter which is a URL to a search page with filters applied.

- Examples of valid URLs:
  - `https://www.local.ch/en/q/zurich/general-internal-medicine`
  - `https://www.local.ch/de/s/Mechanische%20Werkstatt%2C%20Deutsch?sorting=alphanum&filter_facet=attr_conversion_modifications%3Aaccessory`
  - `https://www.local.ch/fr/s/Restaurant%20Basel?filter_facet=attr_services_offer%3Aaperitif`
  - `https://www.local.ch/it/s/dentista?filter_facet=attr_general_geo%3Aclose_to_publictransport`
  - `https://www.local.ch/en/s/restaurant?bookingFilters.dateTime=2025-09-04T11%3A00%3A00.000Z&bookingFilters.persons=2&bookingFilters.slotType=RESTO`

### 🤔 Why scrape local.ch?

local.ch is Switzerland's leading online business directory and local search platform. It provides detailed information about companies across all industries, including contact info, reviews, and operating hours.

So what could you do with all this business data?

- **Build business lead lists** for sales & marketing
- **Enrich your CRM** with up-to-date contact details
- **Analyze competitors** in any Swiss city or industry
- **Power local apps or directories** with structured business data
- **Track trends** in business categories and regions

### 🤑 Cost of usage

You are only charged for what you get: **$2 per 1,000 listings extracted scraped**. No hidden fees.

### 🆓 Free tier limitations

We want you to see how this actor works before you commit. To keep things fair for everyone, the **free tier** usually includes these trial limits:

- **Sample data:** up to **5 listings** per run—enough to check data quality.
- **Daily cap:** **5 runs** per calendar day (UTC).
- **Between runs:** at least **1 minute** before you can start another run.

> Limits can change with platform load depending on system load and your intended scraping to prevent what we might interpret as free users abuse. 

#### Upgrade when you're ready!

Use the free tier to decide if this actor fits your project. Paid Apify plans remove these wait times and caps so you can run at full volume—[**upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf).

### 🛠️ Input

| Field      | Type      | Required | Description                                          | Example |
|------------|-----------|----------|------------------------------------------------------|---------| 
| `startUrl` | `string`  | Yes       | The search results page link                         | `https://www.local.ch/en/q/zurich/general-internal-medicine` |
| `maxItems` | `integer` | No       | Max number of businesses to scrape (within budget)   | `5000` |

### 🧐 Output

Output is stored in a dataset. Each item contains extracted business information, cleaned and flattened for easy use.

Example of the extracted data:

```json
{
  "attributes": [
    "Allemand",
    "Français",
    "Berne",
    "Administration fiscale",
    "Près des transports publics",
    "Dans le commerce",
    "En ligne",
    "Par téléphone"
  ],
  "attributesByGroup_Canton": [
    "Berne"
  ],
  "attributesByGroup_Direction_des_finances": [
    "Administration fiscale"
  ],
  "attributesByGroup_Emplacement": [
    "Près des transports publics"
  ],
  "attributesByGroup_Langues": [
    "Allemand",
    "Français"
  ],
  "attributesByGroup_Possibilit_s_de_contact": [
    "Dans le commerce",
    "En ligne",
    "Par téléphone"
  ],
  "averageRating": 1,
  "cantonCode": "BE",
  "categories": [
    "Administration",
    "Déclaration d'Impôts",
    "Service des impôts"
  ],
  "city": "Bienne",
  "country": "CH",
  "descriptionLanguage": "fr",
  "descriptionOriginalLanguage": "de",
  "descriptionTitle": "À propos",
  "displayAverageRating": false,
  "entryType": "BUSINESS",
  "facebook": "https://www.facebook.com/Cantondeberne",
  "hasMachineTranslatedDescription": true,
  "hasProducts": true,
  "id": "HB_9l7mYVyIIk5I6yDaSYA",
  "images": [
    "https://bin.staticlocal.ch/localplace-logo/ee/eeb03b0bbecb74adc339f563e465230849251a3a/Wappen-Balken-rot_100_.png",
    "https://bin.staticlocal.ch/localplace-images/8a/8a43271302ea3fddffc426256e0597cb9d6011a1/Steuerverwaltung%201.jpg",
    "https://images.services.local.ch/YpOMgIDiBM_lZ3fIKAds4Fij5W52FBh-Ou9IWCEMWqI/s:200:200/q:90/f:webp/rt:fit/aHR0cHM6Ly9iaW4uc3RhdGljbG9jYWwuY2gvbG9jYWxwbGFjZS1sb2dvL2VlL2VlYjAzYjBiYmVjYjc0YWRjMzM5ZjU2M2U0NjUyMzA4NDkyNTFhM2EvV2FwcGVuLUJhbGtlbi1yb3RfMTAwXy5wbmc="
  ],
  "instagram": "https://www.instagram.com/bern_berne",
  "isPremium": false,
  "language": "de",
  "lastModified": "2026-07-07T22:27:07.702Z",
  "latitude": 47.13294,
  "linkedin": "https://www.linkedin.com/company/steuerverwaltung-des-kantons-bern",
  "longitude": 7.244143,
  "openingHours": [
    "SATURDAY: closed",
    "SUNDAY: closed",
    "MONDAY: 08:00-12:00, 13:00-16:30",
    "TUESDAY: 08:00-12:00, 13:00-16:30",
    "WEDNESDAY: 08:00-12:00, 13:00-16:30",
    "THURSDAY: 08:00-12:00, 13:00-16:30",
    "FRIDAY: 08:00-12:00, 13:00-16:30"
  ],
  "openingHoursInfoLines": [
    "31.07.2026: Heures d’ouverture modifiées (Veille de la  Fête nationale)",
    "23.10.2026: Heures d’ouverture modifiées (Changement de technologie)",
    "24.10.2026 - 31.10.2026: Fermé (Changement de technologie)",
    "24.12.2026: Fermé (Réveillon de  Noël)",
    "25.12.2026: Fermé (Jour de Noël)",
    "28.12.2026 - 30.12.2026: Fermé (Dernière  semaine de l’année)",
    "31.12.2026: Fermé (Saint-Sylvestre)",
    "Ligne info-service +41 31 633 60 01: Lundi, mercredi et vendredi, de 8h à 13h / Mardi et jeudi, de 12h à 16h30"
  ],
  "opensAt": "2026-07-13T08:00:00+02:00",
  "opensAtType": "OPENS_AT",
  "phone": [
    "+41316336001"
  ],
  "poBoxCity": "Bienne",
  "poBoxZipCode": 2501,
  "products": [],
  "professionalTitle": "",
  "provider": "Swisscom Directories SA",
  "rateable": true,
  "ratingCount": 1,
  "reviewCount": 0,
  "reviews": [],
  "schemaOrgPlaceType": "LocalBusiness",
  "services": [],
  "street": "Bahnhofplatz 10",
  "subtitle": "Le site de l’Intendance des impôts du canton de Berne à Moutier, rattaché à la Région Jura bernois-Seeland, a été transféré. | Région Jura bernois",
  "title": "Intendance des impôts du canton de Berne, Région Jura bernois-Seeland",
  "twitter": "https://twitter.com/cantondeberne",
  "url": "https://www.local.ch/fr/d/bienne/2502/administration/intendance-des-impots-du-canton-de-berne-region-jura-bernois-seeland-HB_9l7mYVyIIk5I6yDaSYA",
  "website": "http://www.taxme.ch",
  "zipCode": 2502
}
````

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Localsearch Group PTY LTD or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### 🔍 SEO Keywords

local.ch scraper, local.ch API, Switzerland business directory scraper, Swiss business data extraction, local.ch crawler, local.ch data scraper, Swiss company scraper, local.ch business listings, Switzerland yellow pages scraper, local.ch email scraper, local.ch phone number extractor, Swiss business leads, local.ch reviews scraper, Apify local.ch actor, scrape local.ch, extract local.ch data, Swiss business search, local.ch contact extractor

***

**Need a custom solution? Have a feature request or just want to chat?**\
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

# Actor input Schema

## `startUrl` (type: `string`):

local.ch search results page URL

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

Maximum number of business details to scrape. Leave empty to scrape all results (within budget).

## Actor input object example

```json
{
  "startUrl": "https://www.local.ch/en/s/Restaurant?rid=61f378&keid=371112",
  "maxItems": 5000
}
```

# 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 = {
    "startUrl": "https://www.local.ch/en/s/Restaurant?rid=61f378&keid=371112",
    "maxItems": 5000
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/local-ch-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 = {
    "startUrl": "https://www.local.ch/en/s/Restaurant?rid=61f378&keid=371112",
    "maxItems": 5000,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/local-ch-scraper").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 '{
  "startUrl": "https://www.local.ch/en/s/Restaurant?rid=61f378&keid=371112",
  "maxItems": 5000
}' |
apify call azzouzana/local-ch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=azzouzana/local-ch-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Local.ch Scraper",
        "description": "Only $1/1K 💰 Scrape local.ch businesses in seconds 📊 Get names, phones, emails, addresses, opening hours, reviews, and more. Export to Excel, CSV, HTML, or via API. Fast, simple, and super affordable! Grab your search URL & you're good to go 🙌",
        "version": "0.0",
        "x-build-id": "X4drCDSOkBXCdq6MQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/azzouzana~local-ch-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-azzouzana-local-ch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/azzouzana~local-ch-scraper/runs": {
            "post": {
                "operationId": "runs-sync-azzouzana-local-ch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/azzouzana~local-ch-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-azzouzana-local-ch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrl"
                ],
                "properties": {
                    "startUrl": {
                        "title": "local.ch search results page URL",
                        "pattern": "https://www.local.ch/",
                        "type": "string",
                        "description": "local.ch search results page URL"
                    },
                    "maxItems": {
                        "title": "Max items to scrape",
                        "minimum": 5,
                        "type": "integer",
                        "description": "Maximum number of business details to scrape. Leave empty to scrape all results (within budget).",
                        "default": 5000
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
