{
  "openapi": "3.0.1",
  "info": {
    "title": "Avito Auto Scraper · Парсер авто Авито",
    "description": "Avito.ru cars, new and used: brand, model, year, mileage, engine, gearbox, owners, VIN and Avito's market price as columns, with the seller. Автомобили Авито, новые и с пробегом: марка, модель, год, пробег, двигатель, коробка, владельцы, VIN, оценка Авито — колонками, с продавцом.",
    "version": "0.1",
    "x-build-id": "yU6SAovjfH6gkSMtT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~avito-auto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-avito-auto-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~avito-auto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-theshark-avito-auto-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~avito-auto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-avito-auto-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": {
          "urls": {
            "title": "Avito links · Ссылки Авито",
            "type": "array",
            "description": "Car search links from Avito with your filters: used or new, brand, model, year, price, in a city. Single listing links work too. Set links, queries, or both.<br><br>Ссылки на поиск автомобилей Авито с вашими фильтрами: с пробегом или новые, марка, модель, год, цена, в городе. Ссылки на отдельные объявления тоже подходят. Нужны ссылки, запросы или и то и другое.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search queries · Поисковые запросы",
            "type": "array",
            "description": "Text searches in Russian, as you would type them on Avito. They run in the city below. A link with your filters is more precise.<br><br>Текстовый поиск по-русски, как на Авито. Ищет в городе ниже. Ссылка с фильтрами точнее.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City for search queries · Город для запросов",
            "type": "string",
            "description": "The city as it appears in Avito links: moskva, kazan, sankt-peterburg. rossiya searches the whole country.<br><br>Город, как в ссылках Авито: moskva, kazan, sankt-peterburg. rossiya — вся страна.",
            "default": "rossiya"
          },
          "max_items": {
            "title": "Listings limit · Сколько объявлений",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most listings one run returns. It is shared evenly between your links and queries. Above 1500 from one search, it is taken newest first: in its default order Avito shows no more than 30 pages.<br><br>Больше этого запуск не отдаст. Делится поровну между ссылками и запросами. Больше 1500 с одной выдачи берутся по дате: в обычном порядке Авито показывает не больше 30 страниц.",
            "default": 100
          },
          "open_items": {
            "title": "Open listing pages · Открывать объявления",
            "type": "boolean",
            "description": "On: every attribute from each listing page: generation, colour, owners, title document, trim, VIN as Avito shows it, Avito's market price, full text, views and the seller. Off: cards only, faster and cheaper: brand, model, year, mileage, engine, gearbox, body, drive and fuel come from the card.<br><br>Включено: все характеристики со страницы каждого объявления — поколение, цвет, владельцы, ПТС, комплектация, VIN как показывает Авито, оценка Авито, полный текст, просмотры и продавец. Выключено: только карточки выдачи, быстрее и дешевле: марка, модель, год, пробег, двигатель, коробка, кузов, привод и топливо — из карточки.",
            "default": true
          },
          "new_only": {
            "title": "Only new listings · Только новые",
            "type": "boolean",
            "description": "Skip listings returned by your previous runs (they are remembered in the history store). The search goes newest first and stops where your previous runs' listings begin.<br><br>Пропускать объявления, которые отдали прошлые запуски (они запоминаются в хранилище истории). Выдача идёт по дате и останавливается там, где начинаются объявления прошлых запусков.",
            "default": false
          },
          "track_prices": {
            "title": "Track prices · Следить за ценами",
            "type": "boolean",
            "description": "Compare each listing's price with your previous runs: price_status (new, same, cheaper, pricier), previous_price, price_change and price_history. Run it on a schedule with the same links. Not together with Only new listings.<br><br>Сравнивать цену каждого объявления с прошлыми запусками: price_status (new, same, cheaper, pricier), previous_price, price_change и price_history. Запускайте по расписанию с теми же ссылками. Не вместе с «Только новые».",
            "default": false
          },
          "telegram_bot_token": {
            "title": "Telegram bot token · Токен бота Telegram",
            "type": "string",
            "description": "Optional, with Only new listings or Track prices: a message for each new or cheaper listing goes to your chat. Create a bot with BotFather in Telegram and paste its token here.<br><br>Необязательно, вместе с «Только новые» или «Следить за ценами»: сообщение о каждом новом или подешевевшем объявлении придёт в ваш чат. Создайте бота у BotFather в Telegram и вставьте сюда его токен."
          },
          "telegram_chat_id": {
            "title": "Telegram chat ID · ID чата Telegram",
            "type": "string",
            "description": "Where the bot writes: your chat with the bot, a group or a channel. A number such as 123456789 or -1001234567890, or @channelname. Send the bot a message first: bots cannot start a chat.<br><br>Куда пишет бот: ваш чат с ботом, группа или канал. Число вроде 123456789 или -1001234567890, или @channelname. Сначала напишите боту сами: бот не может начать чат первым."
          },
          "sessions": {
            "title": "Sessions at once · Сессий одновременно",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many anonymous visitors work at the same time, each with its own IP. More sessions need more browsers: about 2 sessions per browser.<br><br>Сколько анонимных посетителей работают одновременно, у каждого свой IP. Больше сессий — больше браузеров: примерно 2 сессии на браузер.",
            "default": 4
          },
          "browsers": {
            "title": "Browsers at once · Браузеров одновременно",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Browser tabs that get new sessions at the same time. Each needs 256 MB of memory: 1 GB of run memory fits 2.<br><br>Вкладки браузера, которые одновременно добывают новые сессии. Каждой нужно 256 МБ памяти: в 1 ГБ запуска помещаются 2.",
            "default": 2
          },
          "proxy": {
            "title": "Your own proxies · Свои прокси",
            "type": "string",
            "description": "Optional. One per line: user:pass@host:port. Without them the run uses its own Russian proxies.<br><br>Необязательно. По одному в строке: user:pass@host:port. Без них запуск идёт через свои российские прокси."
          },
          "history_store": {
            "title": "History store · Хранилище истории",
            "type": "string",
            "description": "Named key-value store that keeps sessions, the listings you already got and the prices between runs. Runs with one store wait for each other.<br><br>Именованное хранилище: в нём между запусками лежат сессии, уже отданные объявления и цены. Запуски с одним хранилищем ждут друг друга.",
            "default": "avito-auto-history"
          },
          "output_language": {
            "title": "Language of the log and status · Язык лога и статуса",
            "enum": [
              "en",
              "ru"
            ],
            "type": "string",
            "description": "Avito's own data stays as the site gives it.<br><br>Данные Авито остаются как на сайте.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}