Actor picture

Leboncoin Scraper

mcdowell/leboncoin-scraper

Extremely fast Scraper that Extracts ads from leboncoin.fr

Free trial for 3 days

Then $30/month

No credit card required now

Author's avatarVictor McDowell
  • Modified
  • Users6
  • Runs18,706
Actor picture
Leboncoin Scraper

Free trial for 3 days

Then $30/month

A quick scraper that extracts ads from the Leboncoin website. The extracted data can be exported to various formats such as XLSX, JSON or CSV for ease of evaluation.

Requirements

Due to security features implemented by the website, RESIDENTIAL Proxies are required in order to run the scraper.

Resource Consumption

One run on Apify platform will use approximately 0.01 CU to get 500 results. On average, the actor is extremely fast. Extracting 500 results in about 27 seconds. To extract about 1,000 results the platform usage costs about $0.02

image

Input instructions

  • Fill in a category and location (By Region or By Department)
  • Set up the maximum number of results to be returned.
  • Improve the accuracy of the results by issuing Search Keywords.

Sample API input

{
    "searchTerms": "ordinateur",
    "department": "bas_rhin",
    "region": "alsace",
    "category": "",
    "maxResults": 165
}

Sample Input on the Apify platform

image

  • Alternatively, preconfigured search links can be used to perform ad search

Preconfigured urls as API input

{
    "startUrls": [
        {
            "url": "https://www.leboncoin.fr/recherche?category=2&text=renault&locations=Paris_75015__48.84105_2.29926_2747_20000&owner_type=all&urgent=1"
        }
    ]
}

Preconfigured urls on Apify platform

image

Sample Output

The processed query returns JSON objects that are accessible as CSV, JSON or Excel.

