{
  "openapi": "3.0.1",
  "info": {
    "title": "Cian.ru Scraper",
    "description": "Scrape Cian.ru, Russia's top real-estate marketplace. Search by location, region id, coordinates, polygon or URL; pull full listing details, similar listings, agent profiles + offers, residential-complex (ЖК) details, and autocomplete Russian locations.",
    "version": "1.0",
    "x-build-id": "4BdhhwvV12ViLyUYw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one-api~cian-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one-api-cian-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/one-api~cian-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one-api-cian-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/one-api~cian-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one-api-cian-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": {
          "search_inputs": {
            "title": "Search query (one per line)",
            "type": "array",
            "description": "Auto-detects each entry and routes to the right `/search/*` endpoint:\n• `https://www.cian.ru/...` (search or offer URL) → `/search/byurl`\n• `lat,lng` or `lat,lng,radius` (e.g. `55.75,37.62,3`) → `/search/bycoordinates`\n• `lon lat,lon lat,...` (≥4 space-separated pairs) → `/search/bypolygon`\n• Pure digits (e.g. `1`) → `/search/byregionid` (Cian region id — find ids via the Autocomplete section)\n• Anything else (city / district / metro / street, e.g. `Москва`, `Тверская, Москва`) → `/search/bylocation`\n\nThe filters below apply to every search. Each hit returns one row per listing.",
            "items": {
              "type": "string"
            }
          },
          "property_inputs": {
            "title": "Offer id or Cian URL (one per line)",
            "type": "array",
            "description": "Auto-detects each entry and calls the right endpoint:\n• Digits only (e.g. `317927888`) → `/details/byid`\n• `https://www.cian.ru/sale/flat/.../` → `/details/byurl`\n\nEach row is one full listing record (price, area, rooms, building, photos, metro/geo, agent/owner contacts).",
            "items": {
              "type": "string"
            }
          },
          "similar_ids": {
            "title": "Offer id for similar listings (one per line)",
            "type": "array",
            "description": "For each Cian offer id, fetch comparable listings via `/similar/byid` (one row per similar offer).",
            "items": {
              "type": "string"
            }
          },
          "agent_ids": {
            "title": "Agent / agency id (one per line)",
            "type": "array",
            "description": "For each Cian user/agency id, fetch `/agent/details` (one profile row) plus `/agent/offers` (one row per active listing). Agent ids appear in the `Agent / Owner` and `Raw` columns of search results.",
            "items": {
              "type": "string"
            }
          },
          "newbuilding_ids": {
            "title": "New building (ЖК) id (one per line)",
            "type": "array",
            "description": "For each residential-complex id, fetch `/newbuilding/byid` (one row per ЖК: name, status, completion year, address). New-building ids appear in the `Raw` column of search results.",
            "items": {
              "type": "string"
            }
          },
          "autocomplete_inputs": {
            "title": "Location text to resolve (one per line)",
            "type": "array",
            "description": "Resolve Russian location names to Cian region ids via `/autocomplete`. Each row carries the `Property ID` = region id you can feed back into the Search section's `byregionid` mode. Returns cities, districts, metro stations, and streets.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Deal type",
            "enum": [
              "For_Sale",
              "For_Rent"
            ],
            "type": "string",
            "description": "Sale or rent. Cian has no sold/closed listings.",
            "default": "For_Sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartment",
              "studio",
              "room",
              "newbuilding",
              "house",
              "townhouse",
              "land",
              "office",
              "commercial"
            ],
            "type": "string",
            "description": "Which Cian category to search.",
            "default": "apartment"
          },
          "rooms": {
            "title": "Rooms",
            "type": "string",
            "description": "Comma-separated room counts for apartments: `1,2,3`. Also accepts `studio`, `free` (free layout), `6+`.",
            "default": ""
          },
          "priceRange": {
            "title": "Price range (₽)",
            "type": "string",
            "description": "Format: `min:5000000,max:15000000` — either half optional. Rubles.",
            "default": ""
          },
          "totalAreaRange": {
            "title": "Total area range (m²)",
            "type": "string",
            "description": "Format: `min:40,max:80`.",
            "default": ""
          },
          "floorRange": {
            "title": "Floor range",
            "type": "string",
            "description": "Format: `min:2,max:9`.",
            "default": ""
          },
          "yearBuiltRange": {
            "title": "Year built range",
            "type": "string",
            "description": "Format: `min:2000,max:2024`.",
            "default": ""
          },
          "houseMaterial": {
            "title": "Building material",
            "type": "string",
            "description": "Comma-separated: `brick,monolith,panel` (also `block`, `wood`, `stalin`).",
            "default": ""
          },
          "buildingStatus": {
            "title": "Building status (apartments)",
            "enum": [
              "",
              "new",
              "secondary"
            ],
            "type": "string",
            "description": "Limit apartments to new construction or secondary market.",
            "default": ""
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "Default",
              "Price_Low_to_High",
              "Price_per_sqm",
              "Newest",
              "Area",
              "Metro_Distance",
              "Street"
            ],
            "type": "string",
            "description": "How to sort search results.",
            "default": "Default"
          },
          "notFirstFloor": {
            "title": "Not first floor",
            "type": "boolean",
            "description": "Exclude ground-floor listings.",
            "default": false
          },
          "notLastFloor": {
            "title": "Not last floor",
            "type": "boolean",
            "description": "Exclude top-floor listings.",
            "default": false
          },
          "withPhoto": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Only listings that have photos.",
            "default": false
          },
          "pages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages to fetch for each Search query (Cian serves ~28 listings per page).",
            "default": 1
          },
          "resultCount": {
            "title": "Results per page",
            "minimum": 1,
            "maximum": 28,
            "type": "integer",
            "description": "Listings per page (Cian caps each page at 28). Also caps Similar and Agent-offers results.",
            "default": 28
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}