# Leboncoin Data Scraper

Scrape products name, price, adresse, etc from Leboncoin by listing page URLs.

- Template page: [https://www.octoparse.com/template/leboncoin-data-scraper](https://www.octoparse.com/template/leboncoin-data-scraper)
- Categories: E-Commerce, Real Estate
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## Pricing

Current price: **$1.5/1,000 lines**. Billing is based on output rows; an Octoparse subscription may be required.

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

## Output

The current workflow extracts 16 fields, including `Adresse`, `Catégorie`, `Critères`, `Current_time`, `Date_pub`, `Dernière_modification`, `Description`, `Detail_url`, `Favoris`, `Image`, `Information_clé`, `Prix`, `Propriétaire`, `Tag`, `Titre`, `État`.

## 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 Search Resultat URLs (up to 1000), PageSize (1-100) and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Search Resultat URLs (up to 1000)

Required. MainKeys Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=10000.

### PageSize (1-100)

Optional. PageSize Constraints: minimum=1, maximum=100.

## How to Use

# Leboncoin Data Scraper

Collects product name, price, address, and other details from Leboncoin listing page URLs.

## Input

- **Search Resultat URLs (up to 1000)** (required) – one URL per line.
- **PageSize (1-100)** (optional) – number from 1 to 100.

## Output

Returns fields including `Titre`, `Image`, `Prix`, `Catégorie`, `Adresse`, `Dernière_modification`, `Description`, `État`, `Propriétaire`, `Critères`, `Information_clé`, `Date_pub`, `Favoris`, `Tag`, `Current_time`, and `Detail_url`.

## Pricing

**$1.5 / 1,000 lines** – billed on output lines produced.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Enter the required inputs.
3. Run the task in the cloud.
4. Review the output rows and export or process the data.

## Limitations

- Only collects fields Leboncoin displays on detail pages.
- Fields such as `Tag`, `Current_time`, and `Detail_url` may be empty if the source does not provide them.

## 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 Immobilier Infos Scraper](https://www.octoparse.com/template/leboncoin-immobilier-infos-scraper)
- [Leboncoin Emploi Infos Scraper](https://www.octoparse.com/template/leboncoin-emploi-infos-scraper)
- [Leboncoin Véhicules Infos Scraper](https://www.octoparse.com/template/leboncoin-vehicules-infos-scraper)
- [North Data Scraper](https://www.octoparse.com/template/north-data-scraper)
- [Kompass Data Scraper](https://www.octoparse.com/template/kompass-scraper)

## Input Schema

```json
{
  "title": "Leboncoin Data Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "search_Resultat_URLs": {
      "title": "Search Resultat URLs (up to 1000)",
      "description": "MainKeys",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "pageSize": {
      "title": "PageSize (1-100)",
      "description": "PageSize",
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "search_Resultat_URLs"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "pageSize": 20,
  "search_Resultat_URLs": [
    "https://www.leboncoin.fr/recherche?category=10&locations=Groisy_74570__46.0122_6.1736_5000",
    "https://www.leboncoin.fr/recherche?category=10&locations=Villaz_74370__45.9535_6.1917_5000",
    "https://www.leboncoin.fr/recherche?category=10&locations=Charvonnex_74370__45.9806_6.1653_5000",
    "https://www.leboncoin.fr/recherche?category=10&locations=N%C3%A2ves-Parmelan_74370__45.9378_6.1897_5000"
  ]
}
```

Example 2

```json
{
  "pageSize": 30,
  "search_Resultat_URLs": [
    "https://www.leboncoin.fr/recherche?category=10&locations=Filli%C3%A8re_74570__45.99665_6.24658_5000"
  ]
}
```

Example 3

```json
{
  "search_Resultat_URLs": [
    "https://www.leboncoin.fr/recherche?text=iphone&locations=Paris_75001__48.85717_2.3414_1808_5000&price=1000-1500"
  ]
}
```

Example 4

```json
{
  "pageSize": 50,
  "search_Resultat_URLs": [
    "https://www.leboncoin.fr/recherche?text=iphone",
    "https://www.leboncoin.fr/recherche?text=v%C3%A9lo&locations=Paris_75015__48.84106_2.29933_2752_5000"
  ]
}
```

Example 5

```json
{
  "pageSize": 50,
  "search_Resultat_URLs": [
    "https://www.leboncoin.fr/recherche?text=iphone",
    "https://www.leboncoin.fr/recherche?text=v%C3%A9lo&locations=Paris_75015__48.84106_2.29933_2752_5000"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Adresse": {
      "type": "string",
      "description": ""
    },
    "Catégorie": {
      "type": "string",
      "description": ""
    },
    "Critères": {
      "type": "string",
      "description": ""
    },
    "Current_time": {
      "type": "string",
      "description": ""
    },
    "Date_pub": {
      "type": "string",
      "description": ""
    },
    "Dernière_modification": {
      "type": "string",
      "description": ""
    },
    "Description": {
      "type": "string",
      "description": ""
    },
    "Detail_url": {
      "type": "string",
      "description": ""
    },
    "Favoris": {
      "type": "string",
      "description": ""
    },
    "Image": {
      "type": "string",
      "description": ""
    },
    "Information_clé": {
      "type": "string",
      "description": ""
    },
    "Prix": {
      "type": "string",
      "description": ""
    },
    "Propriétaire": {
      "type": "string",
      "description": ""
    },
    "Tag": {
      "type": "string",
      "description": ""
    },
    "Titre": {
      "type": "string",
      "description": ""
    },
    "État": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Leboncoin 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
{
  "Adresse": "Villaz 74370",
  "Catégorie": "Locations",
  "Critères": "activity_sector:2;external_ad_id:ubiflow_ACCPI2715004_558934838;Type de bien:Appartement;Ce bien est ::Meublé;Surface habitable:33 m²;Nombre de pièces:1;Nombre de salles d'eau:1;Classe énergie:B;GES:C;Caractéristiques:Cuisine équipée, Interphone;Type de chauffage:Individuel;Étage de votre bien:1;Ascenseur:Non;Extérieur:Terrasse;Charges locatives:40 €;Dépôt de garantie:1600 €;Charges incluses:Oui;Frais d'état des lieux:101 €;pro_rates_link:https://www.gerimalp.fr/metier/honoraires-agence;mandate_type:simple;has_visibility_option:true;visibility_option_products:RE_SUPER_VISIBILITY_FEATURE;store_logo:https://img.leboncoin.fr/api/v1/lbcpb1/images/3d/83/f5/3d83f5f8-3075-4893-a6e9-54eb7f494ed1?rule=bo-thumb;store_name:GERIMALP;online_store_id:3160355;Référence:72728;is_import:true;lease_type:rent;Honoraires:370;Loyer mensuel (hors charges):800;floor_display:Étage 1",
  "Current_time": "2026-11-18 16:05:49",
  "Date_pub": "2026-11-09 12:20:38",
  "Dernière_modification": "2026-11-09 12:20:38",
  "Description": "Location - Appartement - 1 pièce + cuisine - 33,68 m² -\n\nA LOUER - VILLAZ - STUDIO MEUBLE DE 33.68 m² - CAVE - GARAGE - TERRASSE\n\nNous vous proposons à la location sur la commune de VILLAZ, un appartement de type studio de 33.68 m² loué meublé avec une terrasse, une cave et un garage.\n\nDans une copropriété récente, au 1er étage, il se compose d'une entrée avec un rangement, d'une agréable pièce de vie avec cuisine équipée ouverte sur le séjour, d'un balcon terrasse exposé Sud-Est, d'une salle d'eau avec W.C et d'un cellier.\n\nVous disposerez d'un lit escamotable pour plus de confort.\n\nUne cave et un garage complètent le logement.\n\nVous apprécierez son très bon état, sa luminosité, ses aménagements et son garage privatif.\n\nDisponible le 1er décembre 2026.\n\nSi vous souhaitez visiter le logement, merci de déposer votre dossier sur la plateforme SEVENTEE.\nCe que nous aimons :\nVous apprécierez son très bon état, sa luminosité, ses aménagements et son garage privatif.\nAdresse : 74370 - VILLAZ - 53 rue du Félan.\nMeublé : Oui.\nLoyer HC : 800 €.\nCharges mensuelles : 40 €.\nHonoraires de location : 370.48 €.\nDépôt de garantie : 1600 €.\nDPE : 60 (B).\nPour découvrir cette réelle opportunité de location, contactez-moi : gerimalp - 133 avenue de Genève - 74000 Annecy - Consultez notre site *** pour plus de photos et d'informations sur ce bien.\nNos honoraires : ***\nLes informations sur les risques auxquels ce bien est exposé sont disponibles sur le site Géorisques : www.georisques.gouv.fr\nRéférence annonce : 72728\nDate de réalisation du diagnostic : 05/03/2018\nHonoraires à la charge du locataire : 370 € TTC dont 101 € pour l’état des lieux\nDépôt de garantie : 1600 €\nMontant des charges : 40 € / mois",
  "Detail_url": "https://www.leboncoin.fr/ad/locations/3305566815",
  "Favoris": "15",
  "Image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/1a/2c/1e/1a2c1e3ada5d1ab5021fbbbe89be56b25e04ed3c.jpg?rule=ad-large",
  "Information_clé": "activity_sector:2;external_ad_id:ubiflow_ACCPI2715004_558934838;Type de bien:Appartement;Ce bien est ::Meublé;Surface habitable:33 m²;Nombre de pièces:1;Nombre de salles d'eau:1;Classe énergie:B;GES:C;Caractéristiques:Cuisine équipée, Interphone;Type de chauffage:Individuel;Étage de votre bien:1;Ascenseur:Non;Extérieur:Terrasse;Charges locatives:40 €;Dépôt de garantie:1600 €;Charges incluses:Oui;Frais d'état des lieux:101 €;pro_rates_link:https://www.gerimalp.fr/metier/honoraires-agence;mandate_type:simple;has_visibility_option:true;visibility_option_products:RE_SUPER_VISIBILITY_FEATURE;store_logo:https://img.leboncoin.fr/api/v1/lbcpb1/images/3d/83/f5/3d83f5f8-3075-4893-a6e9-54eb7f494ed1?rule=bo-thumb;store_name:GERIMALP;online_store_id:3160355;Référence:72728;is_import:true;lease_type:rent;Honoraires:370;Loyer mensuel (hors charges):800;floor_display:Étage 1",
  "Prix": "840 €",
  "Propriétaire": "GERIMALP",
  "Tag": "pro",
  "Titre": "Studio 1 pièce 33 m²",
  "État": "101 €"
}
```

Example 2

```json
{
  "Adresse": "Fillière 74570 Thorens-Glières",
  "Catégorie": "Locations",
  "Critères": "activity_sector:2;external_ad_id:laboiteimmo_17664_2384;Type de bien:Appartement;Ce bien est ::Meublé;Surface habitable:32 m²;Surface totale du terrain:50 m²;Nombre de pièces:1;Nombre de salles d'eau:1;Classe énergie:Vierge;GES:Vierge;Caractéristiques:Avec garage ou place de parking, Cave;Type de chauffage:Individuel;Mode de chauffage:Électrique;Extérieur:Terrasse, Jardin;Places de parking:1;Année de construction:1949;Disponible à partir de:12/2026;Charges locatives:15 €;Charges incluses:Oui;Frais d'état des lieux:0 €;mandate_type:simple;Bien soumis à l'encadrement des loyers:Non;Référence:1844;is_import:true;lease_type:rent;Loyer mensuel (hors charges):605",
  "Current_time": "2026-11-18 16:02:16",
  "Date_pub": "2026-11-16 15:18:44",
  "Dernière_modification": "2026-11-16 15:18:44",
  "Description": "Studio 1 pièce 32 m²\n\nIdéal étudiant: Entre Thorens et Laroche sur Foron au niveau du col des fleuries~~Prestations RBNB pour ce Magnifique studio recent de 32m2 entièrement meublé où vous n'aurez que vos valises a poser: Belle pièce de vie avec cuisine entièrement équipée et toute la vaisselle, coin salon avec canapé lit convertible de qualité, couette, draps, serviettes...~Placard, terrasse, 50m2 de jardin en pleine nature à 10mn de Laroche et 7mn de Thorens.~Pour amoureux de la campagne uniquement.~Libre au 20/12/2026.\n Garantie par caution physique ou organisme de cautionnement demandé.\n\nSurface : 32 m²\nModalité de récupération des charges locatives : Prévisionnelles mensuelles avec régularisation annuelle\n\nConsommation énergie primaire : Non communiqué\nConsommation énergie finale : 0 kWh/m²/an",
  "Detail_url": "https://www.leboncoin.fr/ad/locations/3310807429",
  "Favoris": "15",
  "Image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/51/12/b0/5112b08cdcf9d3beee74b26a4739173a898cded4.jpg?rule=ad-large",
  "Information_clé": "activity_sector:2;external_ad_id:laboiteimmo_17664_2384;Type de bien:Appartement;Ce bien est ::Meublé;Surface habitable:32 m²;Surface totale du terrain:50 m²;Nombre de pièces:1;Nombre de salles d'eau:1;Classe énergie:Vierge;GES:Vierge;Caractéristiques:Avec garage ou place de parking, Cave;Type de chauffage:Individuel;Mode de chauffage:Électrique;Extérieur:Terrasse, Jardin;Places de parking:1;Année de construction:1949;Disponible à partir de:12/2026;Charges locatives:15 €;Charges incluses:Oui;Frais d'état des lieux:0 €;mandate_type:simple;Bien soumis à l'encadrement des loyers:Non;Référence:1844;is_import:true;lease_type:rent;Loyer mensuel (hors charges):605",
  "Prix": "620 €",
  "Propriétaire": "GLIERES IMMOBILIER",
  "Tag": "pro",
  "Titre": "Studio 1 pièce 32 m²",
  "État": "0 €"
}
```

Example 3

```json
{
  "Adresse": "Paris 75015",
  "Catégorie": "Téléphones & Objets connectés",
  "Critères": "profile_picture_url:https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/f4d7c4e3-6cba-5ede-9fde-a8e72a08369c?rule=pp-small;estimated_parcel_weight:405;estimated_parcel_size:M;is_bundleable:true;is_eligible_to_warranty:true;purchase_cta_visible:true;negotiation_cta_visible:true;country_isocode3166:FR;État:État neuf;Produit:Smartphone;Marque:Apple;Modèle:Autre;Couleur:Noir;Capacité de stockage:256 Go;Année de fabrication:2026;shipping_type:face_to_face;shippable:false;is_import:false;payment_methods:installments3x",
  "Current_time": "2026-11-12 14:19:29",
  "Date_pub": "2026-11-08 14:19:28",
  "Dernière_modification": "2026-11-12 14:19:28",
  "Description": "Je mets en vente un iPhone 18 Pro 256 Go, coloris Noir.\n\n* État : neuf, jamais utilisé\n* Boîte d’origine entièrement scellée\n* Téléphone jamais ouvert, jamais activé\n* Capacité : 256 Go\n* Couleur : Noir\n\nProduit neuf, idéal pour profiter du dernier iPhone Pro sans payer le prix fort en magasin.\n\nRemise en main propre uniquement.\n\nPrix : 1200€\n\nVente sérieuse, pas d’échange.",
  "Detail_url": "https://www.leboncoin.fr/ad/telephones_objets_connectes/3304862553",
  "Favoris": "5",
  "Image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/96/61/41/966141ea3d1eda53cb3ed63b746028c890306fae.jpg?rule=ad-large",
  "Information_clé": "profile_picture_url:https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/f4d7c4e3-6cba-5ede-9fde-a8e72a08369c?rule=pp-small;estimated_parcel_weight:405;estimated_parcel_size:M;is_bundleable:true;is_eligible_to_warranty:true;purchase_cta_visible:true;negotiation_cta_visible:true;country_isocode3166:FR;État:État neuf;Produit:Smartphone;Marque:Apple;Modèle:Autre;Couleur:Noir;Capacité de stockage:256 Go;Année de fabrication:2026;shipping_type:face_to_face;shippable:false;is_import:false;payment_methods:installments3x",
  "Prix": "1 200 €",
  "Propriétaire": "Maxime",
  "Tag": "private",
  "Titre": "Apple iphone 18 pro – 256 go – noir – neuf sous blister",
  "État": "État neuf"
}
```

Example 4

```json
{
  "Adresse": "Paris 75011 Popincourt",
  "Catégorie": "Téléphones & Objets connectés",
  "Critères": "activity_sector:3;rating_score:0.97;rating_count:6;stock_quantity:1;country_isocode3166:FR;État:Très bon état;Produit:Smartphone;Marque:Apple;Modèle:iPhone 13;Couleur:Noir;Capacité de stockage:128 Go;shippable:false;is_import:false;Durée de disponibilité des pièces détachées:1 an",
  "Current_time": "2026-11-11 09:52:06",
  "Date_pub": "2026-09-15 12:07:08",
  "Dernière_modification": "2026-11-11 09:57:20",
  "Description": "Bonjour,\nNous sommes un magasin situé sur Paris 11 Eme.\nNos iPhone 13 sont à partir de 190€\nDisponible au 6 Rue voltaire 75011.\nLivraison dans toute la France 🇫🇷 \nFUTUR X. \nOuvert du lundi au samedi de 11h à 18h30.\nCable, chargeur, coque et verre trempé offert. \nGaranti à 1 an. \nAppelez le magasin avant de vous déplacer \nFournis avec coque verre trempé et chargeur.\nProduit original et non reconditionné.\nMagasin FUTURX\n6 Rue voltaire 75011",
  "Detail_url": "https://www.leboncoin.fr/ad/telephones_objets_connectes/3128066526",
  "Favoris": "397",
  "Image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/d2/1c/1e/d21c1e44b40e6971b58c84697d37dfbc536165f1.jpg?rule=ad-large",
  "Information_clé": "activity_sector:3;rating_score:0.97;rating_count:6;stock_quantity:1;country_isocode3166:FR;État:Très bon état;Produit:Smartphone;Marque:Apple;Modèle:iPhone 13;Couleur:Noir;Capacité de stockage:128 Go;shippable:false;is_import:false;Durée de disponibilité des pièces détachées:1 an",
  "Prix": "190 €",
  "Propriétaire": "FUTURX",
  "Tag": "pro",
  "Titre": "IPhone 13 128 GB - Original non reconditionné",
  "État": "Très bon état"
}
```

Example 5

```json
{
  "Adresse": "Paris 75002 Bourse - Vivienne",
  "Catégorie": "Vélos",
  "Critères": "profile_picture_url:https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/default/2b3c1984-b5ad-5164-8f30-4a8e2cc15f47?rule=pp-small;estimated_parcel_weight:70000;estimated_parcel_size:L;is_bundleable:true;purchase_cta_visible:true;negotiation_cta_visible:true;pricing_product:autre;country_isocode3166:FR;Type:Autre;Taille:M;Couleur:Noir;Taille de roue:Autre;État:Très bon état;Univers:Mixte;shipping_type:face_to_face;shippable:false;is_import:false;payment_methods:installments3x",
  "Current_time": "2026-11-11 08:21:52",
  "Date_pub": "2026-11-05 22:22:08",
  "Dernière_modification": "2026-11-10 20:31:48",
  "Description": "Je vends ce vélo d'appartement  connecté,marque PELOTON  idéal pour s'entraîner à domicile. Cause déménagement \n- Type de produit : Vélo d'appartement\n- Marque : Peloton\n- Univers : Mixte\n- Taille du cadre : M\n- Couleur : Noir\nTrès bon état\nPrêt à rouler, aucun frais à prévoir.",
  "Detail_url": "https://www.leboncoin.fr/ad/velos/3303034145",
  "Favoris": "4",
  "Image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/99/4f/15/994f15955e6457d7810c4877618113528ba9087a.jpg?rule=ad-large",
  "Information_clé": "profile_picture_url:https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/default/2b3c1984-b5ad-5164-8f30-4a8e2cc15f47?rule=pp-small;estimated_parcel_weight:70000;estimated_parcel_size:L;is_bundleable:true;purchase_cta_visible:true;negotiation_cta_visible:true;pricing_product:autre;country_isocode3166:FR;Type:Autre;Taille:M;Couleur:Noir;Taille de roue:Autre;État:Très bon état;Univers:Mixte;shipping_type:face_to_face;shippable:false;is_import:false;payment_methods:installments3x",
  "Prix": "500 €",
  "Propriétaire": "Claude Helen",
  "Tag": "private",
  "Titre": "Velo d'intérieur PELOTON connecté",
  "État": "Très bon état"
}
```

## 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": "leboncoin-data-scraper",
  "taskName": "Leboncoin Data Scraper",
  "parameters": "{\"pageSize\":20,\"search_Resultat_URLs\":[\"https://www.leboncoin.fr/recherche?category=10&locations=Groisy_74570__46.0122_6.1736_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=Villaz_74370__45.9535_6.1917_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=Charvonnex_74370__45.9806_6.1653_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=N%C3%A2ves-Parmelan_74370__45.9378_6.1897_5000\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"pageSize\":20,\"search_Resultat_URLs\":[\"https://www.leboncoin.fr/recherche?category=10&locations=Groisy_74570__46.0122_6.1736_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=Villaz_74370__45.9535_6.1917_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=Charvonnex_74370__45.9806_6.1653_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=N%C3%A2ves-Parmelan_74370__45.9378_6.1897_5000\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "leboncoin-data-scraper",
        "taskName": "Leboncoin 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": "leboncoin-data-scraper",
  "taskName": "Leboncoin Data Scraper",
  "parameters": "{\"pageSize\":20,\"search_Resultat_URLs\":[\"https://www.leboncoin.fr/recherche?category=10&locations=Groisy_74570__46.0122_6.1736_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=Villaz_74370__45.9535_6.1917_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=Charvonnex_74370__45.9806_6.1653_5000\",\"https://www.leboncoin.fr/recherche?category=10&locations=N%C3%A2ves-Parmelan_74370__45.9378_6.1897_5000\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `leboncoin-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/leboncoin-data-scraper.json)
- [Manifest](https://www.octoparse.com/templates/leboncoin-data-scraper-manifest.json)
