# TheParkingCars.com Scraper (`fervent_bus/theparking-cars-scraper`) Actor

Extract car listings from theparking-cars.com - international car marketplace aggregator. Get car details including title, price, year, mileage, location, images, and seller information.

- **URL**: https://apify.com/fervent\_bus/theparking-cars-scraper.md
- **Developed by:** [Archit Khurana](https://apify.com/fervent_bus) (community)
- **Categories:** E-commerce
- **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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TheParkingCars.com Scraper

Extract car listings from [theparking-cars.com](https://www.theparking-cars.com), an international car marketplace aggregator that consolidates listings from across the US and Europe.

### Features

- 🚗 **Comprehensive Data Extraction**: Car title, price, year, mileage, location, images, seller info
- 🌍 **International Coverage**: Scrapes listings from all countries on the platform
- 📊 **Structured Output**: Clean, validated data using Pydantic models
- 🔄 **Pagination Support**: Automatically follows "Next" page links
- 🛡️ **Anti-Detection**: Built-in stealth techniques for reliable scraping
- ⚡ **Playwright-Based**: Fast, reliable browser automation

### Input Parameters

| Parameter | Type | Required | Description | Default |
|-----------|------|----------|-------------|---------|
| `startUrl` | String | Yes | Category or search results URL to start from | `https://www.theparking-cars.com/used-cars/SUV.html` |
| `maxPages` | Integer | No | Maximum number of pages to scrape (1-100) | `5` |

### Output Schema

Each car listing contains:

```json
{
  "title": "Chevrolet Traverse LT",
  "price": "53,389",
  "original_price": "55,000",
  "currency": "$",
  "year": 2026,
  "mileage": "89,458 MI",
  "fuel_type": "Gasoline",
  "transmission": "Automatic",
  "location": "VIRGINIA",
  "postal_code": "20176",
  "description": "Well-maintained SUV",
  "images": ["https://img.leparking.fr/300x225/pkg/..."],
  "listing_date": "9/17/2026",
  "seller_type": "Dealer",
  "seller_website": "https://cars.com",
  "listing_url": "https://www.theparking-cars.com/used-cars-detail/...",
  "sponsored": false
}
```

### Usage Examples

#### Basic Usage - Scrape SUV Category

```json
{
  "startUrl": "https://www.theparking-cars.com/used-cars/SUV.html",
  "maxPages": 5
}
```

#### Scrape Specific Car Model

```json
{
  "startUrl": "https://www.theparking-cars.com/used-cars/tesla.html",
  "maxPages": 10
}
```

#### Scrape All Cars from a Region

```json
{
  "startUrl": "https://www.theparking-cars.com/used-cars/",
  "maxPages": 20
}
```

#### Scrape Specific Category

```json
{
  "startUrl": "https://www.theparking-cars.com/used-cars/Supercar.html",
  "maxPages": 3
}
```

### How to Find Start URLs

1. **Browse Categories**: Visit [theparking-cars.com](https://www.theparking-cars.com)
2. **Select Filters**: Choose make, model, type, location, price range, etc.
3. **Copy URL**: Use the filtered results page URL as your `startUrl`

#### Popular Categories

- SUVs: `https://www.theparking-cars.com/used-cars/SUV.html`
- Supercars: `https://www.theparking-cars.com/used-cars/Supercar.html`
- 4-door Coupé: `https://www.theparking-cars.com/used-cars/4-door-coupe.html`
- Collection: `https://www.theparking-cars.com/used-cars/collection.html`

### Tips & Best Practices

#### Optimize Your Scraping

- **Start Small**: Test with `maxPages: 1-3` before running large scrapes
- **Targeted URLs**: Use specific category/model URLs instead of homepage
- **Monitor Runs**: Check logs during execution for extraction accuracy

#### Data Quality

- **Validate Results**: First run should be reviewed for data quality
- **Missing Fields**: Some listings may not have all fields (normal behavior)
- **Image URLs**: Generic placeholders are filtered out automatically

#### Performance

- **Pagination Limit**: Set `maxPages` based on your needs (each page ≈ 20-30 listings)
- **Run Time**: Approximately 5-10 seconds per page
- **Memory**: Actor uses ~500MB-1GB RAM

### Technical Details

- **Language**: Python 3.11
- **Framework**: Apify SDK 2.x
- **Browser**: Playwright with Chromium
- **Anti-Detection**: BrowserForge + custom stealth scripts
- **Validation**: Pydantic 2.x models

### Troubleshooting

#### No Results Extracted

- Verify the `startUrl` loads correctly in a regular browser
- Check if the site structure has changed (view logs for errors)
- Try a different category URL

#### Partial Data Missing

- Some listings naturally lack certain fields (year, mileage, etc.)
- Original prices only appear on discounted listings

#### Actor Timeout

- Reduce `maxPages` parameter
- Site may be slow or blocking requests - check logs

### Support

For issues or questions:

1. Check the logs for specific error messages
2. Verify your input parameters are correct
3. Test with a smaller `maxPages` value first

### Version History

#### v1.0 (2026)

- Initial release
- Support for basic listing extraction
- Pagination handling
- Anti-detection measures
- Pydantic validation

# Actor input Schema

## `searchMode` (type: `string`):

How to find cars: direct URL or build search from filters

## `startUrl` (type: `string`):

Direct URL to scrape. Examples:

- By category: https://www.theparking-cars.com/used-cars/SUV.html
- By country: https://www.theparking-cars.com/used-cars/bulgaria.html
- By brand: https://www.theparking-cars.com/TOYOTA-used-cars.html
- Specific search: https://www.theparking-cars.com/BMW-X5-used-cars.html

## `country` (type: `string`):

Filter cars by country

## `category` (type: `string`):

Car body type

## `brand` (type: `string`):

Car manufacturer (e.g., BMW, Toyota, Mercedes, Audi, Ford). Leave empty for all brands.

## `model` (type: `string`):

Specific car model (e.g., X5, Camry, C-Class). Requires brand to be set.

## `maxPages` (type: `integer`):

Maximum number of search result pages to scrape. Each page typically contains 20-30 listings. Set higher for comprehensive scraping.

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

Proxy settings for bypassing blocks

## Actor input object example

```json
{
  "searchMode": "url",
  "startUrl": "https://www.theparking-cars.com/used-cars/bulgaria.html",
  "country": "",
  "category": "",
  "brand": "BMW",
  "model": "X5",
  "maxPages": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `datasetLink` (type: `string`):

Complete car listings dataset

# 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 = {
    "startUrl": "https://www.theparking-cars.com/used-cars/SUV.html",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fervent_bus/theparking-cars-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 = {
    "startUrl": "https://www.theparking-cars.com/used-cars/SUV.html",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fervent_bus/theparking-cars-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 '{
  "startUrl": "https://www.theparking-cars.com/used-cars/SUV.html",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fervent_bus/theparking-cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fervent_bus/theparking-cars-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/KID74p0kFLZdgHybj/builds/VmnfJHYGaB65X5jHz/openapi.json
