{
  "openapi": "3.0.1",
  "info": {
    "title": "Ozon Travel Flights Scraper · Авиабилеты Ozon Travel",
    "description": "Ozon Travel flights for your route and dates: times, transfers, airlines, price for all passengers, baggage, fares, a 3-month price calendar. Авиабилеты Ozon Travel по маршруту и датам: время, пересадки, авиакомпании, цена за всех, багаж, тарифы, календарь цен.",
    "version": "0.1",
    "x-build-id": "vAmowZxwdRF0irTM9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~ozon-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-ozon-flights-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/theshark~ozon-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-theshark-ozon-flights-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/theshark~ozon-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-ozon-flights-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": {
          "flights": {
            "title": "Routes · Маршруты",
            "type": "array",
            "description": "One route per line: IATA codes of cities or airports (MOW-LED, LED-AER), city names («Москва — Санкт-Петербург»: the site finds the code) or a flight search link from ozon.ru/travel (it keeps its own dates and passengers).<br><br>По маршруту в строке: коды IATA городов или аэропортов (MOW-LED, LED-AER), названия городов («Москва — Санкт-Петербург»: код найдёт сайт) или ссылка на поиск авиабилетов с ozon.ru/travel (в ней свои даты и пассажиры).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "departure_date": {
            "title": "Departure date · Дата отправления",
            "type": "string",
            "description": "YYYY-MM-DD. Needed for routes of flights and trains (links have their own dates).<br><br>ГГГГ-ММ-ДД. Нужна для маршрутов авиабилетов и поездов (у ссылок свои даты)."
          },
          "return_date": {
            "title": "Return date · Дата обратно",
            "type": "string",
            "description": "YYYY-MM-DD, a round trip (trains: a second search back); empty — one way.<br><br>ГГГГ-ММ-ДД, туда-обратно (поезда: второй поиск, обратно); пусто — в одну сторону."
          },
          "departure_days_ahead": {
            "title": "Departure days from run day · Отправление через дней от запуска",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Instead of fixed dates — for scheduled runs: departure this many days after the run day (each run looks at «a week ahead»). 0 — the departure date above; if the departure date is set, it wins.<br><br>Вместо точных дат — для запусков по расписанию: отправление через столько дней после дня запуска (каждый запуск смотрит «через неделю»). 0 — дата отправления выше; если она задана, главная — она.",
            "default": 0
          },
          "return_after_days": {
            "title": "Return after days · Обратно через дней",
            "minimum": 0,
            "maximum": 180,
            "type": "integer",
            "description": "With «Departure days from run day»: return this many days after departure (0 — one way).<br><br>С «Отправление через дней от запуска»: обратно через столько дней после отправления (0 — в одну сторону).",
            "default": 0
          },
          "passengers": {
            "title": "Adults · Взрослых",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers 12 and older (trains: 10 and older). Flight prices are for all passengers, train prices are per seat. Trains: up to 4 with a seat.<br><br>Пассажиры от 12 лет (поезда: от 10). Цены авиабилетов — за всех пассажиров, поездов — за место. Поезда: до 4 с местом.",
            "default": 1
          },
          "children": {
            "title": "Children with a seat · Детей с местом",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Flights: 2–12 years, adults and children — up to 9. Trains: under 10, adults and children — up to 4.<br><br>Авиабилеты: 2–12 лет, взрослых и детей — до 9. Поезда: до 10 лет, взрослых и детей — до 4.",
            "default": 0
          },
          "infants": {
            "title": "Children without a seat · Детей без места",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Flights: under 2, trains: under 5. Not more than adults.<br><br>Авиабилеты: до 2 лет, поезда: до 5. Не больше, чем взрослых.",
            "default": 0
          },
          "service_class": {
            "title": "Class · Класс",
            "enum": [
              "economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class of the search: economy and comfort, business or first.<br><br>Класс обслуживания для поиска: эконом и комфорт, бизнес или первый.",
            "default": "economy"
          },
          "flight_airlines": {
            "title": "Only these airlines · Только эти авиакомпании",
            "type": "array",
            "description": "IATA airline codes: SU, S7, DP. Empty — all airlines.<br><br>Коды IATA авиакомпаний: SU, S7, DP. Пусто — все авиакомпании.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "flight_sorting": {
            "title": "Flight order · Порядок рейсов",
            "enum": [
              "best",
              "price",
              "fast",
              "departure",
              "arrival"
            ],
            "type": "string",
            "description": "Which flights come first (and are taken when «Products per query or link» limits them). The cheapest price of a search is taken among all flights received: with «Best first» and «Cheapest first» the cheapest one is always among the first 100; with other orders set «0 — all» to be sure.<br><br>Какие рейсы идут первыми (и берутся, когда их ограничивает «Товаров на запрос или ссылку»). Самая низкая цена поиска — среди всех полученных рейсов: при «Сначала лучшие» и «Сначала дешёвые» самый дешёвый всегда в первых 100; при других порядках для верности ставьте «0 — все».",
            "default": "best"
          },
          "max_results": {
            "title": "Flights per route · Рейсов на маршрут",
            "minimum": 0,
            "type": "integer",
            "description": "0 — all flights Ozon found (the first 100 come at once, then 100 per request). Also limited by your max total charge. The cheapest price — among all flights received: with «Best first» and «Cheapest first» it is always among the first 100.<br><br>0 — все рейсы, что нашёл Озон (первые 100 приходят сразу, дальше — по 100 за запрос). Ограничивает и максимальная сумма списаний запуска. Самая низкая цена — среди всех полученных рейсов: при «Сначала лучшие» и «Сначала дешёвые» она всегда в первых 100.",
            "default": 5
          },
          "flight_tariffs": {
            "title": "Fare options of each flight · Тарифы каждого рейса",
            "type": "boolean",
            "description": "Opens the «Choose a fare» window of every flight: fares with price, baggage, exchange, refund, seat choice, miles. +1 request per flight, so up to 20 flights per route.<br><br>Открывает окно «Выберите тариф» каждого рейса: тарифы с ценой, багажом, обменом, возвратом, выбором места, милями. +1 запрос на рейс, поэтому до 20 рейсов на маршрут.",
            "default": false
          },
          "output_language": {
            "title": "Output language · Язык вывода",
            "enum": [
              "en",
              "ru"
            ],
            "type": "string",
            "description": "Language of the Excel workbook, CSV, change details, run status and log. Ozon's own data (product names, characteristics, reviews) comes in the site language (the Language field).<br><br>Язык книги Excel, CSV, подробностей изменений, статуса запуска и лога. Данные самого Озона (названия товаров, характеристики, отзывы) — на языке сайта (поле «Язык сайта»).",
            "default": "en"
          },
          "sessions": {
            "title": "Sessions per storefront · Сессий на витрину",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Anonymous Ozon buyers working at the same time on each storefront, each with its own proxy session: 2 — about twice as fast as 1. Sessions are kept in the history store, so a browser opens for a new one only once.<br><br>Анонимные покупатели Озона, которые работают одновременно на каждой витрине, у каждого — своя сессия прокси: 2 — примерно вдвое быстрее, чем 1. Сессии хранятся в хранилище истории, поэтому браузер для новой открывается только один раз.",
            "default": 8
          },
          "browsers": {
            "title": "Browsers at once · Браузеров одновременно",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "A browser (~320 MB) opens only to get a new Ozon session (they are kept in the history store, so mostly on the first run). Several at once — the first run starts faster. Capped by run memory: 1 GB — 1, 2 GB — 3, 4 GB — 7.<br><br>Браузер (~320 МБ) открывается, только чтобы получить новую сессию Озона (они хранятся в хранилище истории — значит, в основном при первом запуске). Несколько сразу — первый запуск начинается быстрее. Ограничено памятью запуска: 1 ГБ — 1, 2 ГБ — 3, 4 ГБ — 7.",
            "default": 3
          },
          "history_store": {
            "title": "History store · Хранилище истории",
            "type": "string",
            "description": "Name of the key-value store in your account that keeps price history between runs. Different names — separate histories. Runs with the same store don't overlap: a second one waits up to 10 minutes for the first to finish.<br><br>Имя key-value store в вашем аккаунте, где хранится история цен между запусками. Разные имена — отдельные истории. Запуски с одним хранилищем не пересекаются: второй ждёт до 10 минут, пока закончит первый.",
            "default": "ozon-flights-history"
          },
          "proxy_ru": {
            "title": "Your proxy for ozon.ru · Свои прокси для ozon.ru",
            "type": "string",
            "description": "user:pass@host:port, residential, Russia — one per line: every Ozon session gets its own (one line — all sessions share it). Empty — the actor's built-in proxies of this country (included in the price).<br><br>user:pass@host:port, резидентные, Россия — по одному в строке: каждой сессии Озона — свой (одна строка — общий на все сессии). Пусто — встроенные прокси актора этой страны (входят в цену)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}