# Ozon Product Scraper (`ethereal_wool/ozon-product-scraper`) Actor

Scrape Ozon.ru product listings by keyword or search/category URL — title, price, discount, rating, reviews, SKU, image and product URL — as structured JSON. No login.

- **URL**: https://apify.com/ethereal\_wool/ozon-product-scraper.md
- **Developed by:** [Jackie Chen](https://apify.com/ethereal_wool) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Ozon Product Scraper

Scrape product listings from **[Ozon.ru](https://www.ozon.ru)** — Russia's largest
marketplace — by keyword or by search / category URL. Returns clean, structured
JSON: title, current price, old price, discount, rating, review count, SKU,
product URL and image. **No login, no cookies.**

Ozon protects its site with an aggressive anti-bot layer (Qrator-style JS
challenge) that blocks plain HTTP clients and TLS impersonation alike. This
Actor fetches Ozon's internal `composer-api` through a rendering browser with
Russian residential proxies, so you get reliable results without running a
browser yourself.

### What you get

Each result is one product row:

```json
{
  "type": "product",
  "sku": "2912979087",
  "productId": "2912979087",
  "title": "Apple Смартфон iPhone 17 Pro Max 1TB Gray eSim Only 12/1 ТБ, eSIM, серебристый",
  "url": "https://www.ozon.ru/product/apple-smartfon-iphone-17-pro-max-1tb-gray-2912979087/",
  "price": 134313,
  "oldPrice": 177564,
  "discountPercent": 24,
  "currency": "RUB",
  "rating": 4.9,
  "reviewsCount": 243,
  "imageUrl": "https://ir.ozone.ru/s3/multimedia-1-c/8886147528.jpg",
  "stockText": "1 шт осталось",
  "searchQuery": "iphone 17",
  "position": 1
}
```

Prices are in Russian Rubles (RUB), matching what Ozon displays.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQueries` | string\[] | Keywords to search on Ozon (Russian or English), e.g. `iphone 15` or `ноутбук`. Each query is paginated. |
| `startUrls` | string\[] | Optional. Full Ozon search or category URLs, e.g. `https://www.ozon.ru/search/?text=iphone` or `https://www.ozon.ru/category/smartfony-15502/`. |
| `maxItems` | integer | Maximum total products across all queries / URLs. Default `50`. |
| `maxPagesPerQuery` | integer | Safety cap on result batches per query/URL (each batch ≈ 10–12 products). Default `10`. |

Example input:

```json
{
  "searchQueries": ["iphone 17", "наушники sony"],
  "maxItems": 100,
  "maxPagesPerQuery": 15
}
```

### How it works

1. Each query becomes an Ozon search path (`/search/?text=…`); start URLs are used as-is.
2. The Actor calls Ozon's `composer-api.bx` JSON endpoint through Olostep
   (browser rendering + RU residential proxies), which clears the anti-bot
   challenge and returns the page's widget/atom payload.
3. Products are parsed out of the `tileGrid` widget — price, discount, rating
   and reviews are read from each tile's typed atoms.
4. Pagination follows Ozon's own `infiniteVirtualPaginator.nextPage` token from
   batch to batch until `maxItems` or `maxPagesPerQuery` is reached.
5. Results are de-duplicated by SKU.

Occasional anti-bot interstitials or upstream timeouts are retried
automatically with exponential backoff.

### Pricing

This Actor uses **pay per result** — you are charged only for products actually
delivered to your dataset. Failed pages, retries and duplicates are never
charged.

### Notes & limitations

- Prices, titles and review labels are returned in Russian, exactly as Ozon
  serves them.
- Ozon shows roughly 10–12 products per result batch; large runs simply page
  through more batches.
- The `OLOSTEP_API_KEY` secret must be configured (the maintainer sets this on
  the published Actor).

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search on Ozon.ru (Russian or English works), e.g. "iphone 15" or "ноутбук". Each query is paginated up to Max items.

## `startUrls` (type: `array`):

Optional. Paste full Ozon search or category URLs (e.g. https://www.ozon.ru/search/?text=iphone or https://www.ozon.ru/category/smartfony-15502/). Each is scraped directly with pagination.

## `maxItems` (type: `integer`):

Maximum total products to scrape across all queries and URLs.

## `maxPagesPerQuery` (type: `integer`):

Safety cap on result batches fetched per query/URL (each batch ≈ 10-12 products). The run also stops at Max items.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 15"
  ],
  "startUrls": [],
  "maxItems": 50,
  "maxPagesPerQuery": 10
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "iphone 15"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ethereal_wool/ozon-product-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchQueries": ["iphone 15"] }

# Run the Actor and wait for it to finish
run = client.actor("ethereal_wool/ozon-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "iphone 15"
  ]
}' |
apify call ethereal_wool/ozon-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ethereal_wool/ozon-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/gpdqWChUIvxjyfD5X/builds/x2elWrK7YcJp3B332/openapi.json
