{
  "openapi": "3.0.1",
  "info": {
    "title": "Wildberries Price Monitor · Мониторинг цен Wildberries",
    "description": "Live Wildberries prices and stock for your article numbers, and what changed since your last run: up, down, sold out, back in stock. Цены и наличие Wildberries по вашим артикулам и что изменилось с прошлого запуска: подорожало, подешевело, кончилось, вернулось.",
    "version": "0.1",
    "x-build-id": "mYFb2ZARAQnntpkfI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~wildberries-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-wildberries-price-monitor",
        "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~wildberries-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-theshark-wildberries-price-monitor",
        "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~wildberries-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-wildberries-price-monitor",
        "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": {
          "articles": {
            "title": "Article numbers · Артикулы",
            "type": "array",
            "description": "Wildberries article numbers (nmId) to watch. Every number gets its own row with a status, so an empty result never looks like a failure.<br><br>Артикулы Wildberries (nmId) для наблюдения. У каждого — своя строка со статусом, поэтому пустой результат не выглядит как сбой.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Product links · Ссылки на товары",
            "type": "array",
            "description": "Links to a product on wildberries.ru. Search, category and seller pages are not collected.<br><br>Ссылки на товар на wildberries.ru. Страницы поиска, категорий и продавцов не собираются.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "max_items": {
            "title": "Maximum article numbers per run · Максимум артикулов за запуск",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The run checks no more than this number.<br><br>Больше этого числа запуск не проверяет.",
            "default": 1000
          },
          "region": {
            "title": "Delivery region · Регион доставки",
            "enum": [
              "moscow",
              "saint_petersburg",
              "novosibirsk",
              "vladivostok"
            ],
            "type": "string",
            "description": "Availability, and sometimes the price, depends on the delivery region. Every region has its own history.<br><br>От региона доставки зависит наличие, а иногда и цена. У каждого региона своя история.",
            "default": "moscow"
          },
          "dest": {
            "title": "Own region code · Свой код региона",
            "type": "integer",
            "description": "Optional. The site's dest code for another delivery zone; replaces the region above.<br><br>Необязательно. Код dest сайта для другой зоны доставки; заменяет регион выше."
          },
          "history_store": {
            "title": "History store · Хранилище истории",
            "type": "string",
            "description": "Named key-value store in your account with the prices of earlier runs: per article number only the price, availability, date and the last 20 changes (tracked_history). Change it to keep separate histories.<br><br>Именованное хранилище в вашем аккаунте с ценами прошлых запусков: у артикула только цена, наличие, дата и последние 20 изменений (tracked_history). Смените имя, чтобы вести отдельные истории.",
            "default": "wildberries-price-history"
          },
          "with_price_history": {
            "title": "Add price history · Добавить историю цен",
            "type": "boolean",
            "description": "Adds the site's own price history file to every row: up to about 12 weekly points. The site updates this file rarely, so the current price is always in the price field. One more request per article number.<br><br>Добавляет в каждую строку историю цен из файла сайта: примерно до 12 точек по неделям. Сайт обновляет этот файл редко, поэтому текущая цена — всегда в поле price. Ещё один запрос на артикул.",
            "default": false
          },
          "only_changes": {
            "title": "Only changes · Только изменения",
            "type": "boolean",
            "description": "Puts into the dataset only the products whose price or stock changed since the last run, plus new ones and errors. Unchanged products are still checked and charged as a check; their count is in the run summary and status.<br><br>Кладёт в датасет только товары, у которых с прошлого запуска изменилась цена или наличие, а ещё новые и ошибки. Остальные всё равно проверяются и оплачиваются как проверка; их число — в итоге и статусе запуска.",
            "default": false
          },
          "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. Без них запуск идёт через свои российские прокси."
          },
          "output_language": {
            "title": "Language of the log and status · Язык лога и статуса",
            "enum": [
              "en",
              "ru"
            ],
            "type": "string",
            "description": "Wildberries's own data stays as the site gives it.<br><br>Данные Wildberries остаются такими, как их отдаёт сайт.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}