DEV Community

Cover image for How to Scrape Rozetka Product Listings in Python with Rozetka Scraper
ReventaData
ReventaData

Posted on Originally published at apify.com

How to Scrape Rozetka Product Listings in Python with Rozetka Scraper

By the end of this tutorial you will have a Python script that pulls product listings from Rozetka, the Ukrainian online marketplace, into structured rows. Each row carries the price in UAH and in USD, the old price and discount when the site shows them, the brand, the seller, the rating, the review count and the stock status.

Rozetka Scraper (reventadata/rozetka-scraper) is the Apify Actor built for this site. You paste one or more category addresses, and it returns one row per product. It reads the public category pages directly, so it needs no browser and no login.

The sample row in this guide is one product from a run that the Actor's README records on 2026-11-07. The values are copied from that record.


Prerequisites

You need three things:

  1. Python 3.11 or newer with pip.
  2. A free Apify account. You can sign up with an email address or a GitHub login.
  3. Your API token, which you find in the Apify Console under the integrations settings.

Install the Apify client. The code in this guide uses the 3.x line:

pip install -U "apify-client~=3.0"
Enter fullscreen mode Exit fullscreen mode

Keep the token out of the script. Export it in your terminal so the code can read it from the environment.


What you'll achieve

At the end of the run you have a list of Rozetka products, one row each, that you can sort by price, compare across brands or export to a spreadsheet. A typical use is a weekly price list for one category, with the old price column showing which products are on sale.

Example: read the first 10 products of one phone category slice, and print the title, the price in UAH and in USD, and the seller for each. The same script works for any category address you paste into the input.


Step-by-step guide

Step 1: Open the Actor

Go to the Rozetka Scraper page on Apify Store. The input form has four fields:

  • categoryUrls: one or more category addresses, in the form https://rozetka.com.ua/ua/<name>/c<number>/. You can add one filter segment copied from the site. Search pages and query strings are refused.
  • maxItems: the cap on products across all categories. The default is 1000.
  • maxPagesPerCategory: the cap on pages per category, with 60 products on each page. The default and maximum are 100.
  • includeProductDetails: adds the brand name, the seller name, the rating, the stock status and all the photos. It is on by default.

Step 2: Choose the category

For a first test, keep the run small. The script below reads one filtered slice of the mobile phones category, returns ten products and reads one page:

import os
from apify_client import ApifyClient

# 1. Initialise the client with your token from the environment
client = ApifyClient(os.environ["APIFY_API_TOKEN"])

# 2. Describe the run: one phone category slice, ten products, one page
run_input = {
    "categoryUrls": ["https://rozetka.com.ua/ua/mobile-phones/c80003/price=1000-5000/"],
    "maxItems": 10,
    "maxPagesPerCategory": 1,
    "includeProductDetails": True,
}

# 3. Start the Actor and wait for it to finish
run = client.actor("reventadata/rozetka-scraper").call(run_input=run_input)
if run is None or run.status != "SUCCEEDED":
    status = run.status if run else "unknown"
    raise SystemExit(f"Run did not succeed (status: {status}).")

# 4. Read the rows from the run's default dataset
items = client.dataset(run.default_dataset_id).list_items().items
print(f"Retrieved {len(items)} products.\n")

# 5. Print one line per product: title, price in UAH and USD, then seller
for item in items:
    print(f"{item.get('title')} | {item.get('price')} {item.get('currency')} | {item.get('priceUsd')} USD")
    print(f"  seller: {item.get('seller')}, rating: {item.get('rating')}, availability: {item.get('availability')}")
Enter fullscreen mode Exit fullscreen mode

Step 3: Run it from Python

Export your token in the terminal and run the script:

export APIFY_API_TOKEN="your-token-here"
python3 rozetka_search.py
Enter fullscreen mode Exit fullscreen mode

The script starts the Actor, waits for the run to end, and prints two lines per product. If the status is not SUCCEEDED, the script stops and prints the status.

Step 4: Read one row

Each dataset item is a JSON object. The sample is one product from the 2026-11-07 run. Photos are shortened, and the specification text is cut to its first words.

{
    "id": "620419886",
    "url": "https://rozetka.com.ua/ua/apple-iphone-18-pro-max-256gb-burgundy/p620419886/",
    "title": "Мобільний телефон Apple iPhone 18 Pro Max 256GB Burgundy (MJXQ4AF/A)",
    "price": 84999,
    "oldPrice": null,
    "discountPercent": 0,
    "currency": "UAH",
    "priceUsd": 1888.87,
    "oldPriceUsd": null,
    "condition": "new",
    "brand": "Apple",
    "brandId": 69,
    "seller": "Rozetka",
    "sellerId": 5,
    "rating": 4.9,
    "reviewsCount": 56,
    "availability": "available",
    "availabilityText": null,
    "label": "ТОП ПРОДАЖІВ",
    "imageUrl": "https://content2.rozetka.com.ua/goods/images/original/684034536.jpg",
    "categoryId": 80003,
    "categoryName": "Мобільні телефони",
    "categoryUrl": "https://rozetka.com.ua/ua/mobile-phones/c80003/",
    "inputUrl": "https://rozetka.com.ua/ua/mobile-phones/c80003/"
}
Enter fullscreen mode Exit fullscreen mode

The full row also has the images list and a description line. Those are left out of the sample.


Understanding your results

  • id and url: the product number and its public page. Use the id as the key in your own store.
  • title, brand and brandId: the product name and its brand. The brand name arrives with details on.
  • price and currency: the price in the site's currency. In the sample, the price is 84999 UAH.
  • priceUsd: the price in USD, given as a number, so it sorts like one.
  • oldPrice and discountPercent: the earlier price and the discount. oldPrice is null when there is no discount, and discountPercent is then 0.
  • seller and sellerId: the seller that sells the product. The seller name arrives with details on.
  • rating and reviewsCount: the site's rating and the number of reviews. A rating of null means the site shows no mark.
  • availability: the site's own stock status, such as available, limited or unavailable.
  • condition, label and imageUrl: the product condition, the site's badge text and the main photo.
  • categoryId, categoryName and categoryUrl: the category the product was read from. inputUrl is the category address you pasted.

A field with no value comes back as null, not as a missing key.


Pro tips and advanced usage

  • Split large categories with filters. A category is read up to 100 pages, which is 6,000 products. Copy a filter segment from the site, such as price=1000-5000, to split a larger category into slices that each fit under the limit.
  • Keep details on for comparisons. Brand, seller and rating come with details. Turn details off only when you want listing fields alone.
  • Use oldPrice to find discounts. Filter rows where oldPrice is not null, then sort by discountPercent.
  • Compare in one currency. Sort by priceUsd when you want dollar figures; price is in UAH.
  • Run several categories together. Each product is returned once, even when two categories list it.

Troubleshooting common issues

  • The run ends as FAILED. A category address that does not exist ends the run with a reason. Check the address against the site and try again.
  • The run succeeds with zero rows. A category with no products ends with a status message and no rows.
  • Fewer rows than the site's count. The site serves at most 100 pages per category address, and a product listed twice in one run is returned once.
  • A search address is refused. Search pages and query strings are not accepted. Open the category on the site, then copy its address.

For questions about a run, read its log in the Apify Console.


Next steps

Paste more category addresses to build a wider list, or change maxItems to read deeper. To repeat a run on a schedule, save the input as an Apify task and attach a schedule to it. Read each new dataset from Python in the same way, and check each run's status before you trust its count.

For current pricing and details, see the Store page.

What would you track first? Share it in the comments.

Top comments (0)