{
  "data": {
    "id": "LveIS3NxoF8d1SZ7B",
    "actId": "qsoPdoL686XBTML38",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-29T08:52:31.085Z",
    "finishedAt": "2026-11-29T08:53:14.161Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"Petrovich Building Materials Scraper Input\",\n  \"description\": \"Search Petrovich (petrovich.ru), browse a category, fetch product details, collect reviews, or inspect a category's filters.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to collect. Search products, browse a category, fetch specific product pages, collect product reviews, or inspect a category (filters, subcategories, sort options).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"byCategory\",\n        \"productDetails\",\n        \"reviews\",\n        \"categoryInfo\"\n      ],\n      \"enumTitles\": [\n        \"Search products\",\n        \"Browse a category\",\n        \"Fetch product detail pages\",\n        \"Collect product reviews\",\n        \"Inspect a category (filters and subcategories)\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query (mode=search)\",\n      \"type\": \"string\",\n      \"description\": \"Free-text query, e.g. `кабель`, `цемент`, `дрель`. Search results are always in Petrovich's default relevance order; `sortBy` has no effect in this mode.\",\n      \"editor\": \"textfield\",\n      \"prefill\": \"кабель\"\n    },\n    \"categoryUrls\": {\n      \"title\": \"Category URLs or codes (mode=byCategory, categoryInfo)\",\n      \"type\": \"array\",\n      \"description\": \"Petrovich catalog URLs, paths, or bare category codes, e.g. `https://petrovich.ru/catalog/100131139/` or `100131139`.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"productUrls\": {\n      \"title\": \"Product URLs or IDs (mode=productDetails, reviews)\",\n      \"type\": \"array\",\n      \"description\": \"Petrovich product URLs, paths, or bare numeric product IDs, e.g. `https://petrovich.ru/product/1181179/` or `1181179`.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"city\": {\n      \"title\": \"City / region\",\n      \"type\": \"string\",\n      \"description\": \"Petrovich shows city-specific prices and stock. Choose the city whose data you want.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"spb\",\n        \"msk\",\n        \"ekb\"\n      ],\n      \"enumTitles\": [\n        \"Санкт-Петербург\",\n        \"Москва\",\n        \"Екатеринбург\"\n      ],\n      \"default\": \"spb\",\n      \"prefill\": \"spb\"\n    },\n    \"sortBy\": {\n      \"title\": \"Sort order\",\n      \"type\": \"string\",\n      \"description\": \"Sort order for category listings. `new` means only new arrivals (the site has no newest-first sort). Search results are always in the site's default relevance order.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"popular\",\n        \"price_asc\",\n        \"price_desc\",\n        \"rating\",\n        \"reviews\",\n        \"new\"\n      ],\n      \"enumTitles\": [\n        \"Popularity (default)\",\n        \"Price: low to high\",\n        \"Price: high to low\",\n        \"Rating: high to low\",\n        \"Most reviewed\",\n        \"New arrivals only\"\n      ],\n      \"default\": \"popular\",\n      \"prefill\": \"popular\"\n    },\n    \"brand\": {\n      \"title\": \"Brand (mode=byCategory only)\",\n      \"type\": \"string\",\n      \"description\": \"Optional brand filter. Accepts a Petrovich brand slug (`makita`, `pdidtd`, `kitfort`) or the brand title shown in the category filters (`Makita`). Ignored in other modes.\",\n      \"editor\": \"textfield\"\n    },\n    \"onSale\": {\n      \"title\": \"Only discounted products\",\n      \"type\": \"boolean\",\n      \"description\": \"Apply Petrovich's `Распродажа` (sale) filter in category listings.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"onlyNew\": {\n      \"title\": \"Only new arrivals\",\n      \"type\": \"boolean\",\n      \"description\": \"Apply Petrovich's `Новинки` (new arrivals) filter in category listings.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"onlyPromo\": {\n      \"title\": \"Only promotional products\",\n      \"type\": \"boolean\",\n      \"description\": \"Apply Petrovich's `Акции` (promotions) filter in category listings.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"inStockOnly\": {\n      \"title\": \"Only in-stock products\",\n      \"type\": \"boolean\",\n      \"description\": \"Keep only products the site marks as currently available in the selected city. Applied after fetching, so the actor may read extra pages.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"deliveryType\": {\n      \"title\": \"Delivery / pickup availability\",\n      \"type\": \"string\",\n      \"description\": \"Server-side availability filter for category listings.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"today\",\n        \"tomorrow\",\n        \"five_days\",\n        \"whenever\"\n      ],\n      \"enumTitles\": [\n        \"Any availability\",\n        \"Available today\",\n        \"Available tomorrow\",\n        \"Available within five days\",\n        \"Available for order\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\"\n    },\n    \"minRating\": {\n      \"title\": \"Minimum rating\",\n      \"type\": \"string\",\n      \"description\": \"Server-side rating filter for category listings.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"4\",\n        \"3\"\n      ],\n      \"enumTitles\": [\n        \"Any rating\",\n        \"4 stars and up\",\n        \"3 stars and up\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\"\n    },\n    \"minPrice\": {\n      \"title\": \"Minimum price (mode=byCategory only)\",\n      \"type\": \"integer\",\n      \"description\": \"Optional lower price bound in RUB. Petrovich's API has no price-range parameter, so the actor pages through the listing and filters the results itself. Ignored in other modes.\",\n      \"minimum\": 0\n    },\n    \"maxPrice\": {\n      \"title\": \"Maximum price (mode=byCategory only)\",\n      \"type\": \"integer\",\n      \"description\": \"Optional upper price bound in RUB. Applied together with `minPrice` after fetching.\",\n      \"minimum\": 0\n    },\n    \"reviewSort\": {\n      \"title\": \"Review sort (mode=reviews)\",\n      \"type\": \"string\",\n      \"description\": \"Order in which reviews are collected.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"date_desc\",\n        \"date_asc\"\n      ],\n      \"enumTitles\": [\n        \"Newest first\",\n        \"Oldest first\"\n      ],\n      \"default\": \"date_desc\",\n      \"prefill\": \"date_desc\"\n    },\n    \"maxReviewsPerProduct\": {\n      \"title\": \"Max reviews per product (mode=reviews)\",\n      \"type\": \"integer\",\n      \"description\": \"Cap on reviews collected for each product. The overall `maxItems` cap still applies.\",\n      \"minimum\": 1,\n      \"maximum\": 100,\n      \"default\": 20,\n      \"prefill\": 3\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records (products, reviews, or category records, depending on the mode).\",\n      \"minimum\": 1,\n      \"maximum\": 10000,\n      \"default\": 30,\n      \"prefill\": 3\n    },\n    \"proxyConfiguration\": {\n      \"title\": \"Proxy configuration (optional)\",\n      \"type\": \"object\",\n      \"description\": \"Optional custom proxy for the browser fallback. No proxy is needed for normal runs: the actor uses Petrovich's anonymous API and only falls back to a residential browser session if the API path is unavailable.\",\n      \"editor\": \"proxy\",\n      \"prefill\": {\n        \"useApifyProxy\": false\n      },\n      \"default\": {\n        \"useApifyProxy\": false\n      }\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Petrovich Building Materials Scraper\n\nCollect structured product data from **Petrovich** (petrovich.ru), one of Russia's\nlargest building-materials and DIY retailers. Search the catalogue, browse a category,\nfetch full product pages, collect reviews, or inspect a category's filters before you\nscrape it. Records include prices, club and old prices, specifications, dimensions,\nimages, videos, certificates, availability and per-store stock.\n\nThe actor starts an anonymous Petrovich API session automatically. No login, cookie,\nAPI key, or proxy setup is required.\n\n## Modes\n\n| Mode | What it returns |\n|---|---|\n| `search` | Products matching a free-text query (`кабель`, `цемент`, `дрель`, …). |\n| `byCategory` | Products from one or more catalogue categories, with sort and server-side filters. |\n| `productDetails` | Full detail records for specific product URLs or numeric IDs. |\n| `reviews` | Product reviews with rating, author, location, pros/cons, images, comments and recommendations. |\n| `categoryInfo` | Category metadata: product count, breadcrumbs, subcategories, filter values and sort options. |\n\n## Input\n\n| Field | Type | Default | Notes |\n|---|---|---|---|\n| `mode` | select | `search` | `search`, `byCategory`, `productDetails`, `reviews`, `categoryInfo`. |\n| `searchQuery` | text | — | Required for `search`. |\n| `categoryUrls` | list | `[]` | Category URLs, paths, or bare codes. Required for `byCategory` and `categoryInfo`. |\n| `productUrls` | list | `[]` | Product URLs, paths, or numeric IDs. Required for `productDetails` and `reviews`. |\n| `city` | select | `spb` | `spb` (Санкт-Петербург), `msk` (Москва), `ekb` (Екатеринбург). Prices and stock are city-specific. |\n| `sortBy` | select | `popular` | `popular`, `price_asc`, `price_desc`, `rating`, `reviews`, `new` (new arrivals only). |\n| `brand` | text | — | Category mode only. Accepts a brand slug or the brand title from the category filters. |\n| `onSale` | boolean | `false` | Only discounted products. |\n| `onlyNew` | boolean | `false` | Only new arrivals. |\n| `onlyPromo` | boolean | `false` | Only products in a promotion. |\n| `inStockOnly` | boolean | `false` | Keep products currently available in the selected city. |\n| `deliveryType` | select | `any` | `any`, `today`, `tomorrow`, `five_days`, `whenever`. |\n| `minRating` | select | `any` | `any`, `4`, `3`. |\n| `minPrice` / `maxPrice` | integer | — | Category mode only. Applied by the actor after fetching (Petrovich has no price-range API). |\n| `reviewSort` | select | `date_desc` | `date_desc` or `date_asc`. |\n| `maxReviewsPerProduct` | integer | `20` | 1–100. |\n| `maxItems` | integer | `30` | 1–10,000. Global cap on emitted records. |\n| `proxyConfiguration` | object | — | Optional. Normal runs need no proxy; a residential browser session is used only as a fallback. |\n\n## Examples\n\nSearch for cable products in St Petersburg:\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchQuery\": \"кабель\",\n  \"maxItems\": 50\n}\n```\n\nBrowse ceramic tiles, cheapest first, only items in stock:\n\n```json\n{\n  \"mode\": \"byCategory\",\n  \"categoryUrls\": [\"https://petrovich.ru/catalog/10042/\"],\n  \"sortBy\": \"price_asc\",\n  \"inStockOnly\": true,\n  \"maxItems\": 100\n}\n```\n\nFetch specific products in Moscow:\n\n```json\n{\n  \"mode\": \"productDetails\",\n  \"productUrls\": [\"https://petrovich.ru/product/970548/\", \"1181179\"],\n  \"city\": \"msk\"\n}\n```\n\nCollect the newest reviews for a product:\n\n```json\n{\n  \"mode\": \"reviews\",\n  \"productUrls\": [\"970548\"],\n  \"reviewSort\": \"date_desc\",\n  \"maxReviewsPerProduct\": 20,\n  \"maxItems\": 20\n}\n```\n\nInspect a category before browsing it:\n\n```json\n{\n  \"mode\": \"categoryInfo\",\n  \"categoryUrls\": [\"10042\"]\n}\n```\n\n## What is in a product record\n\n- `productUrl`, `sku`, `title`, `description`, `descriptionHtml`, `brand`, `article`.\n- `price`, `currency`, `clubPrice`, `oldPrice`, `discountPercent`, `bonusPoints`.\n- `availability`, `availabilityCode`, `isInStock`, `supplyDays`.\n- `storeAvailability[]` — per-store stock (`storeCode`, `storeName`, `amount`, supply type).\n- `deliveryOptions[]` — pickup/delivery options and dates.\n- `specifications[]` — every characteristic Petrovich publishes (`name`, `value`, optional `unit`).\n- `unit`, `unitFull`, `weightKg`, `dimensions` (`lengthMm`, `widthMm`, `heightMm`), `barcode`.\n- `images[]`, `coverImage`, `videos[]` (preview + MP4/WebM/OGG URLs).\n- `certificates[]` (type, code, registry link, PDF files), `instructions[]`.\n- `promotions[]`, `badges[]`, `promoDetails[]`.\n- `ratingValue`, `reviewCount`, `supplier`, `externalId`, `guid`, `isRent`.\n- `breadcrumbs[]`, `category`, `categoryPath[]`, `categoryPathUrls[]`.\n- `sectionCode`, `sectionTitle`, `sectionUrl`, `city`, `cityCode`, `lastPriceDate`.\n- `recordType` (`product`, `review`, or `category`) and `scrapedAt`.\n\nEmpty fields are omitted — a field appears only when Petrovich actually publishes it\nfor that product. No nulls, placeholders, or invented values are emitted.\n\n## Review records\n\nEach review includes `reviewId`, `productCode`, `productUrl`, `productTitle`, `rating`,\n`authorName`, `locationName`, `body`, `pros`, `cons`, `likes`, `dislikes`, `usefulness`,\n`createdAt`, `isRecommend`, `images`, `videos`, and nested supplier/customer `comments`.\n\n## Category records\n\nEach `categoryInfo` record includes `categoryCode`, `categoryUrl`, `title`,\n`productCount`, `breadcrumbs`, `categoryPath`, `subcategories[]`, `filters[]` (every\nfilter value with its product count) and `sortOptions[]`.\n\n## Data source and reliability\n\nPetrovich protects its storefront with QRATOR, which blocks datacenter IPs. The actor\ndoes not fight that wall: it reads Petrovich's own anonymous JSON API, which is the\nsame API the website uses. The anonymous session is started from a nonce found on a\npublic page served through a Google Translate mirror. Once the session exists, data\nrequests go directly to Petrovich's API — no user cookies, no login, no proxy.\n\nIf the API path is unavailable, `search`, `byCategory`, and `productDetails` fall back\nto a browser session (Camoufox) with a residential proxy, so the actor still returns\ndata. The `reviews` and `categoryInfo` modes need the API and say so clearly if it is\ntemporarily unavailable.\n\n## Limitations\n\n- **Search order:** Petrovich's search page has no sort control; search results are\n  always in the site's default relevance order. Use `byCategory` if you need sorting.\n- **\"Newest\":** the API has no newest-first sort. `sortBy: \"new\"` means only new\n  arrivals (the `Новинки` filter), not a date ordering.\n- **Price range:** Petrovich's API ignores price-range parameters. `minPrice` and\n  `maxPrice` are applied by the actor after paging through a category, so they are\n  available in `byCategory` mode only.\n- **Cities:** the actor exposes the three city codes verified against the API:\n  St Petersburg, Moscow, and Yekaterinburg. Other regions may appear without notice.\n- **Catalogue page size:** the API returns at most 50 products per request; the actor\n  pages through the rest with offsets. A category with tens of thousands of products\n  can take a while at large `maxItems` values.\n- **Search suggestions:** Petrovich's autocomplete service requires a private key, so\n  it is not exposed as a mode.\n\n## FAQ\n\n**Do I need a proxy?**\nNo. The actor starts an anonymous API session and works without a proxy. A residential\nproxy is used only if the browser fallback is needed.\n\n**Can I use bare IDs?**\nYes. `productUrls` accepts numeric product IDs and `categoryUrls` accepts bare category\ncodes, in addition to full URLs.\n\n**Why are some fields missing on some products?**\nPetrovich does not publish every attribute for every product. The actor omits fields the\nsource does not have rather than filling them with empty values.\n\n**Is this affiliated with Petrovich?**\nNo. It is an independent third-party tool that reads publicly visible product data.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "petrovich-building-materials-scraper",
      "title": "Petrovich Building Materials Scraper",
      "description": "Scrape Petrovich building materials by search, category, brand or product URL. Get club and old prices, specs, dimensions, certificates, videos, per-store stock, delivery and reviews.",
      "version": "1.0",
      "buildTag": "latest",
      "defaultMemoryMbytes": 4096,
      "minMemoryMbytes": 4096,
      "defaultRunOptions": {
        "timeoutSecs": 3600,
        "memoryMbytes": 4096
      },
      "dockerfile": "../Dockerfile",
      "readme": "# Petrovich Building Materials Scraper\n\nCollect structured product data from **Petrovich** (petrovich.ru), one of Russia's\nlargest building-materials and DIY retailers. Search the catalogue, browse a category,\nfetch full product pages, collect reviews, or inspect a category's filters before you\nscrape it. Records include prices, club and old prices, specifications, dimensions,\nimages, videos, certificates, availability and per-store stock.\n\nThe actor starts an anonymous Petrovich API session automatically. No login, cookie,\nAPI key, or proxy setup is required.\n\n## Modes\n\n| Mode | What it returns |\n|---|---|\n| `search` | Products matching a free-text query (`кабель`, `цемент`, `дрель`, …). |\n| `byCategory` | Products from one or more catalogue categories, with sort and server-side filters. |\n| `productDetails` | Full detail records for specific product URLs or numeric IDs. |\n| `reviews` | Product reviews with rating, author, location, pros/cons, images, comments and recommendations. |\n| `categoryInfo` | Category metadata: product count, breadcrumbs, subcategories, filter values and sort options. |\n\n## Input\n\n| Field | Type | Default | Notes |\n|---|---|---|---|\n| `mode` | select | `search` | `search`, `byCategory`, `productDetails`, `reviews`, `categoryInfo`. |\n| `searchQuery` | text | — | Required for `search`. |\n| `categoryUrls` | list | `[]` | Category URLs, paths, or bare codes. Required for `byCategory` and `categoryInfo`. |\n| `productUrls` | list | `[]` | Product URLs, paths, or numeric IDs. Required for `productDetails` and `reviews`. |\n| `city` | select | `spb` | `spb` (Санкт-Петербург), `msk` (Москва), `ekb` (Екатеринбург). Prices and stock are city-specific. |\n| `sortBy` | select | `popular` | `popular`, `price_asc`, `price_desc`, `rating`, `reviews`, `new` (new arrivals only). |\n| `brand` | text | — | Category mode only. Accepts a brand slug or the brand title from the category filters. |\n| `onSale` | boolean | `false` | Only discounted products. |\n| `onlyNew` | boolean | `false` | Only new arrivals. |\n| `onlyPromo` | boolean | `false` | Only products in a promotion. |\n| `inStockOnly` | boolean | `false` | Keep products currently available in the selected city. |\n| `deliveryType` | select | `any` | `any`, `today`, `tomorrow`, `five_days`, `whenever`. |\n| `minRating` | select | `any` | `any`, `4`, `3`. |\n| `minPrice` / `maxPrice` | integer | — | Category mode only. Applied by the actor after fetching (Petrovich has no price-range API). |\n| `reviewSort` | select | `date_desc` | `date_desc` or `date_asc`. |\n| `maxReviewsPerProduct` | integer | `20` | 1–100. |\n| `maxItems` | integer | `30` | 1–10,000. Global cap on emitted records. |\n| `proxyConfiguration` | object | — | Optional. Normal runs need no proxy; a residential browser session is used only as a fallback. |\n\n## Examples\n\nSearch for cable products in St Petersburg:\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchQuery\": \"кабель\",\n  \"maxItems\": 50\n}\n```\n\nBrowse ceramic tiles, cheapest first, only items in stock:\n\n```json\n{\n  \"mode\": \"byCategory\",\n  \"categoryUrls\": [\"https://petrovich.ru/catalog/10042/\"],\n  \"sortBy\": \"price_asc\",\n  \"inStockOnly\": true,\n  \"maxItems\": 100\n}\n```\n\nFetch specific products in Moscow:\n\n```json\n{\n  \"mode\": \"productDetails\",\n  \"productUrls\": [\"https://petrovich.ru/product/970548/\", \"1181179\"],\n  \"city\": \"msk\"\n}\n```\n\nCollect the newest reviews for a product:\n\n```json\n{\n  \"mode\": \"reviews\",\n  \"productUrls\": [\"970548\"],\n  \"reviewSort\": \"date_desc\",\n  \"maxReviewsPerProduct\": 20,\n  \"maxItems\": 20\n}\n```\n\nInspect a category before browsing it:\n\n```json\n{\n  \"mode\": \"categoryInfo\",\n  \"categoryUrls\": [\"10042\"]\n}\n```\n\n## What is in a product record\n\n- `productUrl`, `sku`, `title`, `description`, `descriptionHtml`, `brand`, `article`.\n- `price`, `currency`, `clubPrice`, `oldPrice`, `discountPercent`, `bonusPoints`.\n- `availability`, `availabilityCode`, `isInStock`, `supplyDays`.\n- `storeAvailability[]` — per-store stock (`storeCode`, `storeName`, `amount`, supply type).\n- `deliveryOptions[]` — pickup/delivery options and dates.\n- `specifications[]` — every characteristic Petrovich publishes (`name`, `value`, optional `unit`).\n- `unit`, `unitFull`, `weightKg`, `dimensions` (`lengthMm`, `widthMm`, `heightMm`), `barcode`.\n- `images[]`, `coverImage`, `videos[]` (preview + MP4/WebM/OGG URLs).\n- `certificates[]` (type, code, registry link, PDF files), `instructions[]`.\n- `promotions[]`, `badges[]`, `promoDetails[]`.\n- `ratingValue`, `reviewCount`, `supplier`, `externalId`, `guid`, `isRent`.\n- `breadcrumbs[]`, `category`, `categoryPath[]`, `categoryPathUrls[]`.\n- `sectionCode`, `sectionTitle`, `sectionUrl`, `city`, `cityCode`, `lastPriceDate`.\n- `recordType` (`product`, `review`, or `category`) and `scrapedAt`.\n\nEmpty fields are omitted — a field appears only when Petrovich actually publishes it\nfor that product. No nulls, placeholders, or invented values are emitted.\n\n## Review records\n\nEach review includes `reviewId`, `productCode`, `productUrl`, `productTitle`, `rating`,\n`authorName`, `locationName`, `body`, `pros`, `cons`, `likes`, `dislikes`, `usefulness`,\n`createdAt`, `isRecommend`, `images`, `videos`, and nested supplier/customer `comments`.\n\n## Category records\n\nEach `categoryInfo` record includes `categoryCode`, `categoryUrl`, `title`,\n`productCount`, `breadcrumbs`, `categoryPath`, `subcategories[]`, `filters[]` (every\nfilter value with its product count) and `sortOptions[]`.\n\n## Data source and reliability\n\nPetrovich protects its storefront with QRATOR, which blocks datacenter IPs. The actor\ndoes not fight that wall: it reads Petrovich's own anonymous JSON API, which is the\nsame API the website uses. The anonymous session is started from a nonce found on a\npublic page served through a Google Translate mirror. Once the session exists, data\nrequests go directly to Petrovich's API — no user cookies, no login, no proxy.\n\nIf the API path is unavailable, `search`, `byCategory`, and `productDetails` fall back\nto a browser session (Camoufox) with a residential proxy, so the actor still returns\ndata. The `reviews` and `categoryInfo` modes need the API and say so clearly if it is\ntemporarily unavailable.\n\n## Limitations\n\n- **Search order:** Petrovich's search page has no sort control; search results are\n  always in the site's default relevance order. Use `byCategory` if you need sorting.\n- **\"Newest\":** the API has no newest-first sort. `sortBy: \"new\"` means only new\n  arrivals (the `Новинки` filter), not a date ordering.\n- **Price range:** Petrovich's API ignores price-range parameters. `minPrice` and\n  `maxPrice` are applied by the actor after paging through a category, so they are\n  available in `byCategory` mode only.\n- **Cities:** the actor exposes the three city codes verified against the API:\n  St Petersburg, Moscow, and Yekaterinburg. Other regions may appear without notice.\n- **Catalogue page size:** the API returns at most 50 products per request; the actor\n  pages through the rest with offsets. A category with tens of thousands of products\n  can take a while at large `maxItems` values.\n- **Search suggestions:** Petrovich's autocomplete service requires a private key, so\n  it is not exposed as a mode.\n\n## FAQ\n\n**Do I need a proxy?**\nNo. The actor starts an anonymous API session and works without a proxy. A residential\nproxy is used only if the browser fallback is needed.\n\n**Can I use bare IDs?**\nYes. `productUrls` accepts numeric product IDs and `categoryUrls` accepts bare category\ncodes, in addition to full URLs.\n\n**Why are some fields missing on some products?**\nPetrovich does not publish every attribute for every product. The actor omits fields the\nsource does not have rather than filling them with empty values.\n\n**Is this affiliated with Petrovich?**\nNo. It is an independent third-party tool that reads publicly visible product data.\n",
      "input": {
        "title": "Petrovich Building Materials Scraper Input",
        "description": "Search Petrovich (petrovich.ru), browse a category, fetch product details, collect reviews, or inspect a category's filters.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to collect. Search products, browse a category, fetch specific product pages, collect product reviews, or inspect a category (filters, subcategories, sort options).",
            "editor": "select",
            "enum": [
              "search",
              "byCategory",
              "productDetails",
              "reviews",
              "categoryInfo"
            ],
            "enumTitles": [
              "Search products",
              "Browse a category",
              "Fetch product detail pages",
              "Collect product reviews",
              "Inspect a category (filters and subcategories)"
            ],
            "default": "search",
            "prefill": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text query, e.g. `кабель`, `цемент`, `дрель`. Search results are always in Petrovich's default relevance order; `sortBy` has no effect in this mode.",
            "editor": "textfield",
            "prefill": "кабель"
          },
          "categoryUrls": {
            "title": "Category URLs or codes (mode=byCategory, categoryInfo)",
            "type": "array",
            "description": "Petrovich catalog URLs, paths, or bare category codes, e.g. `https://petrovich.ru/catalog/100131139/` or `100131139`.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "productUrls": {
            "title": "Product URLs or IDs (mode=productDetails, reviews)",
            "type": "array",
            "description": "Petrovich product URLs, paths, or bare numeric product IDs, e.g. `https://petrovich.ru/product/1181179/` or `1181179`.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "city": {
            "title": "City / region",
            "type": "string",
            "description": "Petrovich shows city-specific prices and stock. Choose the city whose data you want.",
            "editor": "select",
            "enum": [
              "spb",
              "msk",
              "ekb"
            ],
            "enumTitles": [
              "Санкт-Петербург",
              "Москва",
              "Екатеринбург"
            ],
            "default": "spb",
            "prefill": "spb"
          },
          "sortBy": {
            "title": "Sort order",
            "type": "string",
            "description": "Sort order for category listings. `new` means only new arrivals (the site has no newest-first sort). Search results are always in the site's default relevance order.",
            "editor": "select",
            "enum": [
              "popular",
              "price_asc",
              "price_desc",
              "rating",
              "reviews",
              "new"
            ],
            "enumTitles": [
              "Popularity (default)",
              "Price: low to high",
              "Price: high to low",
              "Rating: high to low",
              "Most reviewed",
              "New arrivals only"
            ],
            "default": "popular",
            "prefill": "popular"
          },
          "brand": {
            "title": "Brand (mode=byCategory only)",
            "type": "string",
            "description": "Optional brand filter. Accepts a Petrovich brand slug (`makita`, `pdidtd`, `kitfort`) or the brand title shown in the category filters (`Makita`). Ignored in other modes.",
            "editor": "textfield"
          },
          "onSale": {
            "title": "Only discounted products",
            "type": "boolean",
            "description": "Apply Petrovich's `Распродажа` (sale) filter in category listings.",
            "default": false,
            "prefill": false
          },
          "onlyNew": {
            "title": "Only new arrivals",
            "type": "boolean",
            "description": "Apply Petrovich's `Новинки` (new arrivals) filter in category listings.",
            "default": false,
            "prefill": false
          },
          "onlyPromo": {
            "title": "Only promotional products",
            "type": "boolean",
            "description": "Apply Petrovich's `Акции` (promotions) filter in category listings.",
            "default": false,
            "prefill": false
          },
          "inStockOnly": {
            "title": "Only in-stock products",
            "type": "boolean",
            "description": "Keep only products the site marks as currently available in the selected city. Applied after fetching, so the actor may read extra pages.",
            "default": false,
            "prefill": false
          },
          "deliveryType": {
            "title": "Delivery / pickup availability",
            "type": "string",
            "description": "Server-side availability filter for category listings.",
            "editor": "select",
            "enum": [
              "any",
              "today",
              "tomorrow",
              "five_days",
              "whenever"
            ],
            "enumTitles": [
              "Any availability",
              "Available today",
              "Available tomorrow",
              "Available within five days",
              "Available for order"
            ],
            "default": "any",
            "prefill": "any"
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Server-side rating filter for category listings.",
            "editor": "select",
            "enum": [
              "any",
              "4",
              "3"
            ],
            "enumTitles": [
              "Any rating",
              "4 stars and up",
              "3 stars and up"
            ],
            "default": "any",
            "prefill": "any"
          },
          "minPrice": {
            "title": "Minimum price (mode=byCategory only)",
            "type": "integer",
            "description": "Optional lower price bound in RUB. Petrovich's API has no price-range parameter, so the actor pages through the listing and filters the results itself. Ignored in other modes.",
            "minimum": 0
          },
          "maxPrice": {
            "title": "Maximum price (mode=byCategory only)",
            "type": "integer",
            "description": "Optional upper price bound in RUB. Applied together with `minPrice` after fetching.",
            "minimum": 0
          },
          "reviewSort": {
            "title": "Review sort (mode=reviews)",
            "type": "string",
            "description": "Order in which reviews are collected.",
            "editor": "select",
            "enum": [
              "date_desc",
              "date_asc"
            ],
            "enumTitles": [
              "Newest first",
              "Oldest first"
            ],
            "default": "date_desc",
            "prefill": "date_desc"
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product (mode=reviews)",
            "type": "integer",
            "description": "Cap on reviews collected for each product. The overall `maxItems` cap still applies.",
            "minimum": 1,
            "maximum": 100,
            "default": 20,
            "prefill": 3
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records (products, reviews, or category records, depending on the mode).",
            "minimum": 1,
            "maximum": 10000,
            "default": 30,
            "prefill": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Optional custom proxy for the browser fallback. No proxy is needed for normal runs: the actor uses Petrovich's anonymous API and only falls back to a residential browser session if the API path is unavailable.",
            "editor": "proxy",
            "prefill": {
              "useApifyProxy": false
            },
            "default": {
              "useApifyProxy": false
            }
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Petrovich Building Materials Scraper Output",
        "description": "Records scraped from Petrovich (petrovich.ru): products (price, club price, old price, specs, dimensions, images, videos, certificates, availability and per-store stock), product reviews, and category metadata with filters.",
        "properties": {
          "products": {
            "type": "string",
            "title": "Petrovich products",
            "description": "Dataset containing product records (recordType = product), plus review records (recordType = review) and category records (recordType = category) when those modes are used.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          },
          "reviews": {
            "type": "string",
            "title": "Petrovich product reviews",
            "description": "Same default dataset, filtered conceptually to records with recordType = review (mode=reviews).",
            "template": "{{links.apiDefaultDatasetUrl}}/items?filter=recordType%3Dreview"
          },
          "categories": {
            "type": "string",
            "title": "Petrovich categories",
            "description": "Same default dataset, filtered conceptually to records with recordType = category (mode=categoryInfo).",
            "template": "{{links.apiDefaultDatasetUrl}}/items?filter=recordType%3Dcategory"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Products",
              "transformation": {
                "fields": [
                  "title",
                  "price",
                  "currency",
                  "brand",
                  "sku",
                  "availability",
                  "productUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}