# Search.ch Lead Scraper (via URL)

Scrape title, address, phone numbers, email etc. from Search.ch by URL of listing page.

- Template page: [https://www.octoparse.com/template/search-lead-scraper-via-url](https://www.octoparse.com/template/search-lead-scraper-via-url)
- Categories: Directories, Lead Generation
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from listing pages, detail pages.

## Output

The current workflow extracts 8 fields, including `Adresse`, `Email`, `Fax`, `Informations`, `Lien`, `Note`, `Titre`, `Téléphone`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URL of listing page and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URL of listing page

Required. URL of listing page Constraints: minItems=1; maxItems=10000.

## How to Use

## Search.ch Lead Scraper (via URL)

Collect title, address, phone, fax, email, URL, description, and rating from Search.ch listing pages.

### Input

- **URL of listing page** (required): One or more URLs, one per line.

### Output Fields

- `Titre`
- `Adresse`
- `Téléphone`
- `Fax`
- `Email`
- `Lien`
- `Informations`
- `Note`

### How to Use

1. Open the template and select **Try it** or **Start**.
2. Enter the URLs of the listing pages.
3. Choose a local or cloud run.
4. Review the output rows and export or process the data.

### Limitations

- Collects only the fields listed above from search results pages. No additional data that Search.ch does not display.
- Fields such as `Lien`, `Informations`, and `Note` may be empty if the source record does not provide them.

### Tips

- Start with a few inputs and review results before scaling.
- Use the most specific valid URL to reduce unrelated or duplicate records.
- Use `Titre`, `Adresse`, or other stable identifiers as deduplication keys when available.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Local.ch Lead Scraper (via URL)](https://www.octoparse.com/template/local-lead-scraper-via-url)
- [Search.ch Lead Scraper](https://www.octoparse.com/template/search-ch-lead-scraper)
- [Vinted Data Scraper (via URL)](https://www.octoparse.com/template/vinted-data-scraper-via-url)
- [Das Örtliche Lead Scraper](https://www.octoparse.com/template/das-oetliche-lead-scraper)
- [wlw.de Lead Scraper](https://www.octoparse.com/template/wlw-de-lead-scraper)

## Input Schema

```json
{
  "title": "Search.ch Lead Scraper (via URL) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRL_of_listing_page": {
      "title": "URL of listing page",
      "description": "URL of listing page",
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRL_of_listing_page"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "uRL_of_listing_page": [
    "https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Medizin",
    "https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Chirurgie",
    "https://search.ch/tel/?wo=Aarau&was=Plastische%20Chirurgie",
    "https://search.ch/tel/?wo=Aarau&was=Schönheitsklinik",
    "https://search.ch/tel/?wo=Aarau&was=Medical%20Beauty"
  ]
}
```

Example 2

```json
{
  "uRL_of_listing_page": [
    "https://search.ch/tel/?was=Restaurant&wo=Berne"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Adresse": {
      "type": "string",
      "description": ""
    },
    "Email": {
      "type": "string",
      "description": ""
    },
    "Fax": {
      "type": "string",
      "description": ""
    },
    "Informations": {
      "type": "string",
      "description": ""
    },
    "Lien": {
      "type": "string",
      "description": ""
    },
    "Note": {
      "type": "string",
      "description": ""
    },
    "Titre": {
      "type": "string",
      "description": ""
    },
    "Téléphone": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Search.ch Lead Scraper (via URL) output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Adresse": "\n\n\nHerzogstrasse 10\n5000 Aarau AG\n",
  "Email": "info@skinmed.ch",
  "Fax": "+41 62 823 05 23 *",
  "Informations": "Skinmed Dermatologie Praxis in Aarau\n\nWillkommen bei Skinmed Dermatologie in Aarau!\n\nVor 17 Jahren haben wir unsere erste Filiale in Aarau eröffnet - und sind bis heute gerne hier.\n\nDie Hautarztpraxis auf über 600 Quadratmetern auf einer Etage - ausgestattet mit modernster Technik und Infrastruktur, modernen Sprech- und Behandlungszimmern, einer grossen Auswahl an modernsten Lasern und einem ambulanten Operationssaal.\n\nUnsere Dienstleistungen in der Skinmed Dermatologie Aarau:\n\nDermatologie\n\nHautkrebs-Vorsorge\n\nLaser-Behandlungen\n\nÄsthetische Medizin\n\nSie finden uns an der Herzogstrasse 10 - nur fünf Gehminuten vom Bahnhof Aarau entfernt. Parkplätze stehen direkt vor der Praxis zur Verfügung.\n\nWir freuen uns auf Ihren Besuch.",
  "Lien": "www.skinmed.ch",
  "Note": "3.7",
  "Titre": "Skinmed AG\n",
  "Téléphone": "+41 62 822 81 22 *"
}
```

Example 2

```json
{
  "Adresse": "\n\n\nHirschengraben 24\n3011 Bern\n\n\n\n\nPostfach\n3001 Bern",
  "Email": "info@nationalbern.ch",
  "Fax": "+41 31 552 15 16 *",
  "Informations": "Herzlich. Genussvoll. Vielseitig. Mitreissend.\n\nÜber fünf Etagen sind hinter jeder Tür verschieden eingerichtete Zimmer zu entdecken. Berner wissen zudem das Restaurant zu schätzen. Typisch schweizerisch und kulinarisch mit viel Liebe auf gutem Niveau. Wer dann noch den alten Ballsaal betritt – heute Gaststätte diverser Kulturanlässe – dürfte dann vollends von diesem Haus begeistert sein!\n\nDas Restaurant, das ganz im Sinne der Slow-Food-Philosophie betrieben wird.\nDas Hotel, mit seinen 46 unterschiedlichen Zimmern.\nDer grosse Theatersaal, der für Anlässe aller Art genutzt wird.\nShakira the club, wo jeglicher Kleinanlass seinen Platz findet.\n\nDiese Bereiche bilden zusammen einen dynamischen Gastro-Betrieb unter einem gemeinsamen Dach – das National Bern.\n\nHotel\n\nHerzlich. Aufrichtig. Persönlich.\n\n5 Minuten vom Hauptbahnhof entfernt finden Sie das Hotel National. Über fünf Etagen sind hinter jeder Tür verschieden eingerichtete Zimmer zu entdecken.\n\nBesonderheit\nDer altehrwürdige Lift, der die einzelnen Etagen verbindet, stammt aus dem frühen 20. Jahrhundert. Dieser Fahrstuhl, selbstverständlich noch voll fahrtüchtig und bestens gewartet, ist zur berühmten Touristenattraktion geworden, die auch von nicht im Hause wohnenden Bernreisenden gerne besucht und bewundert wird.\n\nWlan gratis in allen Zimmern\nFrühstück inklusive\nAngebot 3 für 2\nBegrüssungsdrink\n\nRestaurant\n\nGenussvoll. Regional. Saisonal. Hausgemacht.\n\nUnser Küchenteam arbeitet mit frischen, regionalen Produkten. Unsere Speisen werden nach dem Konzept von Slow Food produziert: keine Fertigprodukte, immer saisonal und Glutamat frei. Unsere Küche bietet unseren Gästen traditionelle Schweizer- und Bernerspezialitäten an. Ehrlich und von bester Qualität.\n\nIn unserem Weinsortiment finden Sie viele verschiedene Schweizerweine, als Ergänzung haben wir für Sie auch Weine aus dem Europäischen Raum im Angebot.\n\nTheatersaal\n\nVielseitig. Grosszügig. Anpassungsfähig. Professionell.\n\nÜber vierzig Jahre Erfahrung zahlen sich aus. Kaum ein Anlass, der sich im Theatersaal National nicht durchführen lässt. Ob Bankett, Firmenfeier, Seminar oder Konzert, allen individuellen Wünschen kann entsprochen werden. Denn die Verantwortlichen verstehen und lieben ihr Handwerk. Der Platz ist vorhanden, die nötige Infrastruktur ebenfalls. Die Küche weiss was es braucht, damit feierliches Tafeln im grossen Rahmen, Kulturspektakel, Multimediapräsentation, Hochzeiten oder alles zusammen zum unvergesslichen Erlebnis wird.",
  "Lien": "www.nationalbern.ch",
  "Note": "4.6",
  "Titre": "National Bern AG\n",
  "Téléphone": "+41 31 552 15 15 *"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "search-lead-scraper-via-url",
  "taskName": "Search.ch Lead Scraper (via URL)",
  "parameters": "{\"uRL_of_listing_page\":[\"https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Medizin\",\"https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Chirurgie\",\"https://search.ch/tel/?wo=Aarau&was=Plastische%20Chirurgie\",\"https://search.ch/tel/?wo=Aarau&was=Schönheitsklinik\",\"https://search.ch/tel/?wo=Aarau&was=Medical%20Beauty\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRL_of_listing_page\":[\"https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Medizin\",\"https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Chirurgie\",\"https://search.ch/tel/?wo=Aarau&was=Plastische%20Chirurgie\",\"https://search.ch/tel/?wo=Aarau&was=Schönheitsklinik\",\"https://search.ch/tel/?wo=Aarau&was=Medical%20Beauty\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "search-lead-scraper-via-url",
        "taskName": "Search.ch Lead Scraper (via URL)",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "search-lead-scraper-via-url",
  "taskName": "Search.ch Lead Scraper (via URL)",
  "parameters": "{\"uRL_of_listing_page\":[\"https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Medizin\",\"https://search.ch/tel/?wo=Aarau&was=Ästhetische%20Chirurgie\",\"https://search.ch/tel/?wo=Aarau&was=Plastische%20Chirurgie\",\"https://search.ch/tel/?wo=Aarau&was=Schönheitsklinik\",\"https://search.ch/tel/?wo=Aarau&was=Medical%20Beauty\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `search-lead-scraper-via-url`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/search-lead-scraper-via-url.json)
- [Manifest](https://www.octoparse.com/templates/search-lead-scraper-via-url-manifest.json)
