# AMAG Switzerland Vehicle Scraper (`rainminer/amag-ch-scraper`) Actor

Scrape public AMAG Switzerland vehicle inventory on auto.amag.ch. Export make, model, price, year, mileage, fuel, location, and listing URL to JSON or CSV for Swiss automotive market monitoring.

- **URL**: https://apify.com/rainminer/amag-ch-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 vehicle listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What does AMAG Switzerland Vehicle Scraper do?

**AMAG Switzerland Vehicle Scraper** extracts **used and new car listings** from [auto.amag.ch](https://auto.amag.ch/de/) — the official AMAG Group vehicle marketplace in Switzerland. Paste a search URL (for example `https://auto.amag.ch/de/` or `https://auto.amag.ch/de/audi`) or a single vehicle detail URL and export structured inventory data — **make, model, price, year, mileage, fuel type, and dealer location** — without writing any code.

Run it on the **Apify platform** to schedule crawls, export JSON/CSV/Excel, rotate proxies, monitor failures, and integrate results via API.

### Why scrape AMAG Switzerland?

- **Market research** — Track prices, mileage, and fuel types across AMAG dealer stock.
- **Inventory monitoring** — Watch new and used vehicles as they appear on auto.amag.ch.
- **Competitive intelligence** — Compare Swiss dealer listings by brand, model, and location.
- **Lead generation** — Collect vehicle URLs and specs for outreach or enrichment.
- **Data pipelines** — Feed structured car inventory into dashboards, alerts, or valuation tools.

### How to use AMAG Switzerland Vehicle Scraper

1. Open the Actor in Apify Console.
2. Add one or more **auto.amag.ch search or vehicle URLs** under **Start URLs**.
3. Set **Maximum items** (listings per start URL).
4. Run the Actor and download the results from the **Dataset** tab.

### Input

AMAG Switzerland Vehicle Scraper accepts **Start URLs**, **maxItems** (per start URL), and an optional **proxy configuration**. See the **Input** tab in Apify Console for details.

Supported start URLs:

- All vehicles: `https://auto.amag.ch/de/`
- Brand pages: `https://auto.amag.ch/de/audi` or `https://auto.amag.ch/de/vw`
- Model pages: `https://auto.amag.ch/de/skoda/fabia`
- Vehicle detail: `https://auto.amag.ch/de/audi/q2/q2-35-tfsi-s-line-automatic-benzin-65900km/160166`

### Output

Each result is a structured vehicle object. You can download the dataset in **JSON, CSV, Excel, or HTML**.

```json
{
  "make": "AUDI",
  "model": "Q2",
  "price": 23990,
  "year": 2022,
  "mileage": 65900,
  "fuel": "Benzin",
  "location": "Zürich",
  "url": "https://auto.amag.ch/de/audi/q2/q2-35-tfsi-s-line-automatic-benzin-65900km/160166",
  "scrapedAt": "2026-07-28T07:55:00.000Z"
}
```

### What data can you extract from AMAG Switzerland?

| Field | Description |
| --- | --- |
| make | Vehicle brand (e.g. AUDI, VW, Škoda) |
| model | Model name |
| price | Listed price in CHF |
| year | First registration year |
| mileage | Odometer reading in km |
| fuel | Fuel / powertrain type |
| location | Dealer city or location |
| url | Public vehicle detail URL on auto.amag.ch |
| scrapedAt | ISO timestamp when the record was scraped |

### How much does it cost to scrape AMAG Switzerland?

This Actor uses a lightweight **HTTP crawler (no browser)** and **no proxy by default**, keeping compute usage low. A typical test run with a handful of listings per URL usually finishes in under a few minutes on the Apify free tier. Larger crawls scale with the number of vehicle pages.

### Tips and advanced options

- Use brand-specific URLs (for example `/de/audi`) to focus results on one marque.
- Increase **maxItems** to follow additional result pages when available.
- Add multiple start URLs to collect several brands or categories in a single run.

### FAQ, disclaimers, and support

**Is scraping AMAG Switzerland legal?**\
This Actor collects only **public** vehicle listings shown on auto.amag.ch. You are responsible for complying with applicable laws (including Swiss data protection rules) when processing any personal data contained in listings.

**Which URLs are supported?**\
Search and listing URLs on `auto.amag.ch` are supported. The main amag.ch marketing site links to auto.amag.ch for vehicle inventory.

**Do I need a proxy?**\
Usually not. The scraper defaults to direct HTTP requests. Enable Apify Proxy only if you hit regional blocks or rate limits.

### Image Credit

Image credit: [amag.ch](https://www.amag.ch/)

# Actor input Schema

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

auto.amag.ch search URLs (e.g. https://auto.amag.ch/de/ or https://auto.amag.ch/de/audi) or individual vehicle detail URLs.

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

Maximum number of vehicle listings to return per start URL.

## `proxyConfiguration` (type: `object`):

Proxy settings. The scraper works without a proxy in most regions.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://auto.amag.ch/de/"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "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 = {
    "startUrls": [
        {
            "url": "https://auto.amag.ch/de/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/amag-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 = {
    "startUrls": [{ "url": "https://auto.amag.ch/de/" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/amag-ch-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 '{
  "startUrls": [
    {
      "url": "https://auto.amag.ch/de/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rainminer/amag-ch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/amag-ch-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/88loayVQhHLomF7Xw/builds/fryKBGqsF8PZ9hqQ2/openapi.json
