{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX.ua Scraper — Ukraine Real Estate, Jobs & Cars",
    "description": "Scrape olx.ua: property listings (price in UAH/USD, m², rooms, floor, GPS), jobs (salary range, employment type) and cars (make, model, year, mileage, customs). Only-new mode for daily monitoring. Pay per listing.",
    "version": "0.1",
    "x-build-id": "i4ITsfDPV6W5yTFtb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eudatalab~olx-ua-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eudatalab-olx-ua-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/eudatalab~olx-ua-scraper/runs": {
      "post": {
        "operationId": "runs-sync-eudatalab-olx-ua-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/eudatalab~olx-ua-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-eudatalab-olx-ua-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": {
          "section": {
            "title": "Section",
            "enum": [
              "nedvizhimost",
              "rabota",
              "transport/legkovye-avtomobili"
            ],
            "type": "string",
            "description": "Which part of olx.ua to search. Any other section (electronics, home & garden…) works through Start URLs.",
            "default": "nedvizhimost"
          },
          "category": {
            "title": "Real-estate category",
            "enum": [
              "kvartiry/dolgosrochnaya-arenda-kvartir",
              "kvartiry/prodazha-kvartir",
              "doma/arenda-domov",
              "doma/prodazha-domov",
              "komnaty/dolgosrochnaya-arenda-komnat",
              "komnaty/prodazha-komnat",
              "zemlya/prodazha-zemli",
              "zemlya/arenda-zemli",
              "kommercheskaya-nedvizhimost/arenda-kommercheskoy-nedvizhimosti",
              "kommercheskaya-nedvizhimost/prodazha-kommercheskoy-nedvizhimosti",
              "garazhy-parkovki/arenda-garazhey-parkovok",
              "garazhy-parkovki/prodazha-garazhey-parkovok"
            ],
            "type": "string",
            "description": "Real-estate sub-section to scrape. Used only when Section = Real estate.",
            "default": "kvartiry/dolgosrochnaya-arenda-kvartir"
          },
          "carMake": {
            "title": "Car make",
            "type": "string",
            "description": "Optional, as written in olx.ua URLs: bmw, toyota, volkswagen, mercedes-benz, daewoo… Used only when Section = Cars."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Ukrainian, Russian or English name of a large city: Київ / Kyiv, Харків, Одеса, Дніпро, Львів, Запоріжжя, Вінниця, Полтава, Івано-Франківськ, Тернопіль, Ужгород, Луцьк, Рівне, Чернігів, Чернівці, Хмельницький, Житомир, Суми, Черкаси, Кропивницький, Миколаїв, Херсон, Ірпінь, Бровари — or the city part of an olx.ua URL (e.g. \"kiev\", \"lvov\"). Leave empty to search all of Ukraine. Smaller towns: open the search on olx.ua and paste its URL into Start URLs."
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional free-text search inside the section, in Ukrainian or Russian, e.g. \"новобудова\", \"водій\", \"автомат\"."
          },
          "startUrls": {
            "title": "Start URLs (advanced)",
            "type": "array",
            "description": "Any olx.ua listing URL with the site's own filters applied (price, area, salary, year, mileage…), from any section or town. When set, Section, categories, City and Keyword above are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "onlyNew": {
            "title": "Only new results since the last run",
            "type": "boolean",
            "description": "For scheduled runs: each run returns (and charges for) only results that earlier runs of this same search have not delivered yet. The first run gets up to Max items; later runs get just the listings that appeared since. The memory is kept in a key-value store in your own Apify account (named olx-ua-seen); delete it to start over. Changing any search field starts a separate memory.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings (ads). Each listing is one charged event, so this is also your cost cap. olx.ua returns at most 1 000 listings per search.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is recommended; datacenter proxies are enough for this site.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}