Skip to main content
Piloterr
Back to library

Leboncoin Ad API

Extract full details from a Leboncoin ad including price, location, attributes, seller info, and images. Returns structured JSON by default, or raw HTML on demand.

Active1 credit = 1 requestGET/v2/leboncoin/ad

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

Extract complete data from any active Leboncoin ad. Accepts both a numeric ad ID and a full Leboncoin URL, and returns structured JSON by default. Switch to raw HTML via return_page_source=true.

QuickstartLink to Quickstart

GET https://api.piloterr.com/v2/leboncoin/ad?query=https://www.leboncoin.fr/ad/equipement_auto/3012186547

ParametersLink to Parameters

Parameter Type Required Default Description
query string yes - Ad ID or full Leboncoin URL
return_page_source boolean no false false = parsed JSON, true = raw HTML

Status codesLink to Status codes

  • 200 Ad found
  • 404 Ad does not exist or has been removed (applies to both JSON and HTML modes)
  • 400 Invalid input

Main use casesLink to Main use cases

  • Benchmark used vehicle prices from Leboncoin
  • Monitor classifieds categories for pricing trends
  • Enrich CRM with seller contact details
  • Aggregate classifieds data for market intelligence

Related APIs

Expand your data capabilities with these complementary tools.

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included