# Mgmotor Configurator Scraper (`rastriq/mgmotor-configurator-scraper`) Actor

Extracts car model editions, prices, promotions and colors from MG Motor EU across European markets.

- **URL**: https://apify.com/rastriq/mgmotor-configurator-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 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/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

## MG Motor EU Configurator Scraper

Extract structured pricing, edition, promotion and color data from the **MG Motor EU car configurator** across all European markets — Spain, Germany, France, Austria, Netherlands, Portugal, Belgium, Switzerland and more.

This actor captures the full price intelligence visible in the MG Motor configurator: catalog price, promotional price, active discounts by campaign, color availability, and both financing and cash payment types.

***

### What data do you get?

Each record represents one **edition × payment type** combination for a given model and market.

| Field | Example | Description |
|-------|---------|-------------|
| `market` | `es-ES` | Market locale code |
| `country` | `España` | Human-readable country |
| `model_slug` | `mgs6` | Model identifier |
| `edition_name` | `Luxury` | Edition display name |
| `payment_type` | `finance` | `finance` or `cash` |
| `price_catalog_eur` | `45990.0` | Catalog price (no discounts) |
| `price_final_eur` | `37980.0` | Price after all active promotions |
| `total_discount_eur` | `-8010.0` | Total promotional discount |
| `promotions_active` | `[{key, name, discount_eur}]` | Breakdown of each active promotion |
| `colors_available` | `[{key, name, metallic}]` | All available colors for this edition |
| `price_disclaimer` | `"válido hasta el 31/07/2026"` | Promotion validity period |

***

### How to use

#### In Apify Console

1. Go to **Actors** → search for **MG Motor EU Configurator Scraper**
2. Click **Try for free**
3. Set the **Markets** field (e.g. `es-ES`, `de-AT`)
4. Set **Models** (e.g. `mgs6`, `mg4`) — or leave empty to auto-scrape all 13 known models
5. Click **Start**

#### Via API

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/YOUR_USERNAME~mgmotor-configurator-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "markets": ["es-ES", "de-AT", "fr"],
    "models": ["mgs6", "mg4"],
    "captureAllEditions": true,
    "captureAllPaymentTypes": true
  }'
```

***

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `markets` | array | `["es-ES"]` | Market locale codes to scrape |
| `models` | array | `[]` | Model slugs — empty = auto-discover all |
| `captureAllEditions` | boolean | `true` | Capture all edition variants |
| `captureAllPaymentTypes` | boolean | `true` | Capture both finance and cash prices |
| `captureColors` | boolean | `true` | Include color list in output |
| `maxConcurrency` | integer | `3` | Parallel pages (max 10) |

#### Supported markets

| Code | Country | Domain |
|------|---------|--------|
| `es-ES` | Spain | mgmotor.eu |
| `de-AT` | Austria | mgmotor.eu |
| `nl-NL` | Netherlands | mgmotor.eu |
| `sv-SE` | Sweden | mgmotor.eu |
| `de` | Germany | mgmotor.de |
| `fr` | France | mgmotor.fr |
| `pt` | Portugal | mgmotor.pt |
| `fi` | Finland | mgmotor.fi |
| `be-nl` | Belgium (NL) | mgmotor.be |
| `be-fr` | Belgium (FR) | mgmotor.be |
| `ch-de` | Switzerland (DE) | mgmotor.ch |
| `ch-fr` | Switzerland (FR) | mgmotor.ch |
| `ch-it` | Switzerland (IT) | mgmotor.ch |

***

### Output sample

```json
{
  "scraped_at": "2026-07-07T10:30:00Z",
  "source_url": "https://www.mgmotor.eu/es-ES/configurator/mgs6",
  "market": "es-ES",
  "country": "España",
  "currency": "EUR",
  "model_slug": "mgs6",
  "edition_key": "luxury-rwd",
  "edition_name": "Luxury",
  "payment_type": "finance",
  "price_catalog_eur": 45990.0,
  "price_final_eur": 37980.0,
  "total_discount_eur": -8010.0,
  "promotions_active": [
    { "key": "campana", "name": "Campaña MG Muévete", "discount_eur": -1210.0 },
    { "key": "Plan Auto+", "name": "Plan Auto+", "discount_eur": -2925.0 }
  ],
  "color_selected_key": "piccadilly-blue",
  "colors_count": 7
}
```

***

### Technical notes

- Uses **Playwright** (Chromium headless) — required because edition prices update via Vue.js DOM interaction, not via separate HTTP requests.
- The MG Motor EU configurator has **no anti-bot protection** (no Cloudflare, no DataDome). Proxies are not required.
- Prices include VAT in Spain and most EU markets. Austria may display prices excluding VAT — the `price_includes_vat` field reflects this.
- The `app_bundle_id` field captures the JS bundle hash, allowing you to detect when the site updates its configurator structure.
- Promotions change monthly. The `price_disclaimer` field captures the validity period text.

***

### Pricing

This actor uses **Pay Per Result** billing: you are charged per record pushed to the dataset.

***

### FAQ

**Can I scrape multiple markets at once?**\
Yes — add multiple market codes to the `markets` array. Each market × model × edition × payment\_type combination generates one record.

**Why does price\_final\_eur differ from price\_catalog\_eur?**\
`price_catalog_eur` is the base price before any promotions. `price_final_eur` reflects all currently active campaigns. The difference is the `total_discount_eur`.

**What happens if a model is not available in a market?**\
The configurator will load a 404 or redirect. The actor logs the failure and continues with the next URL.

**Can I get the financing monthly payment (cuota mensual)?**\
Not in the current version. Monthly payment requires a Santander Finance API call with specific input parameters. Contact us if you need this data.

# Actor input Schema

## `markets` (type: `array`):

Select one or more European markets. Each market scrapes all selected models (or all 13 if none selected).

## `models` (type: `array`):

Select one or more models. <b>Leave empty to scrape all available models automatically</b> (recommended).

## `captureAllEditions` (type: `boolean`):

If <b>enabled</b>, extracts prices for every edition variant per model (e.g. Comfort, Luxury, Luxury AWD).<br>If disabled, only the default (first) edition is captured.

## `captureAllPaymentTypes` (type: `boolean`):

If <b>enabled</b>, captures both <b>Financiación</b> (finance) and <b>Contado</b> (cash) prices per edition.<br>If disabled, only the financing price is captured.

## `captureColors` (type: `boolean`):

If <b>enabled</b>, includes the full list of available colors in the <code>colors\_available</code> field of each output record.

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

Number of configurator pages fetched in parallel. Higher values are faster but may trigger rate limiting.<br><b>Recommended: 5–10</b> (no anti-bot on MG Motor EU).

## `navigationTimeoutSecs` (type: `integer`):

Maximum seconds to wait for each configurator page to respond. Increase if you see timeout errors.

## Actor input object example

```json
{
  "markets": [
    "es-ES"
  ],
  "models": [
    "mgs6"
  ],
  "captureAllEditions": true,
  "captureAllPaymentTypes": true,
  "captureColors": true,
  "maxConcurrency": 5,
  "navigationTimeoutSecs": 30
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset of edition × payment type price records. One row per model × edition × payment type × market. Supports ?format=csv and ?format=xlsx query params.

# 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 = {
    "markets": [
        "es-ES"
    ],
    "models": [
        "mgs6"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/mgmotor-configurator-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 = {
    "markets": ["es-ES"],
    "models": ["mgs6"],
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/mgmotor-configurator-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 '{
  "markets": [
    "es-ES"
  ],
  "models": [
    "mgs6"
  ]
}' |
apify call rastriq/mgmotor-configurator-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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