# 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 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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Mgmotor Configurator Scraper",
        "description": "Extracts car model editions, prices, promotions and colors from MG Motor EU across European markets.",
        "version": "0.1",
        "x-build-id": "bBcUfEYSzDhKjRLai"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/rastriq~mgmotor-configurator-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-rastriq-mgmotor-configurator-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/rastriq~mgmotor-configurator-scraper/runs": {
            "post": {
                "operationId": "runs-sync-rastriq-mgmotor-configurator-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/rastriq~mgmotor-configurator-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-rastriq-mgmotor-configurator-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": [
                    "markets"
                ],
                "properties": {
                    "markets": {
                        "title": "🌍 Markets to scrape",
                        "type": "array",
                        "description": "Select one or more European markets. Each market scrapes all selected models (or all 13 if none selected).",
                        "items": {
                            "type": "string",
                            "enum": [
                                "es-ES",
                                "de",
                                "fr",
                                "pt",
                                "nl-NL",
                                "de-AT",
                                "sv-SE",
                                "fi",
                                "be-nl",
                                "be-fr",
                                "ch-de",
                                "ch-fr",
                                "ch-it"
                            ],
                            "enumTitles": [
                                "🇪🇸 Spain",
                                "🇩🇪 Germany",
                                "🇫🇷 France",
                                "🇵🇹 Portugal",
                                "🇳🇱 Netherlands",
                                "🇦🇹 Austria",
                                "🇸🇪 Sweden",
                                "🇫🇮 Finland",
                                "🇧🇪 Belgium (NL)",
                                "🇧🇪 Belgium (FR)",
                                "🇨🇭 Switzerland (DE)",
                                "🇨🇭 Switzerland (FR)",
                                "🇨🇭 Switzerland (IT)"
                            ]
                        },
                        "default": [
                            "es-ES"
                        ]
                    },
                    "models": {
                        "title": "🚗 Models to scrape",
                        "type": "array",
                        "description": "Select one or more models. <b>Leave empty to scrape all available models automatically</b> (recommended).",
                        "items": {
                            "type": "string",
                            "enum": [
                                "mgs6",
                                "mg4",
                                "mg4-urban",
                                "mgs9-phev",
                                "mgs5",
                                "mgs5-2",
                                "hs-hev",
                                "hs-phev",
                                "hs",
                                "mg3",
                                "mg3-ice",
                                "zs-hev",
                                "zs"
                            ],
                            "enumTitles": [
                                "MGS6 EV",
                                "MG4 EV",
                                "MG4 Urban EV",
                                "MGS9 PHEV",
                                "MGS5 EV",
                                "MGS5 EV (2nd gen)",
                                "MG HS HEV",
                                "MG HS PHEV",
                                "MG HS",
                                "MG3 HEV",
                                "MG3 ICE",
                                "MG ZS HEV",
                                "MG ZS EV"
                            ]
                        },
                        "default": []
                    },
                    "captureAllEditions": {
                        "title": "💶 Capture all editions",
                        "type": "boolean",
                        "description": "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.",
                        "default": true
                    },
                    "captureAllPaymentTypes": {
                        "title": "💳 Capture both payment types",
                        "type": "boolean",
                        "description": "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.",
                        "default": true
                    },
                    "captureColors": {
                        "title": "🎨 Capture color list",
                        "type": "boolean",
                        "description": "If <b>enabled</b>, includes the full list of available colors in the <code>colors_available</code> field of each output record.",
                        "default": true
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "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).",
                        "default": 5
                    },
                    "navigationTimeoutSecs": {
                        "title": "Request timeout (seconds)",
                        "minimum": 10,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Maximum seconds to wait for each configurator page to respond. Increase if you see timeout errors.",
                        "default": 30
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
