# Changelog of Leboncoin.fr Car Scraper - France Used Car Listings (`rastriq/leboncoin-scraper`) Actor

- **URL**: https://apify.com/rastriq/leboncoin-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/rastriq/leboncoin-scraper.md

## Changelog

### 0.4 (2026-11-18)

- Apify's daily Store test failed on 2026-11-17 (run JIjeCVHDYhD2Nsyuw: 3 DataDome challenges on datacenter IPs within one second, 0 items) and the actor was flagged "Under maintenance".
- Datacenter attempts go from 3 to 4, with growing back-off between fresh sessions.
- New automatic fallback: when every datacenter attempt is challenged, the run continues on a French residential IP (up to 3 attempts) and stays on it for the remaining pages. Skipped when the user already chose a residential proxy or disabled the Apify proxy.
- `SUMMARY` record in the default key-value store: items, DataDome challenges, pages served through the residential fallback.
- README and proxy input description updated; offline tests for the fallback (`tests/test_proxy_fallback.py`).

### 0.3 (2026-11-15, beta)

- Store page: README rewritten in English (use cases, input/output examples, pricing, limits, FAQ).
- `dataset_schema.json` is now a JSON Schema with nullable types and two views (`overview`,
  `pricing`); `actor.json` points to it (`storages.dataset`) and to a valid `output_schema.json`.
- Input schema: sections, clearer descriptions, prefill `brand: "Peugeot"` and `max_pages: 1`;
  the proxy prefill/default is the Apify datacenter proxy (no residential needed).
- `defaultRunOptions.memoryMbytes` 512 -> 256 (max measured 73 MB).
- No change to the extraction code or to the input/output field names.

### 0.2 (2026-11-14)

- Fix: every run since at least 2026-11-04 ended SUCCEEDED with 0 items because DataDome
  blocked both the JSON API (`api.leboncoin.fr/finder/search`) and the HTML fallback: httpx has a
  non-browser TLS fingerprint.
- Fetch search pages (`/recherche?category=2`) with curl_cffi impersonating Chrome, after a home-page
  warm-up, and parse the ads from `__NEXT_DATA__`. The JSON API is no longer called.
- On a DataDome challenge, rotate session and proxy IP (up to 3 attempts per page).
- The run now FAILS with a clear message when it extracts 0 items.
- Output fields unchanged. `hp` now comes from `horse_power_din` (was fiscal CV); `fuel_type` and
  `gearbox` are the human-readable labels (e.g. "Hybride", "Automatique") instead of numeric codes.
  Duplicate ads across pages are skipped.

### 0.1 (2026-06-22)

- Initial version (httpx against the finder API, HTML fallback).
