# Klarna Category Products Scraper (`m3web/klarna-category-products-scraper`) Actor

Extract product prices & data by category from Klarna. Great for retail analysis, market tracking & competitive insights.

- **URL**: https://apify.com/m3web/klarna-category-products-scraper.md
- **Developed by:** [M3Web](https://apify.com/m3web) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Full permissions
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Klarna Category Products Scraper

### Overview

This scraper extracts product data from Klarna's **"Shop & Compare Prices"** sections, available in multiple countries. It collects results from category and subcategory pages, including optional filters like brand, retailer, price, rating, availability, and sorting preferences.

You can use this scraper to collect product listings, analyze retailer pricing, and monitor filtered Klarna categories across their price comparison platform.

> 👉 Looking to extract **all retailer offers for a single product** instead?\
> Check out the companion tool: [Klarna Product Offers Scraper](https://apify.com/m3web/klarna-product-offers-scraper)

***

### Supported Domains

Currently works with category URLs from these Klarna domains:

| Website                                                                | Country             |
| :--------------------------------------------------------------------- | :------------------ |
| [www.klarna.com/at/](https://www.klarna.com/at/shopping/t/)           | **Austria**          |
| [www.klarna.com/fi/](https://www.klarna.com/fi/shopping/t/)           | **Finland**          |
| [www.klarna.com/fr/](https://www.klarna.com/fr/shopping/t/)           | **France**           |
| [www.klarna.com/de/](https://www.klarna.com/de/shopping/t/)           | **Germany**          |
| [www.klarna.com/ie/](https://www.klarna.com/ie/shopping/t/)           | **Ireland**          |
| [www.klarna.com/it/](https://www.klarna.com/it/shopping/t/)           | **Italy**            |
| [www.klarna.com/nl/](https://www.klarna.com/nl/shopping/t/)           | **Netherlands**      |
| [www.klarna.com/no/](https://www.klarna.com/no/shopping/t/)           | **Norway**           |
| [www.klarna.com/es/](https://www.klarna.com/es/shopping/t/)           | **Spain**            |
| [www.klarna.com/us/](https://www.klarna.com/us/shopping/t/)           | **United States**    |

> 🌍 Need to scrape category product data for other European markets like the UK, Denmark, or Sweden?\
> Check out the companion scraper built for PriceRunner’s platform: [PriceRunner Category Products Scraper](https://apify.com/m3web/pricerunner-category-products-scraper)

### 🧭 What Filters and Sorting Does This Scraper Support?

This tool understands and copies the filters you use on Klarna’s shopping website. That means — if you’re browsing Klarna and you click on:

- **Sort by** (price, popularity, rating, price drop, etc.)

#### Filters:

- **Subcategories**
- **Brands** (like adidas, Nike, Asics, etc. )
- **Retailers** (like Amazon, StockX, etc.)
- **Minimum and maximum price**
- **Only show items in stock**
- **Minimum rating (1 to 4 stars)**

…this scraper sees all of that and automatically adds those settings when collecting the product data.

You don’t have to configure anything manually — just copy the URL of the page after you’ve applied your filters on Klarna, and paste it into the input. The scraper takes care of the rest behind the scenes.

#### Example

If you go to Klarna <https://www.klarna.com/us/shopping/cl/cl337/Shoes/> and select:

- Sort by lowest price
- Subcategory: Sneakers
- Brand: adidas
- Retailer: Amazon
- Price between $50 and $200
- Show only items in stock

Your browser URL might look something like:

<https://www.klarna.com/us/shopping/cl/cl337/Shoes/?cat=30298883-30298901&man_id=4697#price_max=200&price_min=50&retailer=259493&onlyInStock=true>

Just copy that and give it to the scraper. It will include all those settings while fetching the data.

No special setup, no tech know-how — just use Klarna as usual, and this tool will follow your filters. 🧠💡

***

### Sample Output

```json
{
  "category": "Shoes",
  "id": "3400061600",
  "name": "adidas Samba OG Shoes - White/Night Indigo/Cream",
  "lowestPrice": "55.00",
  "currency": "USD",
  "oldPrice": "64.00",
  "priceDropPercent": "14.06",
  "retailer": "StockX",
  "retailerID": "258064",
  "brand": "adidas",
  "description": "Sneaker, Man",
  "url": "https://www.klarna.com/us/shopping/pl/cl337/3400061600/Shoes/adidas-Samba-OG-Shoes-White-Night-Indigo-Cream/",
  "image": "https://owp.klarna.com/product/3206770878/adidas-Samba-OG-Shoes-White-Night-Indigo-Cream.jpg"
}
```

> **Note on “Retailer” Filtering:**\
> When selecting a specific retailer in the Klarna URL, the filter applies only to products offered by that retailer. However, the scraper always returns the **lowest-priced offer** for each product — regardless of who the seller is.
>
> This behavior is useful for sellers listed on Klarna’s shopping section who want to:
>
> - Analyze pricing competitiveness
> - Benchmark against market-wide prices for the products they stock

***

### Important Notice on Disallowed URLs

This scraper is designed to fully respect Klarna’s [robots.txt](https://www.klarna.com/robots.txt) rules. According to these guidelines, certain types of pages are disallowed and will be automatically skipped, including:

- URLs containing `/shopping/results/`
- Any link using a `search=` parameter
- Klarna’s `/sale/` pages or URLs that include `s_price_drop=`

These pages represent dynamic search or promotional views that are not permitted for automated access. Users are advised not to generate input URLs using Klarna’s on-site search function or the “Sale” section.

However, if you wish to retrieve sale or discounted products, you can still use **“Sort by price drop”** inside any allowed category page. This is supported and respects the rules defined in Klarna’s robots.txt file.

> 🛡️ **No worries — any disallowed URL will be automatically skipped by the scraper. Your inputs remain safe and compliant.**

***

### Compliance with Klarna [Robots.txt](https://www.klarna.com/robots.txt)

This scraper was designed to comply with the directives specified in the [klarna.com robots.txt](https://www.klarna.com/robots.txt) file as of 25.06.2025. It targets only publicly available category data via approved API endpoints and avoids all disallowed paths or dynamic search result pages. URL validation is built into the scraper to help ensure respectful and rule-aligned usage.

# Actor input Schema

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

Extract product prices & data by category from Klarna. Great for retail analysis, market tracking & competitive insights.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.klarna.com/us/shopping/cl/cl2/TVs/?onlyInStock=true&retailer=252237&sort=price_drop#price_min=200&price_max=1000"
    }
  ]
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.klarna.com/us/shopping/cl/cl2/TVs/?onlyInStock=true&retailer=252237&sort=price_drop#price_min=200&price_max=1000"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("m3web/klarna-category-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 = { "startUrls": [{ "url": "https://www.klarna.com/us/shopping/cl/cl2/TVs/?onlyInStock=true&retailer=252237&sort=price_drop#price_min=200&price_max=1000" }] }

# Run the Actor and wait for it to finish
run = client.actor("m3web/klarna-category-products-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 '{
  "startUrls": [
    {
      "url": "https://www.klarna.com/us/shopping/cl/cl2/TVs/?onlyInStock=true&retailer=252237&sort=price_drop#price_min=200&price_max=1000"
    }
  ]
}' |
apify call m3web/klarna-category-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,m3web/klarna-category-products-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/rd1PfdxJ99ymCiTKb/builds/gWvsecf5KiwIUXIJ8/openapi.json
