---
title: "Clas Ohlson API: Swedish product search, prices as JSON"
description: "Clas Ohlson API for Swedish product search, prices, ratings, review texts, store stock and shelf locations as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/clas-ohlson
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Clas Ohlson

1 credit per call 10 endpoints 14 datapoints 

# Clas Ohlson API

Clas Ohlson API for Swedish product search, prices, ratings, review texts, store stock and shelf locations as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Clas Ohlson

GET /v1/clas-ohlson/search?text=lampa 

```
{
  "success": true,
  "data": {
    "items": [
      {
        "code": "36-7687",
        "name": "LED-lampor adventsljusstake E10, 10-55 V, 4-pack, Northlight",
        "description": "4 varmvita topplampor med klart, räfflat glas. Lampa till adventsljusstake eller....",
        "currentPrice": {
          "amount": 59.9,
          "currency": "SEK"
        },
        "formattedCurrentPrice": "59,90 kr",
        "comparisonPrice": {
          "amount": 14.975,
          "currency": "SEK"
        },
        "inStock": true,
        "rating": 4,
        "reviews": 2307,
        "imageUrl": "https://images.clasohlson.com/medias/sys_master/h99/hbc/68916824735774.png",
        "mainCategoryId": "2535",
        "mainCategoryName": "Reservlampor julbelysning",
        "mainCategoryPath": "/Jul/Julbelysning/Reservlampor-julbelysning/c/2535",
        "url": "https://www.clasohlson.com/se/LED-lampor-adventsljusstake-E10,-10-55-V,-4-pack,-Northlight/p/36-7687"
      },
      {
        "code": "36-9922-1",
        "name": "Uppladdningsbar LED-lampa E14/E27 med fjärrkontroll",
        "description": "Trådlös ljuskälla för adventsstjärnor, fönsterlampor etc med E14-/E27-sockel. Up....",
        "currentPrice": {
          "amount": 199.9,
          "currency": "SEK"
        },
        "formattedCurrentPrice": "199,90 kr",
        "inStock": true,
        "rating": 4,
        "reviews": 28,
        "imageUrl": "https://images.clasohlson.com/medias/sys_master/h7e/h77/68915574341662.png",
        "mainCategoryId": "2533",
        "mainCategoryName": "Adventsstjärnor & julstjärnor",
        "mainCategoryPath": "/Jul/Julbelysning/Adventsstjärnor-&-julstjärnor/c/2533",
        "url": "https://www.clasohlson.com/se/Uppladdningsbar-LED-lampa-E14-E27-med-fjarrkontroll/p/36-9922-1"
      },
      {
        "code": "36-7453",
        "name": "Batteridriven ljuskälla LED",
        "description": "Trådlös LED-lampa med timer och band för upphängning. Montera den batteridrivna ....",
        "currentPrice": {
          "amount": 59.9,
          "currency": "SEK"
        },
        "oldPrice": {
          "amount": 79.9,
          "currency": "SEK"
        },
        "formattedCurrentPrice": "59,90 kr",
        "formattedOldPrice": "79,90 kr",
        "inStock": false,
        "rating": 3,
        "reviews": 1590,
        "imageUrl": "https://images.clasohlson.com/medias/sys_master/ha0/h52/68915565789214.png",
        "mainCategoryId": "2533",
        "mainCategoryName": "Adventsstjärnor & julstjärnor",
        "mainCategoryPath": "/Jul/Julbelysning/Adventsstjärnor-&-julstjärnor/c/2533",
        "url": "https://www.clasohlson.com/se/Batteridriven-ljuskalla-LED/p/36-7453",
        "percentageDiscountBandrole": "-25%"
      }
    ],
    "pagination": {
      "current_page": 1,
      "per_page": 20,
      "total_items": 2454,
      "total_pages": 123,
      "has_more": true
    },
    "filters": {
      "text": "lampa",
      "page": 1
    },
    "facets": {
      "fixed": [
        {
          "header": "Pris",
          "key": "sortingPrice",
          "items": [
            "…",
            "…"
          ]
        },
        {
          "header": "Lagerstatus",
          "key": "stockStatus",
          "items": [
            "…"
          ]
        },
        {
          "key": "saleCampaignStatus"
        }
      ],
      "relevant": [
        {
          "header": "Sockel",
          "key": "lamp_base",
          "items": [
            "…",
            "…",
            "…"
          ],
          "sortedItems": [
            "…",
            "…",
            "…"
          ]
        },
        {
          "header": "Dimbar",
          "key": "dimmable",
          "items": [
            "…",
            "…"
          ]
        },
        {
          "header": "Form",
          "key": "shape",
          "items": [
            "…",
            "…",
            "…"
          ],
          "sortedItems": [
            "…",
            "…",
            "…"
          ]
        }
      ]
    },
    "currency": "SEK"
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_0aefa4bc4b3f481da279802855199331",
    "credits_charged": 1,
    "credits_remaining": 4967
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | code string | name string | description string | currentPrice object | formattedCurrentPrice string | comparisonPrice object | inStock boolean | rating integer | reviews integer | imageUrl url | mainCategoryId string | mainCategoryName string | mainCategoryPath string | url url |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 36-7687 | LED-lampor adventsljusstake E10, 10-55 V, 4-pack, Northlight | 4 varmvita topplampor med klart, räfflat glas. Lampa till adventsljusstake eller.... | {2 fields} | 59,90 kr | {2 fields} | true | 4 | 2307 | https://images.clasohlson.com/medias/sys\_master/h99/hbc/68916824735774.png | 2535 | Reservlampor julbelysning | /Jul/Julbelysning/Reservlampor-julbelysning/c/2535 | https://www.clasohlson.com/se/LED-lampor-adventsljusstake-E10,-10-55-V,-4-pack,-Northlight/p/36-7687 |
| 2 | 36-9922-1 | Uppladdningsbar LED-lampa E14/E27 med fjärrkontroll | Trådlös ljuskälla för adventsstjärnor, fönsterlampor etc med E14-/E27-sockel. Up.... | {2 fields} | 199,90 kr | — | true | 4 | 28 | https://images.clasohlson.com/medias/sys\_master/h7e/h77/68915574341662.png | 2533 | Adventsstjärnor & julstjärnor | /Jul/Julbelysning/Adventsstjärnor-&-julstjärnor/c/2533 | https://www.clasohlson.com/se/Uppladdningsbar-LED-lampa-E14-E27-med-fjarrkontroll/p/36-9922-1 |
| 3 | 36-7453 | Batteridriven ljuskälla LED | Trådlös LED-lampa med timer och band för upphängning. Montera den batteridrivna .... | {2 fields} | 59,90 kr | — | false | 3 | 1590 | https://images.clasohlson.com/medias/sys\_master/ha0/h52/68915565789214.png | 2533 | Adventsstjärnor & julstjärnor | /Jul/Julbelysning/Adventsstjärnor-&-julstjärnor/c/2533 | https://www.clasohlson.com/se/Batteridriven-ljuskalla-LED/p/36-7453 |

Recorded from our API · 3 items shown · 14 datapoints per item GET /v1/clas-ohlson/search?text=lampa

14 datapoints

### Identity

-   name string
-   mainCategoryId string
-   mainCategoryName string
-   mainCategoryPath string

### Contact

-   imageUrl url
-   url url

### Reputation

-   rating integer
-   reviews integer

### Price

-   currentPrice object
-   formattedCurrentPrice string
-   comparisonPrice object

### Other

-   code string
-   description string
-   inStock boolean

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/clas-ohlson/search?text=lampa" \
  -H "X-API-Key: $API_KEY"
```

