# Košík.cz Scraper – Czech Grocery Prices & Promos (`golem-data/kosik-cz-scraper`) Actor

Scrape every product in a Košík.cz category or search, not just the first 30: prices, unit prices, promos (discount %, end dates, multi-buy), stock and restock dates. Search by keyword, category or brand; export to JSON, CSV or Excel. No login needed.

- **URL**: https://apify.com/golem-data/kosik-cz-scraper.md
- **Developed by:** [Golem Data](https://apify.com/golem-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 products

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Košík.cz Scraper – Czech Grocery Prices

Unofficial tool. Not affiliated with, endorsed by or connected to Košík.cz. Extracts publicly available product data only.

Full coverage: returns every product in a category or search (verified against the site’s own totals), not just the first page.

Scrape product data from **[Košík.cz](https://www.kosik.cz)**, one of the largest online supermarkets in the Czech Republic. You get prices in CZK, promo prices with the regular price, unit prices (Kč/kg, Kč/l, Kč/ks), multi-buy offers, stock status and category paths. Export to JSON, CSV, Excel or straight into Google Sheets.

**Czech keywords:** Košík.cz scraper, ceny potravin, online supermarket, akce a slevy, cena za kilogram, cena za litr, dostupnost zboží, monitoring cen, sledování cen potravin, srovnání cen, export produktů do Excelu.

### What it does

- Scrapes any **category** (including all its subcategories), **brand page**, the **promo page** ([Akce](https://www.kosik.cz/s1-akce)), **search results** or single **product pages**.
- Accepts **search terms** directly (e.g. `máslo`, `káva`, `Olma`).
- Returns the price you see on the site, the struck-through regular price when a product is on promo, the discount %, the promo end date and multi-buy tiers ("od 2 ks").
- Optionally opens each product page to get the exact category path and country of origin.
- Uses the same JSON data the Košík.cz website loads in your browser. It doesn't parse HTML, so runs are fast and cheap: about 1,000 products in under a minute.

### Use cases

- **Grocery price tracking**: follow prices and promotions week by week.
- **FMCG brands and suppliers**: check how your products are priced, discounted and stocked at Košík.
- **Competitor analysis**: compare Košík prices with Rohlík, Tesco, Billa or Kaufland data.
- **Market research and journalism**: food inflation, unit-price comparisons, private-label analysis.

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Košík.cz URLs: categories (`/c…`), brands (`/b…`), promo listings (`/s1-akce`), search pages (`/vyhledavani?search=…`), products (`/p…`). |
| `searchTerms` | array | Words to search. Košík returns at most about 200 results per search. |
| `maxItems` | integer | Stop after this many products in total. Default `100`. `0` = no limit. |
| `includeProductDetails` | boolean | One extra request per product for the exact category path and country of origin. Slower (about 60 products/minute). Default `false`. |
| `maxConcurrency` | integer | Parallel requests, 1–5. Default `2`. |
| `proxyConfiguration` | object | Apify Proxy settings. Default: Apify datacenter proxy. |

#### Input example

```json
{
    "startUrls": [
        { "url": "https://www.kosik.cz/c927-mleko-a-mlecne-napoje" },
        { "url": "https://www.kosik.cz/s1-akce" }
    ],
    "searchTerms": ["máslo"],
    "maxItems": 500,
    "includeProductDetails": false
}
```

### Output

One record per product. Products found through several URLs or search terms are saved only once per run.

```json
{
    "productId": 797278,
    "name": "Farma Heřmanice Farmářské Jersey A2 mléko, plnotučné",
    "brand": "Farma Heřmanice",
    "price": 44.9,
    "currency": "CZK",
    "regularPrice": 54.9,
    "discountPercent": 18,
    "promoLabel": "Akce platí do 24. 11.",
    "multiBuyOffers": [],
    "unitPrice": 89.8,
    "unit": "l",
    "packageSize": "500 ml",
    "depositPrice": null,
    "inStock": true,
    "expectedRestock": null,
    "categoryPath": ["Mléčné a chlazené", "Mléko a mléčné nápoje"],
    "countryCode": "CZE",
    "adultOnly": false,
    "productUrl": "https://www.kosik.cz/p797278-farma-hermanice-farmarske-jersey-a2-mleko-plnotucne",
    "imageUrl": "https://static-new.kosik.cz/k3wCdnContainerk3w-static-ne-cz-prod/images/thumbs/…/500x500x1_….jpg",
    "source": "https://www.kosik.cz/c927-mleko-a-mlecne-napoje",
    "scrapedAt": "2026-11-18T18:40:12.421Z"
}
```

#### Output fields

| Field | Description |
|---|---|
| `productId` | Košík.cz product ID. |
| `name`, `brand` | Product name as shown on the site, and the brand (`null` if none). |
| `price` | Current price per piece in CZK, promo price included. |
| `regularPrice` | Struck-through price when the product is on promo, otherwise `null`. |
| `discountPercent`, `promoLabel` | Discount % and the site's promo text, e.g. "Akce platí do 24. 11." or "Spotřebujte do 19. 11." for near-expiry ("Zachraň mě") offers. |
| `multiBuyOffers` | Multi-buy tiers ("Multikup"): `quantity`, `pricePerPiece`, `unitPrice`, `unit`. Empty if none. |
| `clubPrice` | Only present when Košík shows a loyalty-club price. |
| `unitPrice`, `unit` | Price per kg, l, ks or m, as shown on the site (e.g. 89.8 per `l`). |
| `packageSize` | Package content, e.g. `500 ml`, `1,5 l`, `60 ks`. |
| `depositPrice` | Bottle deposit (záloha) in CZK, if any. |
| `inStock` | `true` if the product can be ordered for one of the upcoming delivery days. |
| `expectedRestock` | When an out-of-stock product is expected back ("Naskladnění očekáváme…"), as an ISO timestamp. |
| `categoryPath` | See the FAQ below. |
| `countryCode` | Country code from Košík (e.g. `CZE`). With `includeProductDetails`, `countryOfOrigin` is added as text. |
| `adultOnly` | `true` for alcohol and tobacco. |
| `productUrl`, `imageUrl` | Product page and a 500×500 image URL. |
| `source` | The URL or search term that found the product. |
| `scrapedAt` | Time of scraping (UTC). |

### Pricing

Pay per result, with no monthly fee:

- **$2.00 per 1,000 products** ($0.002 per product saved)
- **$0.005 per run start**

Example: scraping 5,000 products costs about $10. Platform usage is included in these prices. To cap the cost of a run, set **Maximum cost per run** in the run options, or use `maxItems`. The scraper stops cleanly when either limit is reached.

### Tips

- **All promotions:** use `https://www.kosik.cz/s1-akce` as a start URL (about 2,800 products).
- **A whole department:** use a top-level category such as `https://www.kosik.cz/c898-mlecne-a-chlazene` (about 1,700 products). Subcategories are included.
- **Daily price tracking:** schedule the Actor in Apify Console and send results to Google Sheets, a webhook, Make or Zapier.
- Leave `includeProductDetails` off unless you need the exact category path or country of origin. It makes the run about 60× slower.

### FAQ

**Is it legal to scrape Košík.cz?**
This Actor collects only public product information that anyone can see without logging in: names, prices, stock and categories. It does not log in, does not touch shopping carts or accounts, and collects no personal data. It follows kosik.cz/robots.txt and keeps the request rate low (at most one request per second). Product photos are copyrighted, so the Actor returns image links, not the images. You are responsible for how you use the data. If you plan commercial reuse, check Košík.cz's terms and consult a lawyer.

**Why is there no EAN / barcode?**
Košík.cz does not publish EAN codes on its website or in its page data, so they can't be scraped. Use `name`, `brand` and `packageSize` to match products across shops.

**What does `categoryPath` contain?**
By default, it's the category you scraped, with its parent categories (e.g. `Mléčné a chlazené > Mléko a mléčné nápoje`). For search results, it's the product's top-level category. A product can be listed in several categories. Turn on `includeProductDetails` to get the product's own deepest breadcrumb (e.g. `Mléčné a chlazené > Mléko a mléčné nápoje > Čerstvé mléko > Plnotučné`).

**Are the prices the same for everyone?**
The scraper sees what an anonymous visitor without a delivery address sees. Košík notes that prices, promotions and availability can vary with delivery address and time. Prices exclude loyalty-club perks unless `clubPrice` is shown.

**Does it scrape Košík.sk (Slovakia)?**
No, only kosik.cz.

**How fresh is the data?**
It's live: every run reads the current prices and stock.

**Something broke or a field is missing?**
Open an issue on the Actor's Issues tab with the run ID and the URL you used.

# Actor input Schema

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

Košík.cz pages to scrape. Supported: category pages (https://www.kosik.cz/c927-mleko-a-mlecne-napoje), brand pages (/b…), the promo page (https://www.kosik.cz/s1-akce), search result pages (https://www.kosik.cz/vyhledavani?search=mleko) and single product pages (/p…). Subcategories are included automatically.

## `searchTerms` (type: `array`):

Words to search on Košík.cz, e.g. "máslo", "jogurt" or a brand name. Košík returns at most about 200 results per search.

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

The run stops after saving this many products (across all URLs and search terms). Set to 0 for no limit. You pay per saved product, so this also caps the cost.

## `includeProductDetails` (type: `boolean`):

Makes one extra request per product to get its exact, deepest category path and country of origin. Slower (about 1 product per second). When off, the category path is the category you scraped (or the top-level category for search results).

## `maxConcurrency` (type: `integer`):

Kept low on purpose to be polite to Košík.cz. Requests are also capped at 60 per minute.

## `proxyConfiguration` (type: `object`):

Apify Proxy is used by default. Košík.cz does not usually block datacenter IPs, so residential proxies are rarely needed.

## Actor input object example

```json
{
  "searchTerms": [
    "mléko"
  ],
  "maxItems": 20,
  "includeProductDetails": false,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

All scraped products: name, brand, price (CZK), regular price, unit price, package size, stock status, category path and product URL.

## `promotions` (type: `string`):

The same products with promotion fields: price, regular price, discount %, promo label and multi-buy offers.

# 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 = {
    "searchTerms": [
        "mléko"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("golem-data/kosik-cz-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 = {
    "searchTerms": ["mléko"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("golem-data/kosik-cz-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "mléko"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call golem-data/kosik-cz-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,golem-data/kosik-cz-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FcotBQFmLkwZ5cxTn/builds/igVzKnI5wg8PpWY1y/openapi.json
