# Sahibinden Scraper — Turkey Cars, Real Estate & Classifieds (`crawloop/sahibinden-scraper`) Actor

Sahibinden scraper for Turkish classifieds: apartments (satılık/kiralık), cars, shopping, prices, m², rooms, km, seller type, photos, and optional phones. JSON export — Python, Node.js, and MCP ready.

- **URL**: https://apify.com/crawloop/sahibinden-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** Real estate, Lead generation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 listings

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

## Sahibinden Scraper — Turkey Cars, Real Estate & Classifieds

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by sahibinden.com or its affiliates. Data is read from publicly accessible pages only. No login. You are responsible for complying with applicable law (including KVKK / GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

> **Contact-data controls:** Phone fields are omitted from the dataset by default. Enable `includePhones` only for numbers already published on public pages and only when you have a lawful basis. Any contact-field examples below assume that explicit opt-in; otherwise those fields are absent.

**Sahibinden scraper** for Turkey classifieds: **satılık** and **kiralık** apartments, villas, land, **otomobil / SUV**, and the second-hand catalog. Each row includes price (TRY), city/district, rooms or km, photos, and **owner vs agency**. Use it as a **Sahibinden API alternative** from **Python**, **Node.js**, **cURL**, or **Apify MCP** / AI assistants — paste a search or `/ilan/` URL, or pick a city such as Istanbul.

**Best for:** Istanbul / Ankara / Izmir comps, used-car pricing, FSBO (sahibinden) lead lists, and JSON / CSV export via Apify.

| Actor | Role |
| :--- | :--- |
| Sahibinden Scraper ◄── you are here | Turkey cars, real estate & classifieds |
| [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) | French classifieds |
| [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper) | German vehicle listings |

### When to use this Actor

- **Sahibinden scraper for search pages** — Copy a filtered browser URL (city, district, price, rooms, date) into Start URLs.
- **Satılık / kiralık daire datasets** — Istanbul, Ankara, Izmir, or any city slug; export JSON/CSV for comps and yield models.
- **Used cars from the same Actor** — Paste `/vasita/otomobil` or `/vasita/arazi-suv-pickup` URLs (year + km on the card).
- **Private-seller lists** — Enable **Private sellers only**, or paste a `/sahibinden` search URL to keep owner rows.
- **Scheduled monitoring** — Re-run the same search and emit only **new** or **price-changed** listings.

### When not to use this Actor

- **Cookie / login walls** — The Actor does not ask for session cookies and does not log in. Use Apify Proxy **UNBLOCKER** with country **TR**.
- **More than ~1,000 rows from one filter** — sahibinden itself stops around `pagingOffset=950`. Split by district or price band.
- **Service pages** — oto360, hizmetler, and ekspertiz URLs are skipped.
- **Authenticated actions** — No messaging, favorites, or store admin.

### Key features

- **Apify Unblocker + TR** — Plain residential and datacenter IPs get Cloudflare 403. Group **UNBLOCKER** with country **TR** is the supported Cloud setup.
- **Search + listing URLs** — One Actor handles category/search pages and `/ilan/{id}` detail links.
- **Search builder** — City + category (sale, rent, cars, shopping) when you do not have a URL.
- **Details off by default** — Search cards cover price, location, rooms/km. Turn on details for description, GPS, attributes, and photos.
- **Monitor mode** — Key-value store remembers listing IDs and prices across runs.
- **Typed JSON** — Numeric price, m², year, km, and GPS — not string blobs.

### Input

| Field | What it does |
| :--- | :--- |
| **Start URLs** | Search (`/satilik-daire/istanbul`, `/vasita/otomobil/ford`) or listing (`/ilan/…/detay`) links. Filters in the URL are kept. |
| **Category / City** | Builder only. Used when Start URLs are empty. |
| **Sort** | Newest, oldest, or price. Newest is best for monitors. |
| **Max listings** | Cap on dataset rows. |
| **Scrape full listing details** | Default off. On = description, attribute table, GPS, extra photos. |
| **Include phone numbers** | Opt-in. Only numbers already shown on the public listing page. |
| **Private sellers only** | Keep owner (`sahibinden`) rows when seller type is known. |
| **Monitor mode** | Save new and price-changed rows only. |
| **Proxy** | Apify Unblocker, country TR. |

```json
{
  "startUrls": [
    { "url": "https://www.sahibinden.com/satilik-daire/istanbul" }
  ],
  "maxItems": 50,
  "includeDetails": false,
  "includePhones": false,
  "onlyPrivate": false,
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["UNBLOCKER"],
    "apifyProxyCountry": "TR"
  }
}
```

Builder example (no URL):

```json
{
  "category": "satilik-daire",
  "city": "istanbul",
  "sortBy": "newest",
  "maxItems": 40,
  "includeDetails": false
}
```

Cars example:

```json
{
  "startUrls": [
    { "url": "https://www.sahibinden.com/vasita/otomobil/istanbul?sorting=date_desc" }
  ],
  "maxItems": 100
}
```

### Output

One dataset row per listing. Search-card fields are always present; detail fields fill in when **Scrape full listing details** is on. Turkish text is kept verbatim (UTF-8).

| Field | Description |
| :--- | :--- |
| `id` / `url` | İlan number and canonical listing URL |
| `title` / `description` | Headline and listing text |
| `price` / `currency` / `priceLabel` | Numeric amount and `4.850.000 TL` display string |
| `city` / `district` / `neighborhood` | İl / ilçe / mahalle |
| `rooms` / `squareMeters` / `floor` / `heating` | Real-estate fields (`3+1`, m², kat, ısıtma) |
| `make` / `series` / `model` / `year` / `km` | Vehicle fields |
| `latitude` / `longitude` | GPS from the detail map |
| `sellerType` / `isPrivate` / `sellerName` | owner, agent, dealer, developer, bank |
| `phoneMobile` | Public mobile when `includePhones` is on |
| `images` / `thumbnailUrl` | Photo URLs |
| `recordType` | `summary` or `detail` |
| `scrapedAt` | UTC scrape timestamp |

```json
{
  "id": "1313801852",
  "url": "https://www.sahibinden.com/ilan/emlak-konut-satilik-metrobuse-yurume-luks-dekorlu-3-balkonlu-3-plus1-150-m2satilik-daire-1313801852/detay",
  "title": "Metrobüse yürüme lüks dekorlu 3 balkonlu 3+1",
  "price": 4850000,
  "currency": "TRY",
  "city": "İstanbul",
  "district": "Beylikdüzü",
  "rooms": "3+1",
  "squareMeters": 150,
  "sellerType": "agent",
  "recordType": "summary"
}
```

### Use cases

- Build Istanbul satılık daire comps with price per m² by district.
- Track kiralık listings in Çankaya or Kadıköy overnight via monitor mode.
- Collect Ford / BMW search cards for used-car pricing without opening every detail.
- Keep sahibinden (owner) rows for FSBO outreach when you have a lawful basis for phones.
- Feed JSON into a spreadsheet, CRM, or valuation notebook.

### Integration examples

Replace `YOUR_TOKEN` with your Apify API token. Actor name: `crawloop/sahibinden-scraper`.

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('crawloop/sahibinden-scraper').call({
  startUrls: [{ url: 'https://www.sahibinden.com/satilik-daire/istanbul' }],
  maxItems: 50,
  includeDetails: false,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("crawloop/sahibinden-scraper").call(
    run_input={
        "startUrls": [{"url": "https://www.sahibinden.com/satilik-daire/istanbul"}],
        "maxItems": 50,
        "includeDetails": False,
    }
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/crawloop~sahibinden-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":[{"url":"https://www.sahibinden.com/satilik-daire/istanbul"}],"maxItems":50}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store ID / name (`crawloop/sahibinden-scraper`).

Example prompts:

- "Run Sahibinden Scraper for satılık daire in Istanbul and return the top 20 rows as JSON"
- "Scrape sahibinden otomobil listings in Ankara with Sahibinden Scraper and summarize price, year, and km"
- "Chain Sahibinden Scraper then [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) to compare Turkey and France rental comps"

### Suite next step

After Turkey classifieds, add France coverage with [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) or EU cars with [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper).

### FAQ

**Do I need a sahibinden account?** No. Apify Proxy **UNBLOCKER** with country **TR** is the supported setup. Session cookies are not an input.

**Why did the run fail with Cloudflare / unusual access?** Datacenter and plain residential IPs are blocked. Set proxy group `UNBLOCKER` and country `TR`.

**Can I get more than 1,000 listings?** Not from a single filter URL. Split by ilçe, price band, or listing date (`date=1day`).

**Are phones included?** Only when `includePhones` is on, and only if the listing page already shows them.

### Related Actors

| Actor | Role |
| :--- | :--- |
| [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) | France classifieds |
| [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper) | German used cars |

# Actor input Schema

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

Paste sahibinden.com search, category, or listing URLs. Filters in the search URL (city, price, rooms, date) are kept. When set, these override the category/city builder.

## `category` (type: `string`):

Builder only (used when Start URLs are empty).

## `city` (type: `string`):

Builder only. Turkish city slug such as istanbul, ankara, izmir, antalya.

## `sortBy` (type: `string`):

Search order. Newest first is best for monitors.

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

Maximum dataset rows. One filtered search URL returns at most about 1,000 listings on the site — split by district or price band to go wider.

## `includeDetails` (type: `boolean`):

Off by default. Opens each /ilan/ page for description, attribute table, GPS, extra photos, and seller name. Charged as a detail event on top of the listing.

## `includePhones` (type: `boolean`):

Off by default. Include numbers already published on public listing pages only when you have a lawful basis. Turns on full details automatically. Charged only when a number is extracted.

## `onlyPrivate` (type: `boolean`):

Keep owner (sahibinden) listings and drop agencies, galleries, and developers when the seller type is known. Paste a /sahibinden search URL, or enable details so Kimden can be read.

## `monitorMode` (type: `boolean`):

Save new and price-changed listings only. IDs and prices are stored in the default key-value store across runs.

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

Apify Proxy group UNBLOCKER with country TR is required. Plain residential and datacenter IPs get Cloudflare 403.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.sahibinden.com/satilik-daire/istanbul"
    }
  ],
  "category": "satilik-daire",
  "city": "istanbul",
  "sortBy": "newest",
  "maxItems": 50,
  "includeDetails": false,
  "includePhones": false,
  "onlyPrivate": false,
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ],
    "apifyProxyCountry": "TR"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset items — one Sahibinden listing per row.

# 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.sahibinden.com/satilik-daire/istanbul"
        }
    ],
    "city": "istanbul",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/sahibinden-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.sahibinden.com/satilik-daire/istanbul" }],
    "city": "istanbul",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/sahibinden-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.sahibinden.com/satilik-daire/istanbul"
    }
  ],
  "city": "istanbul",
  "maxItems": 50
}' |
apify call crawloop/sahibinden-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/sahibinden-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/75a1BQ8DasgnyNwBZ/builds/1fyxaNmM6wDJYOTvx/openapi.json