Clas Ohlson · 10 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/clas-ohlson/category`](https://perceptlayer.com/apis/clas-ohlson/category) | `id` +4 optional | `items` `pagination` `currency` | 1 credit |
| [GET `/v1/clas-ohlson/ids`](https://perceptlayer.com/apis/clas-ohlson/ids) | none +2 optional | `url` `code` | 1 credit |
| [GET `/v1/clas-ohlson/product`](https://perceptlayer.com/apis/clas-ohlson/product) | `code` +1 optional | `productId` `reviewKey` `url` `product` `images` `stores` | 1 credit |
| [GET `/v1/clas-ohlson/questions`](https://perceptlayer.com/apis/clas-ohlson/questions) | `query` | `title` `created_at` `responses` | 1 credit |
| [GET `/v1/clas-ohlson/review-list`](https://perceptlayer.com/apis/clas-ohlson/review-list) | `query` +1 optional | `author` `score` `score_max` `created_at` `text` `language` +4 more | 1 credit |
| [GET `/v1/clas-ohlson/reviews`](https://perceptlayer.com/apis/clas-ohlson/reviews) | `key` | `key` `score` `average_rating` `review_count` `question_count` `distribution` +2 more | 1 credit |
| [GET `/v1/clas-ohlson/search`](https://perceptlayer.com/apis/clas-ohlson/search) | `text` +1 optional | `items` `pagination` `currency` | 1 credit |
| [GET `/v1/clas-ohlson/shelf`](https://perceptlayer.com/apis/clas-ohlson/shelf) | `product_id` `store_id` | `productId` `storeId` `shelves` | 1 credit |
| [GET `/v1/clas-ohlson/stock`](https://perceptlayer.com/apis/clas-ohlson/stock) | `product_id` | `productId` `quantityInStock` `stockLevelIndicator` `inStock` | 1 credit |
| [GET `/v1/clas-ohlson/store-stock`](https://perceptlayer.com/apis/clas-ohlson/store-stock) | `product_id` `store_ids[]` | `productId` `stores` `store_count` `requested_store_ids` | 1 credit |

Overview

## About the Clas Ohlson API

## What you can get

The Clas Ohlson API returns Clas Ohlson Sweden product, review and stock data as JSON through 10 endpoints. Prices are in SEK.

-   **Search and browse:** `search` takes a `text`, with `page`. `category` takes a category `id`, with `page`, `facets`, `sortProperty` (sortingPrice, custRating, newArrivalStartDate or name\_sv) and `sortOrder` (asc or desc). `ids` lists product codes and URLs, with `offset` and `limit`.
-   **Products:** `product` takes a `code` (such as `36-7453`), with `slug`.
-   **Reviews:** `reviews` takes a review `key` and returns the rating summary. `review-list` takes the `query` that `reviews` returns, with `offset`. `questions` takes its question `query`.
-   **Stock:** `stock` takes a `product_id`. `store-stock` takes a `product_id` and `store_ids[]`. `shelf` takes a `product_id` and a `store_id` and returns where the product sits in that store.

The recorded search for "lampa" returns `items`, each with `code`, `name`, `description`, `currentPrice`, `oldPrice`, `inStock`, `rating`, `reviews`, `imageUrl`, `mainCategoryName`, `url` and `percentageDiscountBandrole`, plus `pagination` and `facets`. It matched 2,454 products over 123 pages of 20; the first, a battery LED light, was 59.90 SEK, down from 79.90 (-25%).

## How a call works

Ids chain from search to stock: `GET /v1/clas-ohlson/search?text=lampa` with your key in the `X-API-Key` header returns each product's `code`. `product` takes that `code` and returns the `productId` (such as `367453000`), the `reviewKey` and a list of `stores`. Pass `productId` to `stock`, `store-stock` and `shelf` as `product_id`, with store ids from `product`. Pass `reviewKey` to `reviews` as `key`; it returns a `review_query` for `review-list` and a `question_query` for `questions`. Page reviews with `offset` or the returned `next_page_query`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track Clas Ohlson prices and discounts across a category

`Use the Clas Ohlson API to track Clas Ohlson prices and discounts across a category` 

### Check stock in specific stores, and the shelf and area to find it on

`Use the Clas Ohlson API to check stock in specific stores, and the shelf and area to find it on` 

### Collect Swedish review texts with verified-buyer flags

`Use the Clas Ohlson API to collect Swedish review texts with verified-buyer flags` 

### Chart a product's rating distribution from \`reviews\`

`` Use the Clas Ohlson API to chart a product's rating distribution from `reviews` `` 

FAQ

## Questions

**How much does the Clas Ohlson API cost?**

Each successful call costs 1 credit, on every endpoint, and each page is one call. Failed calls cost nothing.

**Which id goes where?**

\`product\` takes the short \`code\` from search (\`36-7453\`). Stock endpoints take the long \`productId\` that \`product\` returns (\`367453000\`). \`reviews\` takes the \`reviewKey\` (\`Pr367453000\`), and \`review-list\` and \`questions\` take the query strings \`reviews\` returns.

**What do the stock endpoints return?**

\`stock\` returns \`quantityInStock\`, a \`stockLevelIndicator\` and \`inStock\` online; the recording showed 0 and Red. \`store-stock\` returns \`storeStock\` per store; store 26, Borås Knalleland, had 51. \`shelf\` returns the \`shelfTypeName\`, \`shelfNumbers\` and \`areaName\`.

**Are review and question texts included?**

Reviews come with \`text\`, \`score\`, \`author\`, \`language\` and \`verified\_buyer\`. The recorded product had 1,594 reviews averaging 3.2. Questions come back with titles and dates, but without answer texts.

**Do I need a Clas Ohlson account?**

No. You call this Clas Ohlson API with your Perceptlayer key in the \`X-API-Key\` header, with no Clas Ohlson login.

**Is this the official Clas Ohlson API?**

No. Perceptlayer is an independent service and is not affiliated with Clas Ohlson. It returns Clas Ohlson data as JSON with a Perceptlayer key, so there is no Clas Ohlson developer account, app review or partner approval to get first. It only reads data: if Clas Ohlson has an official API and you need to act on your own Clas Ohlson account, such as posting, managing orders or reading private data, use that one.

**Should I build a Clas Ohlson scraper instead?**

You can, but a Clas Ohlson scraper is code you maintain: page changes break it, requests get blocked, and Clas Ohlson's terms govern how you collect data. The Clas Ohlson API gives you 10 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Clas Ohlson API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
