{
  "openapi": "3.0.1",
  "info": {
    "title": "Hepsiemlak Scraper - Turkey Properties, Projects & Offices",
    "description": "Collect Hepsiemlak property listings, residential projects and real-estate offices in Turkey. Export prices, sizes, locations and available contacts. Pay per delivered row plus a start fee.",
    "version": "0.1",
    "x-build-id": "a6bVuVG38L0TfdsdZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~hepsiemlak-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-hepsiemlak-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/lentic_clockss~hepsiemlak-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-hepsiemlak-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/lentic_clockss~hepsiemlak-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-hepsiemlak-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": {
          "location": {
            "title": "City / location slug",
            "maxLength": 160,
            "type": "string",
            "description": "City slug such as istanbul, or national, _ or all for a Turkey-wide listing search. Empty input starts an Istanbul sale example with at most 3 rows; normal event pricing applies."
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Individual Hepsiemlak listing URLs to collect instead of a search. For project page URLs, also set channel to projects; for an office page use channel office and officeUrl.",
            "items": {
              "type": "string"
            }
          },
          "projectIds": {
            "title": "Project URLs",
            "type": "array",
            "description": "Full Hepsiemlak project page URLs ending in a numeric project identifier, not bare IDs. Selects projects automatically; cannot be combined with detailUrls or office inputs.",
            "items": {
              "type": "string"
            }
          },
          "officeUrl": {
            "title": "Office URL",
            "pattern": "^$|^(https?://)?([A-Za-z0-9-]+\\.)*hepsiemlak\\.com/.*$",
            "type": "string",
            "description": "Hepsiemlak office page URL under /emlak-ofisi/. Set channel to office; either this field or firmId is required."
          },
          "firmId": {
            "title": "Office firm ID",
            "type": "string",
            "description": "Numeric office ID or a slug ending in that ID. Set channel to office; either this field or officeUrl is required."
          },
          "district": {
            "title": "District slug",
            "type": "string",
            "description": "District slug without the city prefix, such as arnavutkoy. Used to narrow listing searches, not the project directory."
          },
          "channel": {
            "title": "Channel",
            "enum": [
              "sale",
              "rent",
              "seasonal",
              "projects",
              "office"
            ],
            "type": "string",
            "description": "Choose sale, rent or seasonal listings, the project directory, or an office and its listings. projectIds selects projects automatically; officeUrl and firmId still require channel office.",
            "default": "sale"
          },
          "neighborhood": {
            "title": "Neighborhood slug",
            "type": "string",
            "description": "Neighborhood slug for listing searches; also provide the district. Does not filter the project directory.",
            "default": ""
          },
          "propertyType": {
            "title": "Property type",
            "type": "string",
            "description": "Accepted property category, such as daire or villa. Not currently applied to standard listing searches; do not rely on it for land or commercial-property coverage.",
            "default": ""
          },
          "locale": {
            "title": "Locale",
            "enum": [
              "en",
              "tr",
              "ru"
            ],
            "type": "string",
            "description": "Accepted language setting: en, tr or ru. Source titles and descriptions may remain Turkish; this does not change the country.",
            "default": "en"
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum delivered rows per location, detail URL, project URL or office input, from 1 to 500; default 70, with larger requests collected in parts of 70. Your maximum cost caps the run; free-plan accounts have 200 rows per run and 10 total runs of this Actor.",
            "default": 70
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum search pages to request, from 1 to 50. This page limit can stop collection before maxResults is reached.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Add available listing details such as description, contacts and coordinates to the same row. Enabled in the form and empty-input example; set explicitly for direct API input, where an omitted value is false.",
            "default": true
          },
          "includeRaw": {
            "title": "Include raw payloads",
            "type": "boolean",
            "description": "Include additional source data under raw. Leave disabled for smaller, simpler rows.",
            "default": false
          },
          "workerBaseUrl": {
            "title": "Developer testing URL",
            "pattern": "^$|^https://[^\\s]+$",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}