# Empik Product Search Scraper (Pay Per Result) (`trev0n/empik-product-search-scraper-pay-per-result`) Actor

The Empik Product Search Scraper Pay Per Result extracts product listings from Empik.com search results and category pages, including product titles, prices, images, ratings, authors, availability, badges and price guarantees across multiple paginated pages.

- **URL**: https://apify.com/trev0n/empik-product-search-scraper-pay-per-result.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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/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

## Contact

If you encounter any issues or need to exchange information, please feel free to contact us through the following link:
[My profile](https://apify.com/trev0n)

## What does Empik Product Search Scraper do?

### Introduction

Empik is Poland's retail chain specializing in books, multimedia, music, and entertainment products with both physical stores and a dominant e-commerce presence at Empik.com. As Poland's leading entertainment and cultural products marketplace, Empik.com represents a comprehensive source of product information for businesses, researchers, and developers seeking market data across books, games, electronics, music, and multimedia categories.

The challenge lies in manually browsing through thousands of search results and category pages to identify relevant products across diverse categories. Our Empik Product Search Scraper eliminates this time-consuming process by automating data extraction from search results, category pages, and bestseller lists, providing structured access to product listings with pricing, ratings, author information, and promotional indicators that can drive market research and competitive analysis.

### Scraper Overview

The Empik Product Search Scraper is designed to extract product listings from Empik.com search results and category pages with precision and reliability. Built with Playwright and Crawlee, this scraper handles the complexities of modern e-commerce navigation including automatic pagination, lazy-loaded images, and dynamic content while delivering clean, structured product data.

Key advantages include automatic pagination handling to traverse multiple result pages, intelligent item limit controls with page-by-page scraping, comprehensive product data extraction including authors and promotional badges, lowest price guarantee detection, and configurable retry mechanisms for reliability. The scraper is particularly valuable for market researchers analyzing product trends across categories, price monitoring services tracking competitive pricing, e-commerce businesses identifying market opportunities, and data analysts building product databases from search results.

Target users include retail analysts, market research firms, e-commerce entrepreneurs, publishers and distributors monitoring product placement, pricing strategists tracking promotional campaigns, and data scientists working with Polish consumer market data.

### Input and Output Specifications

#### Example URLs

**Example URL 1 (Search):** https://www.empik.com/szukaj/produkt?q=battlefield\&qtype=basicForm\&ac=true

**Example URL 2 (Category):** https://www.empik.com/ksiazki/biznes-ekonomia-marketing

**Example URL 3 (Bestsellers):** https://www.empik.com/bestsellery?hideUnavailable=true

***

#### Input Format

The scraper accepts JSON configuration with the following parameters:

```json
{
  "urls": [
    "https://www.empik.com/szukaj/produkt?q=battlefield&qtype=basicForm&ac=true",
    "https://www.empik.com/ksiazki/biznes-ekonomia-marketing",
    "https://www.empik.com/bestsellery?hideUnavailable=true"
  ],
  "max_items_per_url": 100,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

**urls** - An array containing Empik search result, category page, or bestseller list URLs to scrape. Accepts various URL formats including search queries, category pages, and filtered results.

**max_items_per_url** - Maximum number of products to scrape per URL (default: 20, set to 0 for unlimited). The scraper automatically navigates through pagination until reaching this limit or exhausting available results.

**max_retries_per_url** - Maximum number of retry attempts for failed requests (default: 2, range: 0-10). Configures resilience against temporary network issues.

**proxy** - Optional proxy configuration object. Set `useApifyProxy: true` to use Apify Proxy for enhanced reliability and reduced blocking risks. Leave as false for development or when proxies are not required.

***

#### Output

You get the output from the Empik Product Search Scraper stored in a dataset. The following is an example of the information fields collected after running the Actor.

```json
[
    {
        "title": "Przywództwo. Jak budować zwycięskie zespoły",
        "url": "https://www.empik.com/przywoztwo-jak-budowac-zwycieskie-zespoly-willink-jocko-babin-leif,p1262041869,ksiazka-p",
        "image": "https://ecsmedia.pl/cdn-cgi/image/width=265,height=265,/c/przywoztwo-jak-budowac-zwycieskie-zespoly-b-iext140827131.jpg",
        "price": 39.99,
        "currency": "PLN",
        "rating": 4.8,
        "availability": "Dostępny",
        "authors": [
            {
                "name": "Willink Jocko",
                "url": "https://www.empik.com/szukaj/produkt?author=willink+jocko"
            },
            {
                "name": "Babin Leif",
                "url": "https://www.empik.com/szukaj/produkt?author=babin+leif"
            }
        ],
        "lowestPriceGuarantee": true,
        "badge": "Megacena"
    },
    {
        "title": "Myślenie strategiczne. Poker, biznes i życie",
        "url": "https://www.empik.com/myslenie-strategiczne-poker-biznes-i-zycie-von-neumann-maria,p1342156890,ksiazka-p",
        "image": "https://ecsmedia.pl/cdn-cgi/image/width=265,height=265,/c/myslenie-strategiczne-poker-biznes-i-zycie-b-iext167529301.jpg",
        "price": 44.99,
        "currency": "PLN",
        "rating": 4.5,
        "availability": "Wysyłka w 24h",
        "authors": [
            {
                "name": "Von Neumann Maria",
                "url": "https://www.empik.com/szukaj/produkt?author=von+neumann+maria"
            }
        ],
        "lowestPriceGuarantee": false,
        "badge": "Nowość"
    }
]
```

The scraper returns structured data with eleven key fields, each serving specific business intelligence purposes:

**title** - The complete product title as displayed in search results, crucial for product identification and catalog matching across different platforms.

**url** - Direct link to the product detail page, essential for accessing full product information and enabling seamless integration with detail scraping workflows.

**image** - Product thumbnail image URL from search results, enabling visual catalog creation, automated image downloads for product databases, and visual comparison tools.

**price** - Current product price as displayed in search results, fundamental for competitive pricing analysis, price monitoring, and market trend identification.

**currency** - Price currency specification (PLN for Empik.com), ensuring accurate financial analysis and multi-market comparisons.

**rating** - Average customer rating score, essential for quality assessment, customer satisfaction analysis, and competitive product positioning. Returns `null` if no rating is available.

**availability** - Current availability status (e.g., "Dostępny", "Wysyłka w 24h"), enabling inventory analysis and stock monitoring across search results.

**authors** - Array of author objects containing name and search URL for each author, valuable for creator-specific analysis, author popularity tracking, and content sourcing. Returns empty array `[]` for products without authors.

**lowestPriceGuarantee** - Boolean indicator showing whether the product has Empik's lowest price guarantee, useful for identifying promotional priorities and competitive positioning.

**badge** - Special promotional badge text (e.g., "Megacena", "Nowość"), indicating marketing priorities and product positioning. Returns `null` if no badge is present.

***

### Usage Guide

Begin by identifying target search queries, category pages, or bestseller lists on Empik.com. The scraper accepts various URL formats including keyword searches, category browsing, and filtered results pages.

Configure the input JSON with your target URLs and desired item limits. Set `max_items_per_url` to control how many products to collect from each URL - the scraper automatically handles pagination to reach your target or exhaust available results.

The scraper automatically handles:

- Multi-page pagination with intelligent traversal
- Detection of total pages and current page position
- Lazy-loaded product images and content
- Author information extraction from product tiles
- Special badges and promotional indicators
- Lowest price guarantee detection
- Text normalization (removing non-breaking spaces, normalizing whitespace)

**Best Practices:**

- Start with reasonable item limits (50-100 products) to test URL validity before scaling
- Monitor pagination info in logs to understand result set size
- Use specific category URLs for focused data collection
- Combine with the Empik Product Details Scraper for comprehensive product intelligence
- Track the total items collected per URL to validate completeness

**Common scenarios:**

- **Market research across categories** - Use category URLs to collect product listings from specific segments (books, games, electronics)
- **Competitive price monitoring** - Set high item limits or unlimited (0) to capture entire search result sets
- **Trend analysis** - Scrape bestseller lists periodically to track market trends and popular products
- **Author/publisher tracking** - Search for specific creators and collect their product portfolios

**Common errors and solutions:**

- **No products found** - Verify the URL returns product listings when accessed manually; some URLs may require authentication or have geographic restrictions
- **Pagination not advancing** - Check logs for pagination detection messages; some filtered views may have different pagination selectors
- **Missing author data** - Not all products have author information; electronics and multimedia products typically return empty author arrays
- **Image URLs showing placeholders** - Some products may not have images; the scraper filters out placeholder images automatically

Monitor scraper performance through detailed logging including:

- Products found per page
- Pagination status (current page / total pages)
- Items added vs. limit tracking
- Next page detection status

***

### Benefits and Applications

The scraper delivers significant time savings by automating manual browsing and data collection across search results and category pages. For a typical market research task covering 500 products across multiple categories, manual collection could require days of work, while automated scraping completes in minutes.

**Real-world applications include:**

- **Category-wide competitive analysis** for understanding market composition and pricing strategies
- **Bestseller tracking** to identify trending products and market opportunities
- **Author/publisher portfolio analysis** leveraging author search and filtering capabilities
- **Price monitoring across product categories** for dynamic pricing strategies
- **Product discovery** for e-commerce businesses identifying new market entrants
- **Promotional campaign tracking** through badge and lowest price guarantee detection
- **Market sizing** by analyzing product counts and availability across categories

**Business value extends to:**

- Identifying pricing patterns and promotional strategies across product categories
- Monitoring new product launches and market entries through "Nowość" badge tracking
- Analyzing author popularity and publication trends in books and multimedia
- Supporting category expansion decisions with comprehensive product data
- Generating competitive intelligence reports for specific market segments
- Building training datasets for pricing algorithms and recommendation systems
- Tracking seasonal trends and promotional cycles through periodic scraping

**Integration opportunities:**

- Combine with Empik Product Details Scraper to create complete product intelligence pipelines
- Export to databases for price history tracking and trend analysis
- Feed into business intelligence dashboards for real-time market monitoring
- Power product comparison and recommendation engines

***

### Conclusion

The Empik Product Search Scraper transforms tedious manual browsing into automated, structured data collection from Poland's leading entertainment and cultural products marketplace. Whether you're conducting market research across categories, monitoring competitive pricing, tracking bestsellers, or building product databases, this scraper provides the reliable foundation for data-driven decision making.

The intelligent pagination handling and comprehensive product data extraction make this scraper ideal for both targeted research projects and large-scale market intelligence operations.

Ready to unlock Empik's search data for your market research needs? Start extracting valuable product insights today with our comprehensive scraping solution.

***

### Your Feedback

We are always working to improve Actors' performance. So, if you have any technical feedback about Empik Product Search Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

# Actor input Schema

## `urls` (type: `array`):

List of URLs to scrape. Example: https://www.empik.com/szukaj/produkt?q=battlefield

## `max_items_per_url` (type: `integer`):

Maximum number of products to scrape per URL (0 = unlimited)

## `max_retries_per_url` (type: `integer`):

Maximum number of retry attempts for failed requests

## `proxy` (type: `object`):

Proxy settings

## Actor input object example

```json
{
  "urls": [
    "https://www.empik.com/szukaj/produkt?q=battlefield&qtype=basicForm&ac=true"
  ],
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "urls": [
        "https://www.empik.com/szukaj/produkt?q=battlefield&qtype=basicForm&ac=true"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/empik-product-search-scraper-pay-per-result").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 = { "urls": ["https://www.empik.com/szukaj/produkt?q=battlefield&qtype=basicForm&ac=true"] }

# Run the Actor and wait for it to finish
run = client.actor("trev0n/empik-product-search-scraper-pay-per-result").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 '{
  "urls": [
    "https://www.empik.com/szukaj/produkt?q=battlefield&qtype=basicForm&ac=true"
  ]
}' |
apify call trev0n/empik-product-search-scraper-pay-per-result --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trev0n/empik-product-search-scraper-pay-per-result"
        }
    }
}
```

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/kSdoAExWHyOecL0yH/builds/0bs9sQ51chU10QDac/openapi.json
