# Komplett Products Scraper 🛒 (`shahidirfan/komplett-products-scraper`) Actor

Automate Komplett data collection for your e-commerce business. Scrape product details, prices & availability instantly. Built for retailers, resellers & market analysts needing reliable product intelligence.

- **URL**: https://apify.com/shahidirfan/komplett-products-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Categories:** Automation, E-commerce, Developer tools
- **Stats:** 12 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Komplett Search Scraper

Extract product search results from Komplett.no and save them as structured dataset records.

The actor supports keyword-based scraping and direct search URLs, handles pagination, and returns product pricing, stock, rating, and identifiers.

### Features

- Scrapes Komplett search pages such as `https://www.komplett.no/search?q=mobile&list_view=list`
- Supports pagination with page safety limit
- Captures rich product metadata including prices, availability, reviews, and energy labels
- Keeps output deduplicated by product material number
- Supports optional raw product payload output

### Use Cases

- Price monitoring
- Product catalog analysis
- Competitor research
- Availability tracking
- Building custom product feeds

### Input Parameters

| Field | Type | Description |
|---|---|---|
| `startUrl` | string | Single Komplett search URL |
| `url` | string | Legacy alias for `startUrl` |
| `keyword` | string | Search term when no URL is provided |
| `sort` | string | Sort mode (`None`, `PriceAsc`, `PriceDesc`, etc.) |
| `results_wanted` | integer | Maximum number of products to save (default: `20`) |
| `max_pages` | integer | Maximum pages to visit (default: `10`) |
| `includeRawData` | boolean | Include full nested product payload in `raw` |
| `proxyConfiguration` | object | Optional proxy settings |

### Output Fields

| Field | Description |
|---|---|
| `name` | Product name |
| `price`, `price_number` | Display and numeric price |
| `availability_status`, `availability_text`, `availability_quantity` | Stock info |
| `review_rating`, `review_count` | Product reviews |
| `material_number`, `manufacturer_part_number` | Product identifiers |
| `query`, `query_id`, `page` | Search context |
| `url`, `image_url` | Product page and image |
| `energy_grade`, `energy_label_url`, `technical_spec_url` | Energy metadata (when available) |
| `variant_groups` | Product variants |

### Usage Example

```json
{
  "startUrl": "https://www.komplett.no/search?q=mobile&list_view=list",
  "keyword": "mobile",
  "sort": "None",
  "results_wanted": 20,
  "max_pages": 3
}
```

### Sample Output

```json
{
  "source": "komplett.no",
  "query": "mobile",
  "query_id": "a6252789049b98adcefa5881ba339453",
  "page": 1,
  "position_on_page": 1,
  "material_number": "1328693",
  "manufacturer_part_number": "MG6N4QN/A",
  "name": "iPhone 17 256GB (salvie)",
  "price": "11 990,-",
  "price_number": 11990,
  "availability_status": "Stocked",
  "availability_text": "20+ stk. på lager.",
  "review_count": 0,
  "review_rating": 0,
  "url": "https://www.komplett.no/product/1328693/mobil-tablets-klokker/mobiltelefoner/iphone-17-256gb-salvie",
  "image_url": "https://www.komplett.no/product-media/b2c/en-us/1328693.jpg"
}
```

### Notes

- Prefer `startUrl` when you need precise control over filters.
- `list_view` and `page` are handled internally from URL/defaults.
- Use smaller `results_wanted` for quick checks, then increase for full runs.
- If the target query has many pages, increase `max_pages`.

### Legal

Use this actor in compliance with Komplett.no terms and applicable laws. Respect rate limits and responsible scraping practices.

# Actor input Schema

## `startUrl` (type: `string`):

Single Komplett search URL. If provided, this URL is used as the starting point.

## `keyword` (type: `string`):

Keyword used when startUrl/url are not provided.

## `sort` (type: `string`):

Sort mode for search results.

## `results_wanted` (type: `integer`):

Maximum number of products to save.

## `max_pages` (type: `integer`):

Safety limit for pagination.

## `includeRawData` (type: `boolean`):

Include original nested product payload in `raw` field.

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

Optional proxy settings. Enable Apify Proxy if needed.

## Actor input object example

```json
{
  "startUrl": "https://www.komplett.no/search?q=mobile&list_view=list",
  "keyword": "mobile",
  "sort": "None",
  "results_wanted": 20,
  "max_pages": 3,
  "includeRawData": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrl": "https://www.komplett.no/search?q=mobile&list_view=list",
    "keyword": "mobile",
    "sort": "None",
    "results_wanted": 20,
    "max_pages": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/komplett-products-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 = {
    "startUrl": "https://www.komplett.no/search?q=mobile&list_view=list",
    "keyword": "mobile",
    "sort": "None",
    "results_wanted": 20,
    "max_pages": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/komplett-products-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "startUrl": "https://www.komplett.no/search?q=mobile&list_view=list",
  "keyword": "mobile",
  "sort": "None",
  "results_wanted": 20,
  "max_pages": 3
}' |
apify call shahidirfan/komplett-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=shahidirfan/komplett-products-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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