{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Market Scraper · Парсер Яндекс Маркета",
    "description": "Yandex Market products from search, categories and links: price with and without the card, stock, seller, brand, rating, delivery, specs. Товары Яндекс Маркета из поиска, разделов и ссылок: цена с картой и без, остаток, продавец, бренд, рейтинг, доставка, характеристики.",
    "version": "0.2",
    "x-build-id": "DHFB0d4AabbIvtF2t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~yandex-market-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-yandex-market-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-scraper/runs": {
      "post": {
        "operationId": "runs-sync-theshark-yandex-market-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-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-yandex-market-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": {
          "queries": {
            "title": "Search queries · Поисковые запросы",
            "type": "array",
            "description": "What to search for on Yandex Market, as you would type it on the site: «iphone 16», «пылесос». One query gives up to about 480 products: that is how far Yandex Market pages a search. For more, add more queries, categories or price ranges.<br><br>Что искать на Яндекс Маркете — как в строке поиска сайта: «iphone 16», «пылесос». Один запрос даёт до ~480 товаров: дальше Маркет поиск не листает. Нужно больше — добавьте запросы, разделы или диапазоны цен.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Links · Ссылки",
            "type": "array",
            "description": "Yandex Market links: a search page with the filters you set on the site, a category (market.yandex.ru/category/…) or a product (market.yandex.ru/card/…).<br><br>Ссылки на Яндекс Маркет: страница поиска с фильтрами, выставленными на сайте, раздел (market.yandex.ru/category/…) или товар (market.yandex.ru/card/…).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hids": {
            "title": "Categories by id · Разделы по номеру",
            "type": "array",
            "description": "Yandex Market categories by id (hid): 91491 — smartphones. The id is in the category_id column of any run and in the site's links (…?hid=91491).<br><br>Разделы Яндекс Маркета по номеру (hid): 91491 — смартфоны. Номер есть в колонке category_id любого запуска и в ссылках сайта (…?hid=91491).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort search results · Порядок выдачи",
            "enum": [
              "popular",
              "price_asc",
              "price_desc",
              "rating"
            ],
            "type": "string",
            "description": "Order of the products in search and categories. Empty keeps the order of the link, or Yandex Market's own.<br><br>Порядок товаров в поиске и разделах. Пусто — как в ссылке или как у самого Маркета."
          },
          "price_from": {
            "title": "Price from, RUB · Цена от, ₽",
            "minimum": 0,
            "type": "integer",
            "description": "Only products from this price. Yandex Market applies the filter loosely: a few products can fall slightly outside it.<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: a few products can fall slightly outside it.<br><br>Только товары до этой цены. Маркет применяет фильтр нестрого: пара товаров может немного выйти за границу."
          },
          "rating_from": {
            "title": "Minimum rating · Рейтинг от",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products whose search card rates at least this high (0–5, for example 4.5). The rest are skipped and not charged. 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": "The run stops collecting at this number, across all queries, categories and links.<br><br>На этом числе запуск останавливается — по всем запросам, разделам и ссылкам вместе.",
            "default": 100
          },
          "product_pages": {
            "title": "Open product pages · Открывать страницы товаров",
            "type": "boolean",
            "description": "On: the full product — brand, seller, category path, description, all photos and characteristics; charged as a product. Off: only what the search card shows, charged as a search result, several times cheaper. Product links always open their page.<br><br>Включено: товар целиком — бренд, продавец, путь по разделам, описание, все фото и характеристики; оплачивается как товар. Выключено: только то, что есть в карточке выдачи, оплачивается как карточка, в несколько раз дешевле. Ссылки на товар всегда открывают его страницу.",
            "default": true
          },
          "shop_details": {
            "title": "Seller details · Данные продавца",
            "type": "boolean",
            "description": "Adds the seller profile: rating, ratings, orders, subscribers, time on Yandex Market and legal details — legal form, company name or the individual entrepreneur's full name, INN and OGRN. Needs Open product pages. One extra page per seller, so the run gets slower; no extra charge.<br><br>Добавляет профиль продавца: рейтинг, оценки, заказы, подписчики, сколько он на Маркете, и юрданные — форма, название компании или ФИО ИП, ИНН и ОГРН. Нужны страницы товаров. Ещё одна страница на продавца, поэтому запуск медленнее; без доплаты.",
            "default": false
          },
          "offers_per_product": {
            "title": "Offers from other sellers · Предложения других продавцов",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "For each product, up to this many offers of the same product from different sellers, as its «All offers» page lists them: seller, price with and without the card, stock and delivery. 0 — off. Each offer is charged separately.<br><br>У каждого товара — до стольких предложений того же товара от разных продавцов, как на его странице «Все предложения»: продавец, цена с картой и без, остаток и доставка. 0 — выключено. Каждое предложение оплачивается отдельно.",
            "default": 0
          },
          "new_only": {
            "title": "Only new products · Только новые товары",
            "type": "boolean",
            "description": "Skip products this history store has already delivered, and pay only for new ones. Handy for scheduled runs.<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. Yandex Market shows stock and delivery for the city of the proxy's IP.<br><br>Необязательно. По одному в строке: user:pass@host:port, российские IP. Без них запуск идёт через свои российские прокси. Остатки и доставку Маркет показывает для города IP прокси."
          },
          "history_store": {
            "title": "History store · Хранилище истории",
            "type": "string",
            "description": "Named key-value store that keeps sessions and delivered products between runs.<br><br>Именованное key-value хранилище, где между запусками лежат сессии и отданные товары.",
            "default": "yandex-history"
          },
          "output_language": {
            "title": "Language of the log and status · Язык лога и статуса",
            "enum": [
              "en",
              "ru"
            ],
            "type": "string",
            "description": "Yandex Market's own data (names, characteristics) 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}