# Bol.com Scraper (`codingfrontend/bol-com-scraper`) Actor

Extract public Bol.com product listings for Belgium and the Netherlands, including prices, stock, and ratings.

- **URL**: https://apify.com/codingfrontend/bol-com-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What this Actor does

This Actor extracts publicly visible product information from Bol.com search pages and product pages for the Netherlands and Belgium. It is useful for bounded catalog research, price and availability snapshots, product discovery, and marketplace comparison.

The Actor makes direct HTTPS requests to approved `bol.com` hosts and parses public HTML, JSON, and JSON-LD responses. It does not log in, use a browser, bypass access controls, use stealth or fingerprint evasion, or accept proxy configuration. If Bol.com returns an access-control page, an HTTP error, or no usable product data, the Actor emits a minimal diagnostic row when diagnostics are enabled.

### Input

All inputs are optional. With no source URL, the defaults are `query: "coffee"`, `locale: "nl"`, `maxItems: 50`, `maxPages: 1`, direct-request timeout `30000`, and one bounded retry.

#### Search and sources

- `query` — search keyword used to build `https://www.bol.com/{locale}/nl/s/?searchtext=...` when no source URL is supplied.
- `searchQuery` and `searchKeywords` — compatibility aliases for `query`; conflicting values are rejected.
- `locale` — `nl` or `be`; default `nl`.
- `startUrls` — up to 20 public Bol.com search or product URLs. These take precedence over the generated query URL. Each item is an object such as `{ "url": "https://www.bol.com/nl/nl/s/?searchtext=coffee" }`.
- `sourceUrls` and `urls` — compatibility aliases for `startUrls`; provide only one source-list alias.
- `url` — compatibility alias for one source URL.

Only Bol.com paths under `/nl/nl/`, `/nl/fr/`, `/be/nl/`, or `/be/fr/` with `/s/` or `/p/` are accepted. Search URLs retain their existing query parameters. For search pages, the Actor sets the `page` parameter to `startPage + offset`; product pages are fetched once.

#### Limits and output controls

- `startPage` — first 1-based search page, from 1 to 100; default `1`.
- `maxPages` — maximum search pages per source, from 1 to 10; default `1`.
- `maxItems` — global maximum normal product records across all sources and pages, from 1 to 500; default `50`.
- `deduplicate` — remove repeated products across pages and sources using product ID, canonical product URL, or title; default `true`.
- `includeMedia` — include validated Bol.com gallery image URLs when present; default `true`.
- `includeDiagnostics` — emit minimal rows for blocked, failed, empty, or unusable responses; default `true`.

The Actor processes sources and pages in order. It stops a source when a page has no products or makes no new progress, and it never retries indefinitely. Product detail URLs are never paginated.

#### Developer and local QA options

- `timeoutMs` or `requestTimeoutMs` — request timeout from 5,000 to 120,000 ms; default `30,000`.
- `maxRequestRetries` — retries for network, 429, and 5xx responses, from 0 to 2; default `1`.
- `requestDelayMs` — delay between ordered page requests, from 0 to 5,000 ms; default `0`.
- `maxResponseBytes` — response-size limit from 256 KiB to 4 MiB; default 4 MiB.
- `userAgent` — optional transparent HTTP user-agent string.
- `fixture` — local-only object `{ "url": "...", "body": "..." }` for deterministic tests.
- `fixtureFile` — one repository-relative local fixture file.
- `fixtureFiles` — up to 10 repository-relative local fixtures, consumed in page order for deterministic pagination tests.

Fixture paths are constrained to the Actor directory and cannot point into `node_modules`. Fixtures never silently replace a failed live response.

### Output

#### Product records

Normal dataset rows contain only fields with usable values. Depending on the page, they may include:

`productId`, `title`, `brand`, `category`, `description`, `featureBullets`, `price`, `currency`, `availability`, `deliveryText`, `ratingValue`, `ratingCount`, `sellerName`, `badges`, `imageUrls`, `thumbnailUrl`, `productUrl`, `sourceUrl`, `sourceDomain`, `query`, `locale`, `pageNum`, `position`, and `scrapedAt`.

Normal rows contain only public product fields; operational HTTP status and run instrumentation are not mixed into product rows.

#### Diagnostic records

When `includeDiagnostics` is `true`, a blocked or unusable source produces exactly these fields:

```json
{
  "recordType": "diagnostic",
  "diagnosticType": "access_blocked",
  "url": "https://www.bol.com/nl/nl/s/?searchtext=coffee",
  "error": "Bol.com returned an access-control page.",
  "errorCode": "ACCESS_BLOCKED",
  "scrapedAt": "2026-09-10T08:47:00.737Z"
}
```

