{
  "openapi": "3.0.1",
  "info": {
    "title": "2GIS Property Scraper - парсер недвижимости, квартиры, аренда",
    "description": "2GIS real estate scraper / парсер недвижимости 2ГИС. Продажа и аренда квартир, домов, коммерции. Цена, площадь, комнаты, этаж, адрес, координаты, фото. 12 фильтров, 5 категорий. JSON/CSV/Excel. Россия (155+ городов), Казахстан, Кыргызстан. Без браузера, без логина. API для автоматизации.",
    "version": "0.0",
    "x-build-id": "UQJoSda1ssbVHGM0Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~2gis-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-2gis-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/zen-studio~2gis-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-2gis-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/zen-studio~2gis-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-2gis-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",
        "required": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Город (City)",
            "type": "string",
            "description": "City name in English or Russian. Russia, Kazakhstan, Kyrgyzstan. Examples: Moscow / Москва, Saint Petersburg / Санкт-Петербург, Almaty / Алматы.",
            "default": "Moscow"
          },
          "country": {
            "title": "Страна (Country)",
            "enum": [
              "",
              "RU",
              "KZ",
              "AE",
              "UZ",
              "KG",
              "AM",
              "GE",
              "AZ",
              "BY",
              "TJ",
              "CZ",
              "CL",
              "IT",
              "CY",
              "SA",
              "BH",
              "KW",
              "QA",
              "OM",
              "IQ"
            ],
            "type": "string",
            "description": "Narrow location to a specific country if the city name is ambiguous.",
            "default": ""
          },
          "language": {
            "title": "Язык (Language)",
            "enum": [
              "ru",
              "en",
              "kk",
              "uz",
              "ky",
              "ar",
              "cs"
            ],
            "type": "string",
            "description": "Language for results.",
            "default": "ru"
          },
          "maxResults": {
            "title": "Макс. объявлений (Max listings)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape. 0 or empty = unlimited.",
            "default": 1000
          },
          "category": {
            "title": "Категория (Category)",
            "enum": [
              "sale_residential",
              "sale_commercial",
              "rent_residential",
              "rent_commercial",
              "daily_rent"
            ],
            "type": "string",
            "description": "Type of real estate listing.",
            "default": "sale_residential"
          },
          "sort": {
            "title": "Сортировка (Sort)",
            "enum": [
              "",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "Sort order for results.",
            "default": ""
          },
          "rooms": {
            "title": "Комнаты (Rooms)",
            "type": "array",
            "description": "Filter by number of rooms. Select one or more. Leave empty for all. Not available in all cities.",
            "items": {
              "type": "string",
              "enum": [
                "studio",
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "Студия (Studio)",
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            },
            "default": []
          },
          "propertyType": {
            "title": "Тип помещения (Property Type)",
            "type": "array",
            "description": "Filter by property type. Leave empty for all. Not available in all cities.",
            "items": {
              "type": "string",
              "enum": [
                "flat",
                "house",
                "land",
                "cottage",
                "room",
                "townhouse",
                "share",
                "part_house"
              ],
              "enumTitles": [
                "Квартира (Apartment)",
                "Дом (House)",
                "Участок (Land)",
                "Коттедж (Cottage)",
                "Комната (Room)",
                "Таунхаус (Townhouse)",
                "Доля в квартире (Share)",
                "Часть дома (Part of house)"
              ]
            },
            "default": []
          },
          "newBuilding": {
            "title": "Новостройка / вторичка (New / Resale)",
            "type": "array",
            "description": "Filter by new building vs resale. Leave empty for all. Not available in all cities.",
            "items": {
              "type": "string",
              "enum": [
                "secondary",
                "new"
              ],
              "enumTitles": [
                "Вторичка (Resale)",
                "Новостройка (New building)"
              ]
            },
            "default": []
          },
          "priceMin": {
            "title": "Цена от (Price min)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price. Leave empty for no lower bound."
          },
          "priceMax": {
            "title": "Цена до (Price max)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price. Leave empty for no upper bound."
          },
          "pricePerMeterMin": {
            "title": "Цена за м² от (Price per m² min)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price per square meter."
          },
          "pricePerMeterMax": {
            "title": "Цена за м² до (Price per m² max)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price per square meter."
          },
          "areaMin": {
            "title": "Площадь от (Area min, m²)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum area in square meters."
          },
          "areaMax": {
            "title": "Площадь до (Area max, m²)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum area in square meters."
          },
          "floorMin": {
            "title": "Этаж от (Floor min)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum floor number."
          },
          "floorMax": {
            "title": "Этаж до (Floor max)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum floor number."
          },
          "notFirstFloor": {
            "title": "Не первый этаж (Not first floor)",
            "type": "boolean",
            "description": "Exclude listings on the first floor.",
            "default": false
          },
          "notLastFloor": {
            "title": "Не последний этаж (Not last floor)",
            "type": "boolean",
            "description": "Exclude listings on the last floor.",
            "default": false
          },
          "floorsInBuildingMin": {
            "title": "Этажей в доме от (Building floors min)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of floors in the building."
          },
          "floorsInBuildingMax": {
            "title": "Этажей в доме до (Building floors max)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of floors in the building."
          },
          "metroTime": {
            "title": "До метро (Metro proximity)",
            "enum": [
              "",
              "0,5",
              "0,10",
              "0,20"
            ],
            "type": "string",
            "description": "Maximum walking time to metro station. Only works in cities with metro data (e.g. Moscow). Ignored elsewhere.",
            "default": ""
          },
          "provider": {
            "title": "Источник (Provider)",
            "type": "array",
            "description": "Filter by listing provider. Leave empty for all. Not available in all cities.",
            "items": {
              "type": "string",
              "enum": [
                "cian",
                "domclick"
              ],
              "enumTitles": [
                "ЦИАН (CIAN)",
                "ДомКлик (Domclick)"
              ]
            },
            "default": []
          },
          "proxyConfiguration": {
            "title": "Прокси (Proxy)",
            "type": "object",
            "description": "Proxy configuration."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}