IKEA sells one sofa in many colours, and each colour can carry its own price. Comparing them means opening every product page and copying the numbers into a sheet. This tutorial replaces that with a short Python script. It searches the IKEA site of one country and returns one row per product, with the name, the price, the colour variants and the ratings as typed fields.
The tool is the IKEA Scraper Actor (reventadata/ikea-scraper). You call it from Python with the official apify-client package. The Actor reads public product pages and needs no login. It is not affiliated with IKEA or Inter IKEA Systems.
By the end you will have a script that runs one search and saves the rows to a JSON file you can filter or load into a spreadsheet.
Prerequisites
To follow this tutorial, you need:
- Python 3.11 or newer.
- The Apify API client for Python. Install or upgrade it with:
pip install -U "apify-client~=3.0"
- An Apify account and your personal API token. Set the token as an environment variable in your terminal:
export APIFY_API_TOKEN="your_apify_token_here"
The Actor itself needs no login. The token is only for the call from your script.
What you'll achieve
Each row is one product. A product that comes in several colours or sizes is one row with a variants list. The fields are grouped below. Together they answer a simple question: what does one product cost in each of its colours, and how well do buyers rate it?
-
Identity:
itemNo,productId,name,typeName,variantLabel,url,imageUrl. -
Price:
price,regularPrice,currency,discountPercent,priceValidFrom,priceValidTo,familyPrice. -
Ratings and availability:
rating,reviewCount,onlineSellable,lastChance,badge. -
Context:
colors,categoryPath,variantCount,variants,matched,country,language,scrapedAt.
Example use case: compare one sofa across its colours, or run the same item numbers for two countries and compare the prices, each in its own currency.
Step 1: Open the Actor
Open the IKEA Scraper page on the Apify Store to read its description. This guide calls the Actor from Python, so the ID you need is reventadata/ikea-scraper.
Step 2: Set the inputs
The Actor takes these inputs. Each one is a field in the run_input dictionary.
| Field | Type | What it does |
|---|---|---|
country |
string | The IKEA site to read, for example us, de or jp. The menu lists 51 sites. Default us. |
language |
string | Language of names and texts. Empty means the country's default. |
searchTerms |
array | One search per term, as typed in the IKEA search box, for example sofa. |
categoryIds |
array | Category ids from IKEA category page addresses, for example fu003. |
itemNumbers |
array | 8-digit article numbers, with or without dots, for example 193.841.16 or 19384116. |
maxItems |
integer | The most products saved across all searches. Default 100. |
includeDetails |
boolean | Adds the long description, measurements, materials, care instructions and package count. Slower. Off by default. |
includeStoreStock |
boolean | Adds stock per store and pickup point, with restock dates. Slower. Not available for China. Off by default. |
The script below searches for sofa in the US site, with maxItems set to 10.
import json
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_API_TOKEN"])
run_input = {
"country": "us",
"searchTerms": ["sofa"],
"maxItems": 10,
}
run = client.actor("reventadata/ikea-scraper").call(run_input=run_input)
if run is None:
raise SystemExit("The run did not start.")
print("Run status:", run.status)
items = client.dataset(run.default_dataset_id).list_items().items
for item in items:
print(item["name"], item["variantLabel"], item["price"], item["currency"])
with open("ikea-sofa-rows.json", "w", encoding="utf-8") as f:
json.dump(items, f, indent=2, ensure_ascii=False)
The keys in run_input match the table. Change country or searchTerms to read another site or another search.
Step 3: Run it and read the rows
call starts the Actor with your input and returns its run object. The run object holds the status and default_dataset_id, the ID of the dataset that stores the rows. list_items().items returns those rows as a list of dictionaries, one per product, keyed by the field names above.
The loop prints the product name, the colour label of the listed variant, the price and the currency. The last lines save the same rows to ikea-sofa-rows.json, so you can open them later without another run.
Step 4: Read one row
Sample from a capture dated 2026-11-26. The row below is shown as the Actor returned it. It is the GLOSTAD sofa from the US site. This product has no variants list.
{
"itemNo": "40595942",
"productId": "40595942",
"name": "GLOSTAD",
"typeName": "Sofa",
"variantLabel": "Knisa dark gray",
"url": "https://www.ikea.com/us/en/p/glostad-sofa-knisa-dark-gray-40595942/",
"imageUrl": "https://www.ikea.com/us/en/images/products/glostad-sofa-knisa-dark-gray__1234948_pe917261_s5.jpg",
"price": 199,
"regularPrice": null,
"currency": "USD",
"discountPercent": null,
"priceValidFrom": null,
"priceValidTo": null,
"familyPrice": false,
"rating": 4,
"reviewCount": 91,
"colors": [
"gray"
],
"categoryPath": [
"Sofas & armchairs",
"Sofas & sectionals",
"Three-seat sofas"
],
"variantCount": 0,
"variants": [],
"onlineSellable": true,
"lastChance": false,
"badge": null,
"matched": "sofa",
"country": "us",
"language": "en",
"scrapedAt": "2026-11-26T09:32:17.365662+00:00"
}
Understanding your results
Prices. price is the current price in the country's currency. When the product is on an IKEA Family offer, price is the member price and familyPrice is true. regularPrice is the price before an offer, when there is one. discountPercent, priceValidFrom and priceValidTo describe the offer and the dates it runs.
What this capture shows. No row in the sample has an offer. regularPrice, discountPercent and both date fields are empty on every row, and familyPrice is false. So the price column holds list prices only.
Variants. variants lists the other colour or design versions of a product. Each entry has its own itemNo, name, url and price. For the UPPLAND sofa in the capture, the variants cost from 849 to 999 USD, and the listed Blekinge white costs 899 USD. The price depends on the colour, so one row does not describe the whole product.
Same name, different product. Two rows are named KIVIK and share the colour label Tibbleby beige/gray. The typeName field tells them apart: one is a Sofa at 799 USD, the other a Sofa with chaise at 1199 USD.
Ratings. rating is the average customer rating and reviewCount the number of ratings behind it.
Pro tips and advanced usage
-
Start from item numbers when you know the product. The 8-digit number works with or without dots. Use
itemNumbersto read exactly those products. -
Read a whole category. Each category id lists every product of that category. The id is the code at the end of the category page address, for example
fu003for sofas. -
Compare countries. Run the same
itemNumberswith a differentcountry. Prices come back in that country's currency, and an item number the country does not sell returns nothing. -
Add the optional fields only when you need them.
includeDetailsandincludeStoreStockmake the run slower. Store stock is not available for China. -
Keep
maxItemssmall while you test. It caps the products saved across all searches, so a test run stays short. -
Read
variantsbefore you pick a product. The listed colour is one of several, and its price may differ from the others.
Troubleshooting common issues
-
No rows came back. Check
countryand the search term first. An item number that the country does not sell returns nothing. -
The run stops with a message about the language. Each country offers its own languages. If you pick one it does not offer, the run stops before it reads any page, and the message lists the valid ones. Leave
languageempty to use the country default. -
The run stops for China.
includeDetailsandincludeStoreStockare not available forcn. The run stops before it reads any page. Turn both off for that country. - The run ends with a message and no rows. The site refused the run. Wait a while and run it again. The run log shows the message the Actor wrote.
Next steps
Run the same script on a schedule with your own tool, such as cron, and keep the files. The scrapedAt field tells you when each row was read, so you can compare prices over time. Then try a second country, or a category id from a page you already know.
The Apify Python client documentation covers the rest of the client, including how to read runs and datasets.
For current pricing and details, see the Store page.
About the author: reventadata builds and publishes data extraction Actors on the Apify Store.
Top comments (0)