{
  "openapi": "3.0.1",
  "info": {
    "title": "Sahibinden Real Estate Properties and Details Scraper",
    "description": "Permission-gated parser for Sahibinden property listings. Collection is disabled by default while access requires sign-in outside Turkey.",
    "version": "1.0",
    "x-build-id": "Q2IfKIzmrVMmF3bhQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/realestateapi~sahibinden-real-estate-properties-and-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-realestateapi-sahibinden-real-estate-properties-and-details-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/realestateapi~sahibinden-real-estate-properties-and-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-realestateapi-sahibinden-real-estate-properties-and-details-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/realestateapi~sahibinden-real-estate-properties-and-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-realestateapi-sahibinden-real-estate-properties-and-details-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",
        "required": [
          "listingType"
        ],
        "properties": {
          "sourceAccessConfirmed": {
            "title": "Ordinary public access confirmed",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "Sale",
              "Rent",
              "Daily Rental"
            ],
            "type": "string",
            "description": "Sale, Rent, or Daily Rental.",
            "default": "Sale"
          },
          "propertyCategory": {
            "title": "Property category",
            "enum": [
              "Residential",
              "Commercial",
              "Land",
              "Building"
            ],
            "type": "string",
            "description": "Residential, Commercial, Land, or Building.",
            "default": "Residential"
          },
          "propertyType": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional property type filters such as Apartment or Villa.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Optional Turkish city filter."
          },
          "district": {
            "title": "Districts",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional districts within the selected city.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum price in the selected currency."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum price in the selected currency."
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "TRY",
              "USD",
              "EUR",
              "GBP"
            ],
            "type": "string",
            "description": "Currency used by the price filters.",
            "default": "TRY"
          },
          "rooms": {
            "title": "Rooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional room-count filters such as 2+1 or 3+1.",
            "items": {
              "type": "string"
            }
          },
          "buildingAge": {
            "title": "Building age",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional building-age filters as supplied by Sahibinden.",
            "items": {
              "type": "string"
            }
          },
          "minSize": {
            "title": "Minimum gross size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum gross area in square metres."
          },
          "maxSize": {
            "title": "Maximum gross size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum gross area in square metres."
          },
          "minNetSize": {
            "title": "Minimum net size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum net usable area in square metres."
          },
          "maxNetSize": {
            "title": "Maximum net size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum net usable area in square metres."
          },
          "listingFrom": {
            "title": "Listing source",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional seller source filters such as Owner or Agent.",
            "items": {
              "type": "string"
            }
          },
          "listingDate": {
            "title": "Listing date",
            "enum": [
              "Last 24 hours",
              "Last 3 days",
              "Last 7 days",
              "Last 15 days",
              "Last 30 days"
            ],
            "type": "string",
            "description": "Optional recency filter."
          },
          "furnished": {
            "title": "Furnished only",
            "type": "boolean",
            "description": "Return only furnished properties when true.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "Newest",
              "Oldest",
              "Price Low to High",
              "Price High to Low",
              "Smart Sort"
            ],
            "type": "string",
            "description": "Sort order for public search results.",
            "default": "Newest"
          },
          "extractPhoneNumbers": {
            "title": "Extract visible phone numbers",
            "type": "boolean",
            "description": "Keep seller phone fields when they are publicly present in the response.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum listings to emit.",
            "default": 100
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time to wait for the public response.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}