# Sahibinden Real Estate Properties and Details Scraper (`realestateapi/sahibinden-real-estate-properties-and-details-scraper`) Actor

Permission-gated parser for Sahibinden property listings. Collection is disabled by default while access requires sign-in outside Turkey.

- **URL**: https://apify.com/realestateapi/sahibinden-real-estate-properties-and-details-scraper.md
- **Developed by:** [Real Estate API](https://apify.com/realestateapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.

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 Real Estate Properties and Details Scraper

Parse Sahibinden property listings for sale, rent, or daily rental when ordinary public access is available. Records include listing URLs, prices and currency, room and size details, building attributes, location coordinates, images, and seller or agency fields when exposed by the page.

### Input

```json
{
  "sourceAccessConfirmed": true,
  "listingType": "Sale",
  "propertyCategory": "Residential",
  "city": "Istanbul",
  "propertyType": ["Apartment"],
  "maxResults": 100,
  "extractPhoneNumbers": true
}
```

The default `sourceAccessConfirmed` value is false because the latest browser check reached Sahibinden's secure login page from outside Turkey. A default run makes zero source requests and reports `SUCCEEDED / SKIPPED_POLICY`, with the policy reason in `OUTPUT_SUMMARY`. Set it true only after a normal public property page is available and applicable terms allow this use. The flag does not bypass login or access controls.

The filters mirror the Store listing: city/district, price and currency, rooms, building age, gross/net area, listing source/date, furnished status, and sort order. Phone fields are retained only when present in the response; the Actor does not log in or bypass protected pages. Requests use ordinary headers and manual redirects, with no custom User-Agent or alternate route.

### Output

Each dataset item is a normalized property listing with source URL, HTTP status, and capture time. Prices and measurements are numbers, dates are ISO 8601 strings, and URLs are absolute official HTTPS listing links. Empty and placeholder values are omitted.

### Local development

`npm test` runs parser/normalization tests against a local synthetic fixture; that fixture is not a live scrape result. `npm run lint` syntax-checks every module. No saved dataset is currently available; see `AGENTS.md` for review status.

### Run status

The dataset contains only property listings with a title, official listing URL, and a substantive property fact. An unrecognized, empty, login, challenge, or request failure with no saved property is FAILED / FAILED; a later failure after saved property rows is SUCCEEDED / PARTIAL. `OUTPUT_SUMMARY` includes bounded `failureEvidence` entries with a code and reason. Diagnostics and parser fixtures are not dataset rows.

# Actor input Schema

## `sourceAccessConfirmed` (type: `boolean`):

Only set true after a normal public property page is available and applicable terms allow this use. This does not bypass sign-in or access controls.

## `listingType` (type: `string`):

Sale, Rent, or Daily Rental.

## `propertyCategory` (type: `string`):

Residential, Commercial, Land, or Building.

## `propertyType` (type: `array`):

Optional property type filters such as Apartment or Villa.

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

Optional Turkish city filter.

## `district` (type: `array`):

Optional districts within the selected city.

## `minPrice` (type: `number`):

Optional minimum price in the selected currency.

## `maxPrice` (type: `number`):

Optional maximum price in the selected currency.

## `currency` (type: `string`):

Currency used by the price filters.

## `rooms` (type: `array`):

Optional room-count filters such as 2+1 or 3+1.

## `buildingAge` (type: `array`):

Optional building-age filters as supplied by Sahibinden.

## `minSize` (type: `integer`):

Optional minimum gross area in square metres.

## `maxSize` (type: `integer`):

Optional maximum gross area in square metres.

## `minNetSize` (type: `integer`):

Optional minimum net usable area in square metres.

## `maxNetSize` (type: `integer`):

Optional maximum net usable area in square metres.

## `listingFrom` (type: `array`):

Optional seller source filters such as Owner or Agent.

## `listingDate` (type: `string`):

Optional recency filter.

## `furnished` (type: `boolean`):

Return only furnished properties when true.

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

Sort order for public search results.

## `extractPhoneNumbers` (type: `boolean`):

Keep seller phone fields when they are publicly present in the response.

## `maxResults` (type: `integer`):

Maximum listings to emit.

## `timeoutSecs` (type: `integer`):

Maximum time to wait for the public response.

## Actor input object example

```json
{
  "sourceAccessConfirmed": false,
  "listingType": "Sale",
  "propertyCategory": "Residential",
  "currency": "TRY",
  "furnished": false,
  "sortBy": "Newest",
  "extractPhoneNumbers": true,
  "maxResults": 100,
  "timeoutSecs": 30
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("realestateapi/sahibinden-real-estate-properties-and-details-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("realestateapi/sahibinden-real-estate-properties-and-details-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 '{}' |
apify call realestateapi/sahibinden-real-estate-properties-and-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realestateapi/sahibinden-real-estate-properties-and-details-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/Y3Ja7buon9mfaJzdK/builds/Q2IfKIzmrVMmF3bhQ/openapi.json
