# Mobile.de Scraper (`real_spidery/mobile-de-scraper`)

\[Contact for replacement solution] Mobile.de is the leading classifieds platform for motors/cars/vehicles in Germany and Europe. Mobile.de Scraper is specially made for millions motors/cars/vehicles in EU. Custom solution is available, just drop us an email!

- **URL**: https://beta-securitybyobscurity.apify.com/real\_spidery/mobile-de-scraper.md
- **Developed by:** [Real Spidery](https://beta-securitybyobscurity.apify.com/real_spidery) (community)
- **Categories:** Lead generation
- **Stats:** 114 total users, 13 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

$2.45 / 1,000 results

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for dataset items the Actor outputs.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-result

# README

## What does Mobile.de Scraper do?

Mobile.de Scraper for ads allows you to scrape any ads from **chosen urls** from [mobile.de](https://www.mobile.de/). Here are main functionalities:

1. Extract all mobile.de data from **chosen urls**
2. Extract all mobile.de data with limited pages from **chosen urls**
3. Export any mobile.de data in many formats, also easy to integrate with your own external systems within minutes

## Input

Full input sample:

```json

{
"start_urls": [
{
"url": "https://suchen.mobile.de/fahrzeuge/search.html?dam=false&isSearchRequest=true&pageNumber=2&ref=srpNextPage&refId=c1089a09-16a9-997d-326d-e8e9ddeceb83&s=Car&sb=rel&vc=Car"
}
],
"scrape_page_limit": 45
}
```

- `run_mode` By default, test mode is enabled, for the real scraped, please select Production option (prod)
- `start_urls`should be ads search page. i.e. https://suchen.mobile.de/fahrzeuge/search.html?dam=false\&isSearchRequest=true\&pageNumber=2\&ref=srpNextPage\&refId=c1089a09-16a9-997d-326d-e8e9ddeceb83\&s=Car\&sb=rel\&vc=Car.
- `scrape_page_limit` if this data is set, only the first `scrape_page_limit` of `start_urls` will be scraped. To remove this limit, remove this `scrape_page_limit` from input.
- > Note: Due to mobile.de limitation at 50 pages, in order to scrape all ads, you should enter multiple urls with sub-search criteria.

## Output

### Output sample for simple data

```json
{
  "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=395079745&action=topOfPage&dam=false&isSearchRequest=true&ref=srp&refId=2f9ce888-eda2-5efa-15ae-ce938ee065a1&s=Car&sb=rel&searchId=2f9ce888-eda2-5efa-15ae-ce938ee065a1&vc=Car",
  "id": 395079745,
  "title": "Audi A6 Avant 50 TDI Q sport S line MATRIX ACC 20\" AV",
  "segment": "Car",
  "category": "Kombi",
  "kba": {
    "hsn": "0588",
    "tsn": "BNH"
  },
  "make": "Audi",
  "model": "A6",
  "previewImage": "https://img.classistatic.de/api/v1/mo-prod/images/2f/2f32eb02-5dea-40cf-ac96-dcc32e5f1200?rule=mo-160.jpg",
  "previewThumbnails": [
    "https://img.classistatic.de/api/v1/mo-prod/images/4c/4c9e4be7-4d2b-43ed-870d-8eb0b248cd60?rule=mo-160.jpg",
    "https://img.classistatic.de/api/v1/mo-prod/images/78/78f07db6-02ea-42f7-9d04-15a0286e4625?rule=mo-160.jpg",
    "https://img.classistatic.de/api/v1/mo-prod/images/ad/addba8e0-6e92-4d8f-91ad-55642e25b0ee?rule=mo-160.jpg"
  ],
  "price": {
    "gross": 41490,
    "net": 34865.55,
    "vat": "19% MwSt."
  },
  "priceRating": "REASONABLE_PRICE",
  "attributes": [
    [
      {
        "value": "EZ 06/2020"
      },
      {
        "value": "66.600 km"
      },
      {
        "value": "210 kW (286 PS)"
      }
    ],
    [
      {
        "value": "Kombi"
      },
      {
        "value": "Unfallfrei",
        "bold": true
      },
      {
        "value": "Diesel"
      },
      {
        "value": "Automatik"
      },
      {
        "value": "HU Neu"
      },
      {
        "value": "4/5 Türen"
      }
    ],
    []
  ],
  "attributes_test": [
    [
      {
        "value": "Unfallfrei",
        "bold": true
      },
      {
        "value": "EZ 06/2020"
      },
      {
        "value": "66.600 km"
      },
      {
        "value": "210 kW (286 PS)"
      },
      {
        "value": "Diesel"
      }
    ],
    []
  ],
  "attr": {
    "cn": "DE",
    "z": "01917",
    "loc": "Kamenz",
    "fr": "06/2020",
    "pw": "210 kW (286 PS)",
    "ft": "Diesel",
    "ml": "66.600 km",
    "cc": "2.967 cm³",
    "tr": "Automatik",
    "gi": "Neu",
    "ecol": "Weiß",
    "eu": "Deutsche Ausführung",
    "door": "4/5",
    "sc": "5",
    "c": "EstateCar",
    "emc": "Euro6",
    "pvo": "1"
  },
  "isVideoEnabled": true,
  "imageCount": 25,
  "isFinancingAvailable": true,
  "supportedLeasingType": null,
  "leasingRate": null,
  "sellerInfo": {
    "name": "Autohaus Elitzsch GmbH",
    "sellerType": "DEALER",
    "country": "DE",
    "location": "DE-01917 Kamenz",
    "logo": "https://img.classistatic.de/api/v1/mo-prod/images/04/04bcd3b9-5ff5-4ca3-b21a-06842fd8392a?rule=mo-80.jpg",
    "phone": "+49 (0)3578 343490",
    "rating": {
      "score": 4.6,
      "count": 35
    }
  }
}

```

## Delisting ads

- First solution: This feature requires to run full scraped. If the ads don't appear in the last full scraped run, then those ads have been delisted.
- Second solution: Use input `detail_page_urls` to check if ads has been delisted

```json
{
	"url": "https://suchen.mobile.de/auto-inserat/volkswagen-t-roc-1-5-tsi-r-line-ledplus-navi-ahk-pano-dab-bayreuth/3911454010.html",
	"is_delisted": true
}
```

## Support

If this ready made scraper does not match your need (input, output, pricing) or you get any issue or you need to scrape other websites, please contact us at: <realspidery@gmail.com> or on X: [realspidery](https://x.com/realspidery)

# Actor input Schema

## `start_urls` (type: `array`):

Start Urls (Ads page list urls)

## `scrape_page_limit` (type: `integer`):

Only scrape X pages of given start\_urls, remove this to run full scrape (max 50)

## Actor input object example

```json
{}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("real_spidery/mobile-de-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("real_spidery/mobile-de-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 '{}' |
apify call real_spidery/mobile-de-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Mobile.de Scraper",
        "description": "[Contact for replacement solution] Mobile.de is the leading classifieds platform for motors/cars/vehicles in Germany and Europe. Mobile.de Scraper is specially made for millions motors/cars/vehicles in EU. Custom solution is available, just drop us an email!",
        "version": "0.0",
        "x-build-id": "2mOrFu3LhiWe5iVef"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/real_spidery~mobile-de-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-real_spidery-mobile-de-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/real_spidery~mobile-de-scraper/runs": {
            "post": {
                "operationId": "runs-sync-real_spidery-mobile-de-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/real_spidery~mobile-de-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-real_spidery-mobile-de-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",
                "properties": {
                    "start_urls": {
                        "title": "Start Urls",
                        "type": "array",
                        "description": "Start Urls (Ads page list urls)",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "scrape_page_limit": {
                        "title": "Only scrape X pages of given start_urls, remove this to run full scraped",
                        "type": "integer",
                        "description": "Only scrape X pages of given start_urls, remove this to run full scrape (max 50)"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
