Klarna API

Get Klarna data as clean JSON with one key: 18 endpoints, 2 credits per call, the same response shape as every other platform.

What you get#

Onekey exposes Klarna as 18 endpoints behind one API key: 3 endpoints return one record (data is an object) and 15 endpoints return a list (data is an array). Every answer uses the same envelope (success, data, metadata, error), the cost is reported in metadata.credits_charged, and fields are mapped onto the unified schema so the code you write for Klarna also works for the rest of the e-commerce & marketplaces category.

Endpoints#

EndpointWhat it doesParametersCreditsStatus
categoriesList root shopping categories on Klarna.-2beta needs a pack
categories_childrenList sub-categories of a Klarna category.category_id*2beta needs a pack
categoryBrowse products in a Klarna category.category_id*, cursor2beta needs a pack
category_filtersFilters available for a Klarna category.category_id*2beta needs a pack
category_guideBuying-guide content for a Klarna category.category_id*2beta needs a pack
category_keywordsPopular search keywords for a Klarna category.category_id*2beta needs a pack
productA Klarna product by id.product_id, url2beta needs a pack
product_compareCompare two Klarna products side by side.product_id*, product_id_2*2beta needs a pack
product_offersMerchant offers for a Klarna product.product_id, url2beta needs a pack
product_price_historyPrice history of a Klarna product.product_id, url2beta needs a pack
reviewsUser reviews for a Klarna product.product_id, url, cursor2beta needs a pack
reviews_overviewReview totals and score distribution of a Klarna product.product_id, url2beta needs a pack
reviews_proProfessional reviews of a Klarna product.product_id, url, cursor2beta needs a pack
searchSearch Klarna products by keyword.query*2beta needs a pack
search_suggestionsSearch suggestions for Klarna.query*2beta needs a pack
store_filtersFilters available on a Klarna store page.id*2beta needs a pack
store_productsProducts listed by a Klarna store.id*, cursor2beta needs a pack
storesList shopping stores on Klarna.cursor2beta needs a pack

A * marks a required parameter. Each endpoint name links to its reference page with the full parameter table, caching window and a recorded response.

Make a request#

This calls klarna.category_guide (2 credits, beta). Replace YOUR_API_KEY with your key; sign up, no card. 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.

curl "https://api.onekey.dev/v1/klarna/category_guide?category_id=cl94" \
  -H "x-api-key: YOUR_API_KEY"

Fields you get back#

These unified fields come back from Klarna, with the same names as on every other platform. The count is how many of its 18 mapped endpoints return the field; a field the source lacks is null, never missing. 6 platform-specific fields (ext.<name>) come on top, documented on each endpoint page.

FieldTypeEndpoints
entity.namestring12
entity.idstring11
entity.urlURL9
entity.stats.ratingnumber7
listing.currencystring7
listing.pricenumber7
entity.descriptionstring6
entity.stats.ratingCountinteger6
media.thumbnailUrlURL6
listing.brandstring5
content.createdAtISO 8601 date3
content.textstring3
content.titlestring3
entity.typestring3
author.displayNamestring2
content.idstring2
engagement.votesinteger2
entity.slugstring2
content.urlURL1
listing.availableboolean1
listing.conditionstring1
listing.sellerstring1

The full schema is in Unified schema.

Pricing#

Every Klarna endpoint costs 2 credits per call. Free when served from cache (0.2 credit for a cached response over 100 KB). Invalid, failed or not-found calls are not charged. See pricing for credit packs.