{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Ukraine Scraper: Active Listings & Real-Time Deal Sniper",
    "description": "Збір існуючих оголошень та перехоплення свіжих у реальному часі (до появи в пошуку). Fast OLX.ua extraction of active listings & live real-time deal sniping with zero proxy costs.",
    "version": "0.0",
    "x-build-id": "SVoXV2r9IsNdHSX3K"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/utilix_labs~olx-ukraine-scraper-active-listings-real-time-deal-sniper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-utilix_labs-olx-ukraine-scraper-active-listings-real-time-deal-sniper",
        "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/utilix_labs~olx-ukraine-scraper-active-listings-real-time-deal-sniper/runs": {
      "post": {
        "operationId": "runs-sync-utilix_labs-olx-ukraine-scraper-active-listings-real-time-deal-sniper",
        "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/utilix_labs~olx-ukraine-scraper-active-listings-real-time-deal-sniper/run-sync": {
      "post": {
        "operationId": "run-sync-utilix_labs-olx-ukraine-scraper-active-listings-real-time-deal-sniper",
        "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": {
          "operationMode": {
            "title": "Operation Mode (Режим роботи)",
            "enum": [
              "instant_search",
              "realtime_radar"
            ],
            "type": "string",
            "description": "Збір опублікованих оголошень АБО перехоплення нових публікацій наживо ще ДО проходження модерації та появи в пошуку OLX — щоб телефонувати першим. (Search active listings or catch fresh pre-moderated deals in real time).",
            "default": "instant_search"
          },
          "searchQuery": {
            "title": "Search Query (Пошуковий запит)",
            "type": "string",
            "description": "Keywords to search in title and description (e.g. iphone 15 pro, macbook air, bmw). Leave empty to collect all listings."
          },
          "category": {
            "title": "Category (Категорія OLX)",
            "enum": [
              "0",
              "1532",
              "110",
              "225",
              "1701",
              "222",
              "1748",
              "253",
              "108",
              "109",
              "261",
              "273",
              "304",
              "7",
              "186",
              "112",
              "188",
              "204",
              "3546",
              "3467",
              "193",
              "3504",
              "192",
              "3466",
              "195",
              "203",
              "3545",
              "42",
              "47",
              "836",
              "3505",
              "726",
              "190",
              "196",
              "36",
              "543",
              "71",
              "544",
              "542",
              "539",
              "889",
              "538",
              "68",
              "69",
              "545",
              "3901",
              "899",
              "654",
              "63",
              "641",
              "537",
              "632",
              "48",
              "57",
              "667",
              "60",
              "93",
              "1433",
              "611",
              "37",
              "55",
              "390",
              "1431",
              "401",
              "402",
              "395",
              "38",
              "1502",
              "1508",
              "420",
              "44",
              "383",
              "369",
              "429",
              "3709",
              "3710",
              "3713",
              "3711",
              "3712",
              "3715",
              "3714",
              "3",
              "2156",
              "2357",
              "2155",
              "2154",
              "316",
              "2571",
              "2019",
              "2018",
              "2017",
              "2157",
              "270",
              "891",
              "98",
              "2013",
              "97",
              "2011",
              "2015",
              "2016",
              "52",
              "1427",
              "556",
              "2012",
              "897",
              "3223",
              "2010",
              "2014",
              "2107",
              "1",
              "206",
              "1616",
              "1606",
              "1757",
              "1610",
              "1754",
              "1522",
              "3428",
              "3439",
              "3431",
              "3429",
              "3430",
              "3438",
              "3437",
              "3436",
              "3434",
              "3435",
              "3433",
              "3432",
              "6",
              "147",
              "151",
              "1473",
              "1475",
              "150",
              "1866",
              "143",
              "1874",
              "183",
              "1477",
              "137",
              "154",
              "140",
              "134",
              "1159",
              "141",
              "152",
              "1165",
              "145",
              "1481",
              "144",
              "1902",
              "3677",
              "1479",
              "35",
              "66",
              "367",
              "1520",
              "120",
              "247",
              "365",
              "67",
              "65",
              "64",
              "368",
              "903",
              "485",
              "1425",
              "53",
              "3415",
              "3421",
              "54",
              "49",
              "45",
              "3352",
              "118",
              "115",
              "573"
            ],
            "type": "string",
            "description": "Select an OLX category or subcategory. The scraper automatically includes all nested child categories!",
            "default": "0"
          },
          "customCategoryId": {
            "title": "Custom Category ID",
            "type": "integer",
            "description": "Optional: Specify an exact numeric OLX category ID directly if targeting a deep subcategory not listed above."
          },
          "city": {
            "title": "City or Region (Місто / Область)",
            "enum": [
              "",
              "Київ",
              "Харків",
              "Одеса",
              "Дніпро",
              "Львів",
              "Запоріжжя",
              "Кривий Ріг",
              "Миколаїв",
              "Вінниця",
              "Полтава",
              "Чернігів",
              "Черкаси",
              "Житомир",
              "Суми",
              "Хмельницький",
              "Чернівці",
              "Рівне",
              "Івано-Франківськ",
              "Тернопіль",
              "Кропивницький",
              "Кременчук",
              "Луцьк",
              "Біла Церква",
              "Ужгород",
              "Бровари",
              "Кам'янець-Подільський",
              "Київська область",
              "Львівська область",
              "Одеська область",
              "Дніпропетровська область",
              "Харківська область"
            ],
            "type": "string",
            "description": "Filter by major Ukrainian city or region. Leave empty for all Ukraine.",
            "default": ""
          },
          "customCity": {
            "title": "Custom City / Town (Інше місто)",
            "type": "string",
            "description": "If your town or village is not in the list above, enter its name manually (e.g. Трускавець, Бориспіль, Ірпінь)."
          },
          "distance": {
            "title": "Distance / Radius (Радіус пошуку)",
            "enum": [
              "0",
              "2",
              "5",
              "10",
              "15",
              "30",
              "50",
              "75",
              "100"
            ],
            "type": "string",
            "description": "Search radius around the selected city in kilometers. 0 = exact city only.",
            "default": "0"
          },
          "priceFrom": {
            "title": "Price From (Ціна від, ₴)",
            "type": "integer",
            "description": "Minimum price in Ukrainian Hryvnia (UAH)."
          },
          "priceTo": {
            "title": "Price To (Ціна до, ₴)",
            "type": "integer",
            "description": "Maximum price in Ukrainian Hryvnia (UAH)."
          },
          "maxAgeMinutes": {
            "title": "Max Listing Age (Свіжість оголошень, хв)",
            "minimum": 0,
            "type": "integer",
            "description": "For 'Збір існуючих': only return listings published within the last N minutes (e.g. 15, 60, 1440). 0 = any age.",
            "default": 0
          },
          "listenMinutes": {
            "title": "Monitoring Duration (Тривалість онлайн-відстеження, хв)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "For 'Онлайн-відстеження нових' mode: how many minutes to stream incoming listings in real time (1 to 60 min) to intercept fresh deals before they appear in site search. 0 = search existing listings only.",
            "default": 0
          },
          "state": {
            "title": "Item Condition (Стан товару)",
            "enum": [
              "any",
              "used",
              "new"
            ],
            "type": "string",
            "description": "Filter listings by item condition (used / new).",
            "default": "any"
          },
          "includeAttributes": {
            "title": "Include Detailed Attributes (Характеристики)",
            "type": "boolean",
            "description": "Whether to include parsed technical specifications and parameters normalized in Ukrainian. Disable for lightweight output.",
            "default": true
          },
          "sortBy": {
            "title": "Sort By (Сортування)",
            "enum": [
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Sorting order for listings.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max Items (Максимум оголошень)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings to collect per run (up to 1,000).",
            "default": 50
          },
          "telegramBotToken": {
            "title": "Telegram Bot Token (Токен бота, опціонально)",
            "type": "string",
            "description": "Optional: Your Telegram Bot Token from @BotFather (e.g. 123456789:ABCdef...). Leave empty to disable direct Telegram alerts."
          },
          "telegramChatId": {
            "title": "Telegram Chat / Channel ID (ID чату або каналу, опціонально)",
            "type": "string",
            "description": "Optional: Telegram Chat ID (e.g. 12345678) or Channel ID (e.g. -1001234567890). Send any message to @userinfobot to find your Chat ID."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}