{
  "openapi": "3.0.1",
  "info": {
    "title": "Etagi Scraper — Russia Property Data & API",
    "description": "Etagi scraper & real estate data API for Russia's largest property-agency network. Sale & rent listings across many Russian cities: price (RUB), price/m², rooms, area, floor, building year, GPS, metro, photos, new-build complex — clean JSON/CSV.",
    "version": "1.0",
    "x-build-id": "LR2bFkGcsnqLIAA1T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~etagi-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-etagi-property-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/sian.agency~etagi-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-etagi-property-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/sian.agency~etagi-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-etagi-property-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": {
          "scrapeMode": {
            "title": "⚡ Scrape mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "⚡ **OVERVIEW** — fast, cheap, ungated. Pulls every core field straight from Etagi's listings feed (price, price/m², rooms, area, floor, building year, GPS, metro, photos, new-build complex).\n\n🔍 **DETAIL** — refresh specific properties by their listing URL, with the full field set. Priced higher per result.\n\n**TIP:** Start with Overview — switch to Detail only when you need to refresh exact properties by URL.",
            "default": "overview"
          },
          "searchMode": {
            "title": "🧭 Search by (auto-detected)",
            "enum": [
              "byCity",
              "byListingUrl"
            ],
            "type": "string",
            "description": "🧭 How to tell the scraper what to fetch. **Usually leave this blank — it is auto-inferred** from your inputs:\n\n- **By city** — search a city + filters/sort (the default for Overview).\n- **By listing URL** — Detail mode only: paste specific Etagi listing URLs to refresh those exact properties.\n\n**NOTE:** *By listing URL* is valid only when Scrape mode = Detail.",
            "default": "byCity"
          },
          "city": {
            "title": "🏙️ City",
            "type": "string",
            "description": "🏙️ Which Russian city to search (Etagi's city slug). A specific city is targeted **deterministically** — the scraper resolves and pins that exact city, and refuses to return another city's data.\n\n**Verified slugs:** `tyumen` · `moskva` (Moscow) · `sankt-peterburg` (St. Petersburg) · `ekaterinburg` · `novosibirsk` · `kazan` · `krasnodar` · `chelyabinsk` · `omsk` · `rostov-na-donu` · `samara` · `ufa` · `perm`. Other Russian cities Etagi covers also work.\n\n**HOW TO FIND A SLUG:** open the city on Etagi and read the subdomain from the URL — e.g. `kazan.etagi.com` → `kazan`.",
            "default": "tyumen"
          },
          "deal": {
            "title": "🤝 Deal type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "🤝 Whether to scrape properties **for sale** or **for rent**.",
            "default": "sale"
          },
          "objectType": {
            "title": "🏠 Object type",
            "enum": [
              "flat",
              "house",
              "commercial",
              "land",
              "garage"
            ],
            "type": "string",
            "description": "🏠 Property type to search. **Flat** (apartment) is the primary, best-covered inventory; the others are available too.",
            "default": "flat"
          },
          "listingUrls": {
            "title": "🆔 Listing URLs",
            "type": "array",
            "description": "🆔 **Detail mode only.** Specific Etagi listing URLs to refresh as full property records (e.g. `https://tyumen.etagi.com/realty/12938989/`).\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 1,
            "type": "integer",
            "description": "🔢 Maximum listings to extract this run.\n\n- **FREE tier:** capped at 25 listings per run.\n- **PAID tier:** unlimited — set as high as you need.",
            "default": 100
          },
          "sort": {
            "title": "↕️ Sort by",
            "enum": [
              "default",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc",
              "date_desc",
              "price_m2_asc"
            ],
            "type": "string",
            "description": "↕️ How Etagi orders the listings before they are scraped.",
            "default": "default"
          },
          "priceMin": {
            "title": "💸 Min price (RUB)",
            "minimum": 0,
            "type": "integer",
            "description": "💸 Optional. Minimum price filter in rubles."
          },
          "priceMax": {
            "title": "💰 Max price (RUB)",
            "minimum": 0,
            "type": "integer",
            "description": "💰 Optional. Maximum price filter in rubles."
          },
          "areaMin": {
            "title": "📐 Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "📐 Optional. Minimum total area in square meters."
          },
          "areaMax": {
            "title": "📐 Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "📐 Optional. Maximum total area in square meters."
          },
          "rooms": {
            "title": "🚪 Rooms",
            "minimum": 0,
            "type": "integer",
            "description": "🚪 Optional. Exact number of rooms (use 0 for studio)."
          },
          "floorMin": {
            "title": "🛗 Min floor",
            "minimum": 0,
            "type": "integer",
            "description": "🛗 Optional. Minimum floor."
          },
          "floorMax": {
            "title": "🛗 Max floor",
            "minimum": 0,
            "type": "integer",
            "description": "🛗 Optional. Maximum floor."
          },
          "yearMin": {
            "title": "📅 Min build year",
            "minimum": 0,
            "type": "integer",
            "description": "📅 Optional. Minimum building construction year."
          },
          "yearMax": {
            "title": "📅 Max build year",
            "minimum": 0,
            "type": "integer",
            "description": "📅 Optional. Maximum building construction year."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}