# Åhléns Scraper — Swedish Department Store Prices & Stock (`studio-amba/ahlens-scraper`) Actor

Scrape product data from ahlens.se, Sweden's major mid-market department store chain. Extract names, brands, prices, stock levels and images via Åhléns' own product search, in SEK.

- **URL**: https://apify.com/studio-amba/ahlens-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 result scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

## Åhléns Scraper

Pull product data from ahlens.se, Sweden's major mid-market department store chain. This scraper talks directly to Åhléns' own product search API, so it returns clean, structured data -- brand, price, stock, images -- without any HTML parsing or browser rendering.

### How to scrape Åhléns data

Give the actor a search term and it queries Åhléns' own storefront search directly, paginating until it hits `maxResults` or runs out of matching products. There's nothing else to configure -- no category URLs to hunt down, no cookies, no login.

Under the hood, ahlens.se is a Next.js storefront, but search results are not rendered server-side -- they come from a third-party merchandising/search engine, Apptus eSales, called directly from the browser with no authentication. This actor calls that API directly instead of waiting on a browser to render and hydrate the page, which makes it faster and far less likely to break when Åhléns tweaks its frontend markup.

If you don't provide a search term, it defaults to searching for `"klänning"` (Swedish for "dress") as a demo, so an empty run still returns data.

#### A note on color variants

Åhléns groups a product's color options together internally, but each color has its own distinct product page URL. This actor treats every color variant as its own output row -- the same convention as every other product scraper in the fleet, one row per distinct URL -- so a dress sold in five colors comes back as five rows, each with its own `productId`, image and stock count.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQuery` | string | Search term, in Swedish (e.g. `"klänning"`, `"väska"`, `"kastrull"`) |
| `maxResults` | integer | Cap on number of products returned (default: 100, max: 5000) |
| `proxyConfiguration` | object | Apify proxy settings. Åhléns' search API has no anti-bot protection, so the default automatic Apify proxy is sufficient |

### What you get back

