# SeLoger Scraper (`one-api/seloger-scraper`) Actor

Scrape SeLoger.com, France's leading real-estate marketplace. Search apartments, houses, land and parking for sale or rent by location, place id, postcode, radius or URL; pull full listing details with agency contacts, find similar listings, and resolve French locations to place ids.

- **URL**: https://apify.com/one-api/seloger-scraper.md
- **Developed by:** [ONE API](https://apify.com/one-api) (community)
- **Categories:** Lead generation, Real estate
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SeLoger Scraper

Scrape **SeLoger.com**, the leading French real-estate marketplace (AVIV Group). Search apartments, houses, buildings, land and parking **for sale or rent**, look up full listing details with agency contacts, find similar listings, and resolve French locations to SeLoger place ids.

### What it does

- **🏠 Property Details** — auto-detects each input as a SeLoger classified id (e.g. `263KK19CF4XA`), a numeric legacy id, or a `seloger.com` URL; returns the full record (price, areas, rooms, energy, photos, agency contact). Optionally also pulls **similar listings** for each.
- **🔎 Search Listings** — auto-detected modes from one input box:

  - a city / neighbourhood / region (e.g. `Bordeaux`, `Lyon`, `Paris 11e`) → search by location
  - a 5-digit French postcode (e.g. `33000`) → search by postcode
  - a SeLoger place id (e.g. `AD08FR13100`) → search by place id
  - any `seloger.com` search URL → search by URL
  - set a **Radius (km)** to search around a place/location instead
  - turn on **Count only** to get just the total number of matching listings

  Deal type (sale / rent), property type, price, rooms, bedrooms, living area, sort order and pagination all apply.
- **🔍 Locations** — resolve French place names to SeLoger place ids (`/autocomplete`), or resolve a known place id to its name, type and coordinates (`/places/byid`). Feed the place ids straight back into the Search section.

### Output

- **One flat dataset row per listing / similar listing / place** — sortable, filterable, CSV-exportable.
- Columns: `Mode`, `Offering`, `Property Type`, `Property ID`, `Legacy ID`, `Title`, `Location`, `Postcode`, `Price (€)`, `Price / m²`, `Rooms`, `Beds`, `Area m²`, `Energy`, `Agency`, `Phone`, `Latitude`, `Longitude`, `Cover Photo`, `Listing URL`.
- Full upstream JSON kept in the `Raw` column for power users.

### Inputs

- Each section is independent — fill only the ones you need.
- Multiple inputs per section: one per line.
- The search filters apply to every Search query.

### Pricing

- Pay per result: **$3 per 1,000 dataset items** — same rate on every Apify plan tier.
- Apify start fee: $0.00005 per run.

### Notes

- Prices are in euros (€). SeLoger is a French portal — there is no public *sold* filter (sale and rent only).
- Discover place ids in the **Locations** section, then search by place id or count listings for them.

### Errors

- Failures land in the dataset as rows with `Mode = "ERROR"` and the upstream error message in the `Title` column — nothing is silently dropped.

### Support

Questions or issues? Contact **oneapi.project@gmail.com**.

# Actor input Schema

## `property_inputs` (type: `array`):

Auto-detects each entry and calls the right endpoint:
• A SeLoger classified id (e.g. `263KK19CF4XA`) or numeric legacy id (e.g. `270267807`) → `/details/byid`
• A `seloger.com` listing URL → `/details/byurl`

Each row is one full listing record (price, areas, rooms, energy, photos, agency contact). The listing `id` appears in the `Property ID` column of search results.

## `include_similar` (type: `boolean`):

For each Property Details input, also call `/details/similar` and add those listings as extra rows.

## `similar_count` (type: `integer`):

How many similar listings to return per property (when the toggle above is on).

## `search_inputs` (type: `array`):

Auto-detects each entry and routes to the right `/search/*` endpoint:
• A `seloger.com` search URL → `/search/byurl`
• A 5-digit French postcode (e.g. `33000`) → `/search/byzip`
• A SeLoger place id (e.g. `AD08FR13100`, get these from the Locations section) → `/search/byplaceid`
• Anything else — a city, neighbourhood or region (e.g. `Bordeaux`, `Lyon`, `Paris 11e`) → `/search/bylocation`

Set a **Radius** below to search around a place/location instead. The filters below apply to every search. Each hit returns one row per listing.

## `searchType` (type: `string`):

Buy (achat) or rent (location). SeLoger is a French portal — there is no public sold filter.

## `propertyType` (type: `string`):

Which category to search. Comma-separate to combine (e.g. `House,Apartment`).

## `priceRange` (type: `string`):

Format: `min:150000,max:500000` — either half optional. Euros. For rentals this is the monthly rent.

## `rooms` (type: `string`):

Format: `min:3` or `min:2,max:5` — either half optional.

## `bedrooms` (type: `string`):

Format: `min:2` or `min:1,max:4` — either half optional.

## `areaRange` (type: `string`):

Format: `min:50,max:120` — either half optional.

## `radius` (type: `integer`):

Search within this many km of the place/location (uses `/search/byradius`). Leave 0 for an exact place search. Ignored for postcode and URL inputs.

## `sortOrder` (type: `string`):

How to sort search results.

## `count_only` (type: `boolean`):

Return just the total number of matching listings per query (uses `/search/count`) instead of fetching the listings.

## `pages` (type: `integer`):

How many pages to fetch for each Search query.

## `resultCount` (type: `integer`):

Listings requested per Search page (1–100).

## `location_inputs` (type: `array`):

Resolve French locations to SeLoger place ids you can feed back into the Search section:
• Free text (e.g. `Bordeaux`, `Lyon`, `33000`) → `/autocomplete` (regions, departments, cities, boroughs, postcodes)
• A place id (e.g. `AD08FR13100`) → `/places/byid` (resolve id to name, type, coordinates)

Each row's `Property ID` is the place id.

## `location_result_count` (type: `integer`):

How many suggestions to return per autocomplete query.

## Actor input object example

```json
{
  "property_inputs": [
    "263KK19CF4XA"
  ],
  "include_similar": false,
  "similar_count": 8,
  "search_inputs": [
    "Bordeaux"
  ],
  "searchType": "For_Sale",
  "propertyType": "House or Apartment",
  "priceRange": "",
  "rooms": "",
  "bedrooms": "",
  "areaRange": "",
  "radius": 0,
  "sortOrder": "Recommended",
  "count_only": false,
  "pages": 1,
  "resultCount": 20,
  "location_inputs": [
    "Lyon"
  ],
  "location_result_count": 10
}
```

# 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 = {
    "property_inputs": [
        "263KK19CF4XA"
    ],
    "search_inputs": [
        "Bordeaux"
    ],
    "location_inputs": [
        "Lyon"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("one-api/seloger-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 = {
    "property_inputs": ["263KK19CF4XA"],
    "search_inputs": ["Bordeaux"],
    "location_inputs": ["Lyon"],
}

# Run the Actor and wait for it to finish
run = client.actor("one-api/seloger-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 '{
  "property_inputs": [
    "263KK19CF4XA"
  ],
  "search_inputs": [
    "Bordeaux"
  ],
  "location_inputs": [
    "Lyon"
  ]
}' |
apify call one-api/seloger-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,one-api/seloger-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/Ftmn026FXqD50wR4B/builds/pCrhT1ibvMCHLaUFk/openapi.json
