# 2ememain.be Scraper (`lexis-solutions/2ememain-be-scraper`) Actor

Scrape listings from 2ememain.be - including titles, prices, seller info, locations, and images. Ideal for classifieds aggregation, market analysis, and price tracking. Fast, structured, and customizable extraction from Belgium’s leading French-language secondhand marketplace.

- **URL**: https://apify.com/lexis-solutions/2ememain-be-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** Developer tools, Automation, Other
- **Security:** Limited permissions
- **Stats:** 8 total users, 0 monthly users, 79.3% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![banner](https://i.ibb.co/PZnT0141/2ememain.png)

### 🎯 What does 2ememain Scraper do

2ememain Scraper helps you extract product listings and marketplace data from **2ememain.be**, Belgium's leading online marketplace for buying and selling second-hand items.

You can extract detailed product information including prices, SKUs, seller information, descriptions, and other key details from the website. 2ememain Scraper supports REST API which gives you access to the extracted dataset, enables you to download it in various formats and use it in other applications.

### 📊 What data can I extract from 2ememain with a web scraper

With this web scraping tool, you can extract the following data from 2ememain:

<table>
<tr>
<td>🏷️ Product title</td>
<td>💰 Price</td>
</tr>
<tr>
<td>🔢 SKU number</td>
<td>👤 Seller information</td>
</tr>
<tr>
<td>📝 Product description</td>
<td>🏷️ Categories</td>
</tr>
<tr>
<td>🔗 Product URL</td>
<td>📊 Product details</td>
</tr>
<tr>
<td>🖼️ Product images</td>
<td>📍 Location information</td>
</tr>
</table>

### 🚀 Why scrape 2ememain.be

2ememain.be is Belgium's most popular online marketplace for second-hand items, with millions of listings across various categories. Scraping 2ememain.be can help you:

- Track pricing trends for second-hand items
- Monitor product availability and market demand
- Research competitor pricing strategies
- Analyze seller behavior and marketplace dynamics
- Make informed purchasing decisions
- Monitor new listings and popular categories
- Understand regional market differences in Belgium

### 🛠️ How to use 2ememain Scraper

2ememain Scraper is designed for easy and fast start even if you've never extracted data from websites before. Here's how you can extract data from 2ememain:

1. Create a free Apify account using your email
2. Open 2ememain Scraper on the Apify platform
3. Click on the **Try for free** button
4. Enter your search parameters or start URLs
5. Click on the **Start** button and wait for the data to be extracted
6. Download your data in JSON, XML, CSV, Excel, or HTML

### ⚙️ Input

The actor accepts the following input parameters:

- `startUrls` (array) - Search (`/q/...`), category (`/l/...`) or listing (`/v/...`) URLs to start scraping from
- `maxItems` (integer) - Maximum number of listings to scrape per start URL (default: 5)
- `proxyConfiguration` (object) - Optional proxy settings

Example:

```json
{
  "startUrls": [
    {
      "url": "https://www.2ememain.be/q/moto/"
    }
  ],
  "maxItems": 5
}
```

### 📤 Output

The scraped data will be saved as a dataset. Each item will represent a product listing. You can download your data in various formats: JSON, JSONL, HTML table, CSV, Excel spreadsheet, or NDJSON.

Example of the output format:

```json
{
  "url": "https://www.2ememain.be/v/motos/motos-honda/m2448051029-moto-scooter",
  "title": "Moto scooter",
  "sku": "2448051029",
  "price": 2100,
  "currency": "EUR",
  "priceType": "MIN_BID",
  "sellerInfo": {
    "name": "Patje",
    "identity": "CONSUMER",
    "profileUrl": "https://www.2ememain.be/u/patje/39568327/"
  },
  "description": "Zeer goed onderhouden scooter 125cc\nBouwjaar 24/07/2023\nAltijd binnen gestaan...",
  "primaryImage": "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/e8214636-01a5-493f-85e6-9decd6b416d8?rule=ecg_mp_eps$_83",
  "categories": ["Motos", "Motos | Honda"]
}
```

### ⚠️ Notes and Limitations

- The actor relies on the structure of the 2ememain website. If the website structure changes, the actor may need to be updated
- Ensure you comply with the terms of service of 2ememain.be when using this actor
- For large-scale scraping, use Apify's proxy services to avoid IP blocking
- Filters added after `#` in a search URL are applied by the website in the browser and are not supported
- Respect rate limits to avoid overwhelming the website

### 🔗 Need to scrape other marketplaces

Check out our other marketplace scrapers:

- [2dehands Scraper](https://apify.com/lexis-solutions/2dehands-be-scraper)
- [Alibaba Scraper](https://apify.com/lexis-solutions/alibaba-scraper)
- [Otto Scraper](https://apify.com/lexis-solutions/otto-de-scraper)

### 🛠️ Want something custom-built

This 2ememain Scraper doesn't exactly do what you need? You can always build your own! Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). We can help you with custom solutions or data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions)

### Support Our Work 💝

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/partners/find/lexis-solutions/review) and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

# Actor input Schema

## `startUrls` (type: `array`):

Search (/q/...), category (/l/...) or listing (/v/...) URLs from 2ememain.be.

## `maxItems` (type: `integer`):

Maximum number of listings to scrape per start URL (0 for unlimited).

## `proxyConfiguration` (type: `object`):

Your proxy configuration from Apify

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.2ememain.be/q/moto/"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.2ememain.be/q/moto/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/2ememain-be-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.2ememain.be/q/moto/" }] }

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/2ememain-be-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.2ememain.be/q/moto/"
    }
  ]
}' |
apify call lexis-solutions/2ememain-be-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/2ememain-be-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/q1jQFk2cjNQIQfJVR/builds/i91Aia0yCnuKUyikt/openapi.json
