{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Market Reviews Scraper · Отзывы Яндекс Маркета",
    "description": "Yandex Market product reviews: score, date, text, pros, cons, author, photos, seller reply, plus a free product summary. Отзывы о товарах Яндекс Маркета: оценка, дата, текст, плюсы, минусы, автор, фото, ответ продавца и бесплатная сводка по товару.",
    "version": "0.1",
    "x-build-id": "FqYsO18ni7xJlOauU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~yandex-market-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-yandex-market-reviews-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~yandex-market-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-theshark-yandex-market-reviews-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~yandex-market-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-yandex-market-reviews-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": "Product links · Ссылки на товары",
            "type": "array",
            "description": "Products whose reviews to collect (market.yandex.ru/card/…). Search and category links work too: reviews of the products they list.<br><br>Товары, чьи отзывы собрать (market.yandex.ru/card/…). Подойдут и ссылки на поиск и разделы: отзывы о товарах из них.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search queries · Поисковые запросы",
            "type": "array",
            "description": "Words to search on Yandex Market, as on the site: «пылесос dreame». Reviews of the products found.<br><br>Что искать на Яндекс Маркете — как на сайте: «пылесос dreame». Собираются отзывы о найденных товарах.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hids": {
            "title": "Categories by id · Разделы по номеру",
            "type": "array",
            "description": "Yandex Market categories by id (hid), as in the site's links (…?hid=91491 — smartphones): reviews of the products listed there.<br><br>Разделы Яндекс Маркета по номеру (hid), как в ссылках сайта (…?hid=91491 — смартфоны): отзывы о товарах раздела.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort search results · Порядок выдачи",
            "enum": [
              "popular",
              "price_asc",
              "price_desc",
              "rating"
            ],
            "type": "string",
            "description": "Which products of a search or category come first. Reviews themselves come in Review order.<br><br>Какие товары поиска или раздела идут первыми. Сами отзывы идут в порядке из поля «Порядок отзывов»."
          },
          "price_from": {
            "title": "Price from, RUB · Цена от, ₽",
            "minimum": 0,
            "type": "integer",
            "description": "Only products from this price. Yandex Market applies the filter loosely.<br><br>Только товары от этой цены. Маркет применяет фильтр нестрого."
          },
          "price_to": {
            "title": "Price to, RUB · Цена до, ₽",
            "minimum": 0,
            "type": "integer",
            "description": "Only products up to this price. Yandex Market applies the filter loosely.<br><br>Только товары до этой цены. Маркет применяет фильтр нестрого."
          },
          "rating_from": {
            "title": "Minimum product rating · Рейтинг товара от",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products whose search card rates at least this high (0–5, for example 4.5). Applies to searches and categories, not to product links.<br><br>Только товары с рейтингом в карточке выдачи не ниже этого (0–5, например 4.5). Действует на поиск и разделы, не на ссылки на товар."
          },
          "max_items": {
            "title": "Maximum products per run · Товаров за запуск, не больше",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many products to take from queries, categories and links, across all of them.<br><br>Сколько товаров взять из запросов, разделов и ссылок — всего, по всем вместе.",
            "default": 100
          },
          "reviews_count": {
            "title": "Reviews per product · Отзывов на товар",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many reviews of each product to collect, in Review order. A charge per review row.<br><br>Сколько отзывов о каждом товаре собрать — в порядке из поля «Порядок отзывов». Оплата — за каждую строку отзыва.",
            "default": 50
          },
          "reviews_sort": {
            "title": "Review order · Порядок отзывов",
            "enum": [
              "relevance",
              "newest",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Empty keeps Yandex Market's own order: most helpful first. Newest first together with Only new reviews reads only up to the first review already delivered — usually one page per product.<br><br>Пусто — порядок самого Маркета: сначала полезные. «Сначала новые» вместе с «Только новые отзывы» читает только до первого уже отданного отзыва — обычно одну страницу на товар."
          },
          "review_replies": {
            "title": "Seller replies · Ответы продавца",
            "type": "boolean",
            "description": "Adds the seller's reply under each review that has one, with its date. One extra small request per review with replies, so the run gets slower. Free.<br><br>Добавляет ответ продавца под каждым отзывом, где он есть, с датой. Ещё один небольшой запрос на отзыв с ответами, поэтому запуск медленнее. Бесплатно.",
            "default": false
          },
          "new_only": {
            "title": "Only new reviews · Только новые отзывы",
            "type": "boolean",
            "description": "Skip reviews this history store has already delivered, and pay only for new ones. With Newest first, reading stops at the first review already delivered.<br><br>Пропускать отзывы, которые это хранилище истории уже отдавало, и платить только за новые. Со «Сначала новые» чтение останавливается на первом уже отданном отзыве.",
            "default": false
          },
          "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.<br><br>Сколько анонимных посетителей работают одновременно, у каждого свой IP.",
            "default": 4
          },
          "proxy": {
            "title": "Your own proxies · Свои прокси",
            "type": "string",
            "description": "Optional. One per line: user:pass@host:port, Russian IPs. Without them the run uses its own Russian proxies.<br><br>Необязательно. По одному в строке: user:pass@host:port, российские IP. Без них запуск идёт через свои российские прокси."
          },
          "history_store": {
            "title": "History store · Хранилище истории",
            "type": "string",
            "description": "Named key-value store that keeps sessions and delivered reviews between runs.<br><br>Именованное key-value хранилище, где между запусками лежат сессии и отданные отзывы.",
            "default": "yandex-reviews-history"
          },
          "output_language": {
            "title": "Language of the log and status · Язык лога и статуса",
            "enum": [
              "en",
              "ru"
            ],
            "type": "string",
            "description": "Reviews and other Yandex Market data stay as the site gives them.<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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}