Diagnostic `errorCode` values include `ACCESS_BLOCKED`, `REDIRECT_BLOCKED`, `HTTP_ERROR`, `REQUEST_FAILED`, and `NO_DATA`.

#### Key-value summary

The `OUTPUT` key-value record contains `status`, `productCount`, `diagnosticCount`, `droppedRecordCount`, `dropReasons`, `pagesFetched`, `sourcesProcessed`, `filteredOutCount`, `stoppedOnNoProgress`, and `completedAt`. Status is `SUCCEEDED` when products were emitted, `SOURCE_UNAVAILABLE` when only diagnostics were emitted, and `NO_DATA` when neither was emitted.

### Examples

#### Generated search URL

```json
{
  "query": "wireless headphones",
  "locale": "nl",
  "maxItems": 25,
  "maxPages": 2,
  "includeMedia": true
}
```

#### Multiple public sources

```json
{
  "startUrls": [
    { "url": "https://www.bol.com/nl/nl/s/?searchtext=coffee" },
    { "url": "https://www.bol.com/be/nl/p/example-product/9300000000000000/" }
  ],
  "maxItems": 20,
  "deduplicate": true
}
```

#### Deterministic local pagination

```json
{
  "query": "coffee",
  "maxPages": 2,
  "fixtureFiles": [
    "test/fixtures/synthetic-bol.html",
    "test/fixtures/synthetic-bol-page-2.html"
  ]
}
```

### Cost and performance

Runtime and memory usage grow with the number of sources, pages, response sizes, and extracted media URLs. The defaults are intentionally bounded: at most one page per source, 50 products globally, a 4 MiB response, and one retry. Increase limits only when the source and your use case justify the additional requests.

### Responsible use and limitations

Use the Actor only for publicly accessible data and comply with Bol.com’s terms, robots guidance, copyright, privacy, and applicable laws. Do not use it to collect personal data or to defeat access controls. Direct HTTPS access can be blocked by the site or the execution environment; a diagnostic row is an honest result, not a workaround. No proxy, browser, CAPTCHA solving, or stealth mode is provided.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

# Actor input Schema

## `query` (type: `string`):

Bol.com keyword used when no source URL is supplied. Alias: searchQuery/searchKeywords.

## `searchQuery` (type: `string`):

Compatibility alias for query; do not provide a conflicting query value.

## `searchKeywords` (type: `string`):

Compatibility alias for query; do not provide a conflicting query value.

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

Bol.com search (/s/) or product (/p/) URLs. These override the generated query URL.

## `sourceUrls` (type: `array`):

Compatibility alias for startUrls; use one source-list alias at a time.

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

Compatibility alias for startUrls; use one source-list alias at a time.

## `url` (type: `string`):

Compatibility alias for one start URL.

## `locale` (type: `string`):

Bol storefront locale used for the generated search URL.

## `startPage` (type: `integer`):

1-based search page to request first.

## `maxPages` (type: `integer`):

Bounded search pagination. Product detail URLs are fetched once.

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

Global maximum normal product records across all sources and pages.

## `deduplicate` (type: `boolean`):

Remove repeated products across pages and sources using product ID, canonical URL, or title.

## `includeMedia` (type: `boolean`):

Include validated product gallery URLs when present; default true preserves existing behavior.

## `includeDiagnostics` (type: `boolean`):

Emit minimal diagnostic rows for blocked, failed, empty, or unusable responses.

## `timeoutMs` (type: `integer`):

Maximum wait for each direct HTTPS request. Alias: requestTimeoutMs.

## `requestTimeoutMs` (type: `integer`):

Compatibility alias for timeoutMs; do not provide a conflicting value.

## `maxRequestRetries` (type: `integer`):

Bounded retries for network, 429, and 5xx responses. Access blocks are not retried indefinitely.

## `requestDelayMs` (type: `integer`):

Respectful delay between ordered page requests for a source.

## `maxResponseBytes` (type: `integer`):

Upper bound for one direct response or local fixture.

## `userAgent` (type: `string`):

Optional transparent HTTP user-agent string; no stealth or fingerprint evasion is used.

## Actor input object example

```json
{
  "query": "coffee",
  "locale": "nl",
  "startPage": 1,
  "maxPages": 1,
  "maxItems": 50,
  "deduplicate": true,
  "includeMedia": true,
  "includeDiagnostics": true,
  "timeoutMs": 30000,
  "maxRequestRetries": 1,
  "requestDelayMs": 0,
  "maxResponseBytes": 4194304
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/bol-com-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/bol-com-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 '{}' |
apify call codingfrontend/bol-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/bol-com-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/dreQTv2nlIaawhidb/builds/HzejeDNOg0ejc2Nqr/openapi.json
