# CapCar Data Scraper

Extract vehicle information (brand, price, model, etc.) from CapCar using URLs as input.

- Template page: [https://www.octoparse.com/template/capcar-voiture-data-scraper](https://www.octoparse.com/template/capcar-voiture-data-scraper)
- Categories: Others
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages.

## Output

The current workflow extracts 10 fields, including `Année`, `Boîte_de_vitesse`, `Kilométrage`, `Photo_URL`, `Prix`, `Sous_Titre`, `Titre`, `URL_de_la_page_détaillée`, `Énergie`, `Étiquette`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URLs (up to 10000) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URLs (up to 10000)

Required. URLs Constraints: minItems=1; maxItems=10000.

## How to Use

## CapCar Data Scraper

Collects vehicle information (title, price, model, etc.) from [CapCar](https://www.capcar.fr/) listing pages using URLs as input.

### Pricing
No per-line charge. Octoparse plan or resource limits may apply.

### Input
- **URLs** (up to 10,000) – one per line.

### Output Fields
- `Titre`
- `Sous_Titre`
- `Prix`
- `Année`
- `Kilométrage`
- `Énergie`
- `Boîte_de_vitesse`
- `Étiquette`
- `Photo_URL`
- `URL_de_la_page_détaillée`

### How to Use
1. Open the template and click **Try it** or **Start**.
2. Enter up to 10,000 CapCar listing URLs.
3. Choose local or cloud run.
4. Review the returned rows, then export or process the data.

### Limitations
- Collects only fields shown in Output from the listing page; does not add data not displayed by CapCar.
- `Étiquette`, `Photo_URL`, and `URL_de_la_page_détaillée` may be empty if the source does not provide them.

### Tips
- Test with one or a few URLs before scaling.
- Use the most specific valid URLs to reduce irrelevant records.
- Use a stable identifier from `Titre`, `Sous_Titre`, `Prix`, `Année`, `Kilométrage`, `Énergie`, `Boîte_de_vitesse`, `Étiquette`, `Photo_URL`, or `URL_de_la_page_détaillée` as a deduplication key when available.

### Scheduling & Export
- Schedule local or cloud runs. Keep your computer and Octoparse open for local scheduled runs.
- Export to CSV, Excel, JSON, databases, or cloud storage.
- Use Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates) for reuse.
- Scheduling and API access may require a paid Octoparse plan.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Leboncoin Data Scraper](https://www.octoparse.com/template/leboncoin-data-scraper)
- [North Data Scraper](https://www.octoparse.com/template/north-data-scraper)
- [Kompass Data Scraper](https://www.octoparse.com/template/kompass-scraper)
- [Vinted Data Scraper (by keywords)](https://www.octoparse.com/template/vinted-data-scraper)
- [Pap.fr Immobilier Data Scraper](https://www.octoparse.com/template/pap-scraper)

## Input Schema

```json
{
  "title": "CapCar Data Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRLs": {
      "title": "URLs (up to 10000)",
      "description": "URLs",
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRLs"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "uRLs": [
    "https://www.capcar.fr/voiture-occasion?category=Break"
  ]
}
```

Example 2

```json
{
  "uRLs": [
    "https://www.capcar.fr/voiture-occasion?category=Break"
  ]
}
```

Example 3

```json
{
  "uRLs": [
    "https://www.capcar.fr/voiture-occasion?category=Break"
  ]
}
```

Example 4

```json
{
  "uRLs": [
    "https://www.capcar.fr/voiture-occasion?category=Break"
  ]
}
```

Example 5

```json
{
  "uRLs": [
    "https://www.capcar.fr/voiture-occasion?category=Break"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Année": {
      "type": "string",
      "description": ""
    },
    "Boîte_de_vitesse": {
      "type": "string",
      "description": ""
    },
    "Kilométrage": {
      "type": "string",
      "description": ""
    },
    "Photo_URL": {
      "type": "string",
      "description": ""
    },
    "Prix": {
      "type": "string",
      "description": ""
    },
    "Sous_Titre": {
      "type": "string",
      "description": ""
    },
    "Titre": {
      "type": "string",
      "description": ""
    },
    "URL_de_la_page_détaillée": {
      "type": "string",
      "description": ""
    },
    "Énergie": {
      "type": "string",
      "description": ""
    },
    "Étiquette": {
      "type": "string",
      "description": ""
    }
  },
  "title": "CapCar Data Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Année": "2019",
  "Boîte_de_vitesse": "",
  "Kilométrage": "",
  "Photo_URL": "https://content.capcar.fr/w_512,q_auto,f_auto,fl_progressive:semi/production/products/2026/r0121218/pictures/b33dfffa-5842-43b0-b628-3f2c4f0109ac.jpg",
  "Prix": "",
  "Sous_Titre": "",
  "Titre": "",
  "URL_de_la_page_détaillée": "https://www.capcar.fr/voiture-occasion/skoda-fabia_combi-r0121218",
  "Énergie": "",
  "Étiquette": "TRÈS BONNE AFFAIRE"
}
```

Example 2

```json
{
  "Année": "2019",
  "Boîte_de_vitesse": "",
  "Kilométrage": "",
  "Photo_URL": "https://content.capcar.fr/w_512,q_auto,f_auto,fl_progressive:semi/production/products/2026/r0120041/pictures/6b605189-3a87-4c49-8819-288a8463b631.jpg",
  "Prix": "",
  "Sous_Titre": "",
  "Titre": "",
  "URL_de_la_page_détaillée": "https://www.capcar.fr/voiture-occasion/audi-a6_avant-r0120041",
  "Énergie": "",
  "Étiquette": "TRÈS BONNE AFFAIRE"
}
```

Example 3

```json
{
  "Année": "2022",
  "Boîte_de_vitesse": "",
  "Kilométrage": "",
  "Photo_URL": "https://content.capcar.fr/w_512,q_auto,f_auto,fl_progressive:semi/production/products/2026/r0118788/pictures/930ae355-9ac1-4a93-9c07-8d7c8d92125a.jpg",
  "Prix": "",
  "Sous_Titre": "",
  "Titre": "",
  "URL_de_la_page_détaillée": "https://www.capcar.fr/voiture-occasion/peugeot-308_sw-r0118788",
  "Énergie": "",
  "Étiquette": "PREMIÈRE MAIN"
}
```

Example 4

```json
{
  "Année": "2017",
  "Boîte_de_vitesse": "",
  "Kilométrage": "",
  "Photo_URL": "https://content.capcar.fr/w_512,q_auto,f_auto,fl_progressive:semi/production/products/2026/r0114412/pictures/0cde54ee-ddf8-4df3-8a48-7e02ff0436e2.jpg",
  "Prix": "",
  "Sous_Titre": "",
  "Titre": "",
  "URL_de_la_page_détaillée": "https://www.capcar.fr/voiture-occasion/mercedes-classe_cla_shooting_brake-r0114412",
  "Énergie": "",
  "Étiquette": "BONNE AFFAIRE"
}
```

Example 5

```json
{
  "Année": "2019",
  "Boîte_de_vitesse": "",
  "Kilométrage": "",
  "Photo_URL": "https://content.capcar.fr/w_512,q_auto,f_auto,fl_progressive:semi/production/products/2026/r0113001/pictures/6aa12d07-dc9a-4c2e-ac2a-ee75aa0affe3.jpg",
  "Prix": "",
  "Sous_Titre": "",
  "Titre": "",
  "URL_de_la_page_détaillée": "https://www.capcar.fr/voiture-occasion/bmw-serie_3_touring-r0113001",
  "Énergie": "",
  "Étiquette": "GARANTIE CONSTRUCTEUR"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "capcar-voiture-data-scraper",
  "taskName": "CapCar Data Scraper",
  "parameters": "{\"uRLs\":[\"https://www.capcar.fr/voiture-occasion?category=Break\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRLs\":[\"https://www.capcar.fr/voiture-occasion?category=Break\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "capcar-voiture-data-scraper",
        "taskName": "CapCar Data Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "capcar-voiture-data-scraper",
  "taskName": "CapCar Data Scraper",
  "parameters": "{\"uRLs\":[\"https://www.capcar.fr/voiture-occasion?category=Break\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `capcar-voiture-data-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/capcar-voiture-data-scraper.json)
- [Manifest](https://www.octoparse.com/templates/capcar-voiture-data-scraper-manifest.json)