| Field | Type | Example |
|-------|------|---------|
| `name` | string | `"Pippi-klänning med tyllkjol SPARKLE"` |
| `brand` | string | `"PIPPI"` |
| `price` | number | null | `299` |
| `originalPrice` | number | null | `299` (equal to `price` when not discounted) |
| `currency` | string | `"SEK"` |
| `sku` | string | `"61069224"` (numeric product code, from the first size variant) |
| `productId` | string | `"943febcf-6d11-4171-8497-f18aed7afe79"` (Åhléns' internal ID, unique per color) |
| `ean` | string | null | Not exposed by Åhléns' search API -- always `null` |
| `inStock` | boolean | null | `true` |
| `stockLevel` | integer | null | `584` (total units, summed across size variants) |
| `url` | string | Full product page URL, unique per color |
| `imageUrl` | string | null | Primary product image |
| `imageUrls` | array | Product image URLs at multiple resolutions |
| `category` | string | null | `"barn"` (top-level site section: dam/herr/barn/hem/skönhet/...) |
| `description` | string | null | Not exposed by Åhléns' search API -- always `null` |
| `rating` | number | null | Not exposed by Åhléns' search API -- always `null` |
| `reviewCount` | integer | null | Not exposed by Åhléns' search API -- always `null` |
| `specs` | object | null | `{"color": "Pink"}`, when the source tags a color |
| `scrapedAt` | string | ISO timestamp |
| `searchQuery` | string | The search term used to find this product (input echo) |

### Sample output

```json
{
  "name": "Pippi-klänning med tyllkjol SPARKLE",
  "brand": "PIPPI",
  "price": 299,
  "originalPrice": 299,
  "currency": "SEK",
  "sku": "61069224",
  "productId": "943febcf-6d11-4171-8497-f18aed7afe79",
  "ean": null,
  "inStock": true,
  "stockLevel": 584,
  "url": "https://www.ahlens.se/produkter/barn/pippi-klanning-med-tyllkjol-sparkle-943febcf-6d11-4171-8497-f18aed7afe79",
  "imageUrl": "https://media.ahlens.se/image/upload/f_auto,t_ProductListMobile/products/bg_removed/61/06/92/61069225_PIPPI_PIPPI SPARKLE Tulle Dress_AW26-32_1.jpg",
  "imageUrls": [
    "https://media.ahlens.se/image/upload/f_auto,t_ProductListMobile/products/bg_removed/61/06/92/61069225_PIPPI_PIPPI SPARKLE Tulle Dress_AW26-32_1.jpg",
    "https://media.ahlens.se/image/upload/f_auto,t_ProductListLarge/products/bg_removed/61/06/92/61069225_PIPPI_PIPPI SPARKLE Tulle Dress_AW26-32_1.jpg",
    "https://media.ahlens.se/image/upload/f_auto,t_ProductList/products/bg_removed/61/06/92/61069225_PIPPI_PIPPI SPARKLE Tulle Dress_AW26-32_1.jpg"
  ],
  "category": "barn",
  "description": null,
  "rating": null,
  "reviewCount": null,
  "specs": { "color": "Pink" },
  "scrapedAt": "2026-09-10T09:09:47.484Z",
  "searchQuery": "klänning"
}
```

### Use cases

- **Price monitoring** -- track Åhléns' price changes over time on the brands and categories you sell against, including "was" price whenever an item is discounted.
- **Assortment research** -- Åhléns stocks fashion, home, beauty, kids and toys across dozens of own-label and third-party brands; see what it carries and at what price points.
- **Stock and availability tracking** -- `inStock`/`stockLevel` give a live read on which items are selling through, down to the color variant.
- **Market comparison** -- as Sweden's major mid-market department store chain, Åhléns is a useful comparison point against other Nordic multi-category retailers (Manor in Switzerland, Stockmann in Finland).

### Coverage

v1 covers the Swedish online storefront (`www.ahlens.se`, SEK pricing).

### Performance and cost

The scraper hits Åhléns' own Apptus eSales search API directly -- no browser rendering, no HTML parsing -- so it's fast. A run of 100 products typically completes in a few seconds. This actor charges $0.005 per run (start fee) plus $0.002 per result -- a 100-product run costs about $0.205. Your run's usage cost only settles after the run reports SUCCEEDED -- checking cost mid-run will undercount it.

### Limitations

- Keyword search only, matching Åhléns' own on-site search. It does not accept direct category or product URLs.
- The search API doesn't expose EAN/GTIN, product description, or rating/review data -- those fields always come back `null`. If you need them, they require a separate product-page fetch, which this v1 doesn't do.
- `category` is a single top-level site section slug (e.g. `"barn"` for kids), not a full breadcrumb path -- the search API doesn't return the full category tree.
- `originalPrice` equals `price` when an item isn't currently discounted -- there is no separate "on sale" boolean, compare the two fields yourself.
- v1 targets the Swedish storefront (SEK) only.

### Related scrapers

If you're covering European department-store and multi-category retail more broadly, also check out:

- [Manor Scraper](https://apify.com/studio-amba/manor-scraper) -- Swiss department store chain
- [Debenhams Scraper](https://apify.com/studio-amba/debenhams-scraper) -- UK relaunched department-store brand
- [Harrods Scraper](https://apify.com/studio-amba/harrods-scraper) -- UK luxury department store
- [Selfridges Scraper](https://apify.com/studio-amba/selfridges-scraper) -- UK luxury department store

### Maintained by Studio Amba

We run 700+ scrapers for European websites, and the priority is keeping every one of them working. Automated runs test this actor against the live site and verify the output is complete. When the website changes, the scraper usually gets repaired the same day, without you having to report anything.

### Need this data on a schedule, or a custom version?

We run this scraper as a managed service for businesses: scheduled runs, deduplication, delta detection, and delivery to your inbox, Google Sheets, or API, maintenance included. We can also build a custom version with your exact fields and filters, or combine multiple sources into one feed.

See [studioamba.dev/services](https://studioamba.dev/services/) or email <hello@studioamba.dev> for a free data sample.

### Support

Found an issue or need a different market covered? Open an issue on this actor's Apify Store page and we'll take a look.

# Actor input Schema

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

Search term to find products on ahlens.se, in Swedish (e.g. "klänning", "väska", "kastrull")

## `maxResults` (type: `integer`):

Maximum number of products to scrape.

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

Apify proxy configuration. ahlens.se's product search API (Apptus eSales) has no anti-bot challenge (verified live, plain curl with no headers succeeds), so the default automatic Apify proxy is sufficient.

## Actor input object example

```json
{
  "searchQuery": "klänning",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQuery": "klänning",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/ahlens-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 = {
    "searchQuery": "klänning",
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/ahlens-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 '{
  "searchQuery": "klänning",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/ahlens-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/ahlens-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/xLUHThKcISj4jmmhT/builds/SnPdoXLvvV3T20Ske/openapi.json