{
    "list_id": 2219268154,
    "first_publication_date": "2022-09-10 20:21:41",
    "index_date": "2022-09-10 20:21:41",
    "status": "active",
    "category_id": "15",
    "category_name": "Informatique",
    "subject": "Ordinateur fixe très performant Threadripper Ryzen",
    "body": "Bonjour,\n\nJe vends mon PC fixe pour cause de déménagement. Il est en très bon état. Possibilité de livraison mondial relay.\n\nVoici la configuration :\n\nCarte mère: MSI X399 SLI Plus AMD X399 ATX\nProcesseur: AMD Ryzen Threadripper 1920X 3,50GHz 12 coeurs/24 threads\nRadiateur: Noctua NH-U14S TR4-SP3\nMémoire : 48Go (6x8Go) Corsair Vengeance LPX  DDR4 3000MHz C15 \nCarte graphique: Zotac GeForce GTX 1050 Ti 4 Go Noir\nDisque dur SSD : Sandisk SSD Plus 240GB SDSSDA-240G\nBoitier : Fractal Design Define R6 Black",
    "ad_type": "offer",
    "url": "https://www.leboncoin.fr/informatique/2219268154.htm",
    "price": [975],
    "price_cents": 97500,
    "images": {
        "thumb_url": "https://img.leboncoin.fr/api/v1/lbcpb1/images/1e/fa/6a/1efa6ab2435dc4037e6ee721786995bc217314ed.jpg?rule=ad-thumb",
        "small_url": "https://img.leboncoin.fr/api/v1/lbcpb1/images/1e/fa/6a/1efa6ab2435dc4037e6ee721786995bc217314ed.jpg?rule=ad-small",
        "nb_images": 9,
        "urls": [
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/1e/fa/6a/1efa6ab2435dc4037e6ee721786995bc217314ed.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/6f/de/ed/6fdeed6a5ace5a2e24fbcc881bbc20da1b82498c.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/b2/71/d4/b271d4865aa43fd5310704855cb322bcf8e417ad.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/ac/1a/e9/ac1ae95b312f483dc359c50c3b020ca511cafb17.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/77/d4/4f/77d44f2b56599834c9864bb8f75fb101cb95974d.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/8b/e0/35/8be035ee4e4d44bda945281251171b784536ed0f.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/f7/88/f0/f788f06c7c0e35055e7d7f0f38afe2ac35b07637.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/2f/97/e2/2f97e27243d711de8946eeebbce9dc1446a960ac.jpg?rule=ad-image",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/e8/02/13/e80213955431736b0a3affb0ae152730c2c99f86.jpg?rule=ad-image"
        ],
        "urls_thumb": [
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/1e/fa/6a/1efa6ab2435dc4037e6ee721786995bc217314ed.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/6f/de/ed/6fdeed6a5ace5a2e24fbcc881bbc20da1b82498c.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/b2/71/d4/b271d4865aa43fd5310704855cb322bcf8e417ad.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/ac/1a/e9/ac1ae95b312f483dc359c50c3b020ca511cafb17.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/77/d4/4f/77d44f2b56599834c9864bb8f75fb101cb95974d.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/8b/e0/35/8be035ee4e4d44bda945281251171b784536ed0f.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/f7/88/f0/f788f06c7c0e35055e7d7f0f38afe2ac35b07637.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/2f/97/e2/2f97e27243d711de8946eeebbce9dc1446a960ac.jpg?rule=ad-thumb",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/e8/02/13/e80213955431736b0a3affb0ae152730c2c99f86.jpg?rule=ad-thumb"
        ],
        "urls_large": [
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/1e/fa/6a/1efa6ab2435dc4037e6ee721786995bc217314ed.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/6f/de/ed/6fdeed6a5ace5a2e24fbcc881bbc20da1b82498c.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/b2/71/d4/b271d4865aa43fd5310704855cb322bcf8e417ad.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/ac/1a/e9/ac1ae95b312f483dc359c50c3b020ca511cafb17.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/77/d4/4f/77d44f2b56599834c9864bb8f75fb101cb95974d.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/8b/e0/35/8be035ee4e4d44bda945281251171b784536ed0f.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/f7/88/f0/f788f06c7c0e35055e7d7f0f38afe2ac35b07637.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/2f/97/e2/2f97e27243d711de8946eeebbce9dc1446a960ac.jpg?rule=ad-large",
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/e8/02/13/e80213955431736b0a3affb0ae152730c2c99f86.jpg?rule=ad-large"
        ]
    },
    "attributes": [
        {
            "key": "rating_score",
            "value": "1",
            "values": ["1"],
            "value_label": "1",
            "generic": false
        },
        {
            "key": "rating_count",
            "value": "2",
            "values": ["2"],
            "value_label": "2",
            "generic": false
        },
        {
            "key": "estimated_parcel_weight",
            "value": "10000",
            "values": ["10000"],
            "value_label": "10000",
            "generic": false
        },
        {
            "key": "condition",
            "value": "tresbonetat",
            "values": ["tresbonetat"],
            "key_label": "État",
            "value_label": "Très bon état",
            "generic": true
        },
        {
            "key": "shipping_type",
            "value": "mondial_relay",
            "values": ["mondial_relay", "face_to_face"],
            "value_label": "mondial_relay",
            "generic": false
        },
        {
            "key": "shippable",
            "value": "true",
            "values": ["true"],
            "value_label": "true",
            "generic": false
        },
        {
            "key": "is_import",
            "value": "false",
            "values": ["false"],
            "value_label": "false",
            "generic": false
        },
        {
            "key": "old_price",
            "value": "990",
            "values": ["990"],
            "value_label": "990",
            "generic": false
        },
        {
            "key": "payment_methods",
            "value": "installments3x",
            "values": ["installments3x", "installments4x"],
            "value_label": "installments3x",
            "generic": false
        },
        {
            "key": "donation",
            "value": "0",
            "values": ["0"],
            "value_label": "0",
            "generic": false
        }
    ],
    "location": {
        "country_id": "FR",
        "region_id": "1",
        "region_name": "Alsace",
        "department_id": "67",
        "department_name": "Bas-Rhin",
        "city_label": "Strasbourg 67000",
        "city": "Strasbourg",
        "zipcode": "67000",
        "lat": 48.58504,
        "lng": 7.73642,
        "source": "city",
        "provider": "here",
        "is_shape": true,
        "feature": {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [7.73642, 48.58504]
            },
            "properties": null
        }
    },
    "owner": {
        "store_id": "57264281",
        "user_id": "68960dfa-7f33-43f4-9e8b-daf3c4d3fc5d",
        "type": "private",
        "name": "Frédéric",
        "no_salesmen": true,
        "activity_sector": ""
    },
    "options": {
        "has_option": false,
        "booster": false,
        "photosup": false,
        "urgent": false,
        "gallery": false,
        "sub_toplist": false
    },
    "has_phone": false,
    "is_boosted": true
}

Industries

See how Leboncoin Scraper is used in industries around the world