{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Market Product Scraper (Парсер Яндекс Маркета)",
    "description": "Парсер Яндекс Маркета: цены, рейтинги, отзывы, характеристики, продавцы, фото. Поиск по запросу или ссылке, фильтры по цене, категории, региону. Экспорт JSON, CSV, Excel. Оплата за результат.",
    "version": "1.0",
    "x-build-id": "6uOxpjeIOSQNObkQ2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~yandex-market-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-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/parsebird~yandex-market-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-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/parsebird~yandex-market-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-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",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Search query or Yandex Market link",
            "type": "string",
            "description": "A search term in Russian or English (e.g. \"ноутбук\", \"iPhone 16\"), or a Yandex Market link. Search links, product links and shortened share links (market.yandex.ru/cc/…, ya.cc/…) all work — keyword, category, sort and price range are auto-extracted from search links; a product link scrapes just that product."
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of products to scrape. Leave empty for all available offers for the query (Yandex Market itself stops around 2,700)."
          },
          "enrichProducts": {
            "title": "Visit each product page (enrichment)",
            "type": "boolean",
            "description": "Open every product page for full specifications, description, seller profile, all images, promotions and delivery options. Turn off for a 10–20x faster search-only run (price, title, SKU, rating, delivery).",
            "default": false
          },
          "includeReviews": {
            "title": "Include product reviews",
            "type": "boolean",
            "description": "Fetch review texts (pros, cons, comment, author, rating, helpful votes, photos) for each product — the recent / most helpful reviews Yandex Market renders, up to the cap below. Charged separately per review.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on reviews fetched per product when \"Include product reviews\" is on. Set 0 for all reviews (hard limit 3,000).",
            "default": 20
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "dpop",
              "aprice",
              "dprice",
              "rating"
            ],
            "type": "string",
            "description": "Yandex Market's price sorting is approximate — results are roughly, not strictly, ordered by price.",
            "default": "dpop"
          },
          "priceFrom": {
            "title": "Minimum price (₽)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or above this amount, in rubles."
          },
          "priceTo": {
            "title": "Maximum price (₽)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or below this amount, in rubles."
          },
          "categoryId": {
            "title": "Category ID (hid)",
            "type": "string",
            "description": "Restrict the search to one Yandex Market category. Use the category's `hid` number (visible in a category URL as `hid=…`), e.g. 91013 for laptops, 91491 for mobile phones, 90555 for headphones."
          },
          "region": {
            "title": "Region",
            "enum": [
              "213",
              "2",
              "54",
              "43",
              "65",
              "47",
              "51",
              "39",
              "35",
              "56",
              "172",
              "50",
              "193",
              "38",
              "62",
              "66"
            ],
            "type": "string",
            "description": "One of 16 major Russian cities. Region affects which products appear, prices, delivery estimates and seller availability. Set via cookies, so it works regardless of proxy location.",
            "default": "213"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Used for the fast HTTP tier. The default (Apify Proxy, automatic group) is the cheapest option. If Yandex challenges the HTTP requests, the actor automatically falls back to a residential browser for the rest of the run (see below).",
            "default": {
              "useApifyProxy": true
            }
          },
          "enableBrowserFallback": {
            "title": "Residential browser fallback",
            "type": "boolean",
            "description": "If Yandex Market blocks the cheap HTTP requests, spin up a real browser on a Russian residential proxy and continue. Turn this off to keep costs strictly minimal — the run will simply stop early if HTTP gets blocked.",
            "default": true
          },
          "proxyUrl": {
            "title": "Custom proxy URL (optional)",
            "type": "string",
            "description": "Override the proxy with a single custom proxy URL (http://user:pass@host:port), used for every request. Disables the automatic residential fallback."
          },
          "debug": {
            "title": "Save debug HTML",
            "type": "boolean",
            "description": "Store the first search / product / reviews HTML pages in the key-value store for troubleshooting.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}