{
  "openapi": "3.0.1",
  "info": {
    "title": "Sahibinden Real Estate Listings Scraper",
    "description": "Sahibinden real estate scraper — prices, rooms, sizes, GPS, photos, seller info, and phone numbers from sahibinden.com. All 81 Turkish cities, sale/rent/daily, residential to land. Cloudflare-bypassed via Unblocker, 25+ fields per listing, phone deobfuscation. JSON or CSV out.",
    "version": "0.0",
    "x-build-id": "GhIe6OA2yg6SSiaoa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~sahibinden-real-estate-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-sahibinden-real-estate-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/memo23~sahibinden-real-estate-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-sahibinden-real-estate-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/memo23~sahibinden-real-estate-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-sahibinden-real-estate-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "city": {
            "title": "City (il)",
            "enum": [
              "",
              "Adana",
              "Adiyaman",
              "Afyonkarahisar",
              "Agri",
              "Aksaray",
              "Amasya",
              "Ankara",
              "Antalya",
              "Ardahan",
              "Artvin",
              "Aydin",
              "Balikesir",
              "Bartin",
              "Batman",
              "Bayburt",
              "Bilecik",
              "Bingol",
              "Bitlis",
              "Bolu",
              "Burdur",
              "Bursa",
              "Canakkale",
              "Cankiri",
              "Corum",
              "Denizli",
              "Diyarbakir",
              "Duzce",
              "Edirne",
              "Elazig",
              "Erzincan",
              "Erzurum",
              "Eskisehir",
              "Gaziantep",
              "Giresun",
              "Gumushane",
              "Hakkari",
              "Hatay",
              "Igdir",
              "Isparta",
              "Istanbul",
              "Istanbul (European)",
              "Istanbul (Asian)",
              "Izmir",
              "Kahramanmaras",
              "Karabuk",
              "Karaman",
              "Kars",
              "Kastamonu",
              "Kayseri",
              "Kilis",
              "Kirikkale",
              "Kirklareli",
              "Kirsehir",
              "Kocaeli",
              "Konya",
              "Kutahya",
              "Malatya",
              "Manisa",
              "Mardin",
              "Mersin",
              "Mugla",
              "Mus",
              "Nevsehir",
              "Nigde",
              "Ordu",
              "Osmaniye",
              "Rize",
              "Sakarya",
              "Samsun",
              "Sanliurfa",
              "Siirt",
              "Sinop",
              "Sirnak",
              "Sivas",
              "Tekirdag",
              "Tokat",
              "Trabzon",
              "Tunceli",
              "Usak",
              "Van",
              "Yalova",
              "Yozgat",
              "Zonguldak"
            ],
            "type": "string",
            "description": "One of Turkey's 81 provinces, e.g. Izmir or Antalya. Istanbul can be the whole city, the European side or the Asian side. Empty: all of Turkey. Default: Istanbul.",
            "default": "Istanbul"
          },
          "district": {
            "title": "District (ilçe)",
            "type": "array",
            "description": "Districts inside the chosen city, one per line, e.g. Kadikoy or Bodrum, as sahibinden names them. Empty: the whole city.",
            "items": {
              "type": "string"
            }
          },
          "listingType": {
            "title": "For sale, for rent or daily",
            "enum": [
              "Sale",
              "Rent",
              "Daily Rental"
            ],
            "type": "string",
            "description": "Sale (satılık), Rent (kiralık, monthly) or Daily Rental (günlük kiralık, short stays). Default: Sale.",
            "default": "Sale"
          },
          "propertyCategory": {
            "title": "Property kind",
            "enum": [
              "Residential",
              "Commercial",
              "Land",
              "Building"
            ],
            "type": "string",
            "description": "Homes to live in (Residential, the default), business premises (Commercial), plots of land (Land), or entire buildings sold or let as one (Building).",
            "default": "Residential"
          },
          "rooms": {
            "title": "Room layout",
            "type": "array",
            "description": "One or more layouts. Turkish listings put the living rooms after the plus, so 2+1 is two bedrooms and one living room. Empty: any layout.",
            "items": {
              "type": "string",
              "enum": [
                "1+0",
                "1+1",
                "2+0",
                "2+1",
                "3+1",
                "3+2",
                "4+1",
                "4+2",
                "5+1",
                "5+2",
                "6+"
              ]
            }
          },
          "minPrice": {
            "title": "Lowest price",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price limit in the currency chosen below, whole units, e.g. 2500000. Empty: no lower limit."
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price limit in the currency chosen below, e.g. 8000000. Empty: no upper limit."
          },
          "currency": {
            "title": "Price limit currency",
            "enum": [
              "TRY",
              "USD",
              "EUR",
              "GBP"
            ],
            "type": "string",
            "description": "The currency the two price limits are written in: TRY (default), USD, EUR or GBP. Has no effect when neither limit is set.",
            "default": "TRY"
          },
          "sortBy": {
            "title": "Order of results",
            "enum": [
              "Newest",
              "Oldest",
              "Price Low to High",
              "Price High to Low",
              "Smart Sort"
            ],
            "type": "string",
            "description": "Newest (default) or Oldest by listing date, cheapest or most expensive first, or Smart Sort, sahibinden's own ranking.",
            "default": "Newest"
          },
          "maxResults": {
            "title": "Stop after this many listings",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 500. 0 means no cap. Runs on Apify's free plan stop at 25. Default 100.",
            "default": 100
          },
          "maxPages": {
            "title": "Result pages to read",
            "minimum": 1,
            "type": "integer",
            "description": "sahibinden lists 20 listings per page. Empty (default): keep reading until the results end or the listing cap is reached."
          },
          "extractPhoneNumbers": {
            "title": "Open each listing for phones and full details (paid add-on)",
            "type": "boolean",
            "description": "On (default): the actor opens every listing for the seller's phone numbers and the full attribute list (heating, floor, bathrooms, furnishing and more). Billed as one extra event per listing that shows a phone number. Off: rows hold only what the search results show, and runs go faster.",
            "default": true
          },
          "startUrls": {
            "title": "Start from a sahibinden search link",
            "type": "array",
            "description": "A sahibinden.com search link with the filters you set on the site, e.g. https://www.sahibinden.com/satilik-daire/istanbul-kadikoy. It replaces the location, type, room and price settings above. Only the first link is used.",
            "items": {
              "type": "string"
            }
          },
          "sessionCookies": {
            "title": "Your sahibinden cookies (optional)",
            "type": "string",
            "description": "Not needed: search results load without logging in. Paste cookies from a logged-in browser (name=value; name2=value2) only for pages sahibinden shows to signed-in users."
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Default: Apify Unblocker, which gets through sahibinden's Cloudflare check. Datacenter proxies get blocked."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}