Klarna

Get Klarna product price history

Get a Klarna product's lowest price for each day of the last three months, with the store that had it.

GET/v1/klarna/product/price-history
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
productIdstringrequiredquery

Klarna product id (`3211644574`) or product page URL (`https://www.klarna.com/us/shopping/pl/cl52/3211644574/Game-Consoles/Sony-PlayStation-5-Slim-Digital-Edition-1TB/`). Ids are the same in every country. A URL's country is used when `country` is not given.

min 1 chars · max 500 chars

countrystringoptionalquery

Two-letter country code of the Klarna shopping site, e.g. `US`, `GB`, `DE` or `SE`. Default: `US`. Prices are in that country's currency.

Response fields
26

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when Klarna has no product with this id in this country.

one of: found, not_found

dataproductId
string

The product id asked for.

The Klarna shopping site the answer is from.

datamarketcountry
string

Two-letter country code, e.g. `US`.

datamarketsiteUrl
string

The country's Klarna shopping site, e.g. `https://www.klarna.com/us/shopping/`.

dataperiod
string

The window the history covers: the last three months, as the site shows it.

one of: 3_months

datagranularity
string

One point per day: that day's lowest price.

one of: day

datacurrency
stringnullable

ISO 4217 currency of every price; null with no history.

datalowest
numbernullable

Lowest price in the period; null with no history.

datahighest
numbernullable

Highest daily lowest price in the period.

Oldest day first.

datapoints[]date
string

The day, `YYYY-MM-DD`, in the site's own time zone.

datapoints[]at
stringnullable

When the price was read, ISO 8601.

datapoints[]price
number

Lowest price that day, in `currency`.

datapoints[]storeId
stringnullable

Store with that price.

datapoints[]storeName
stringnullable

Its name.

Stores that had the lowest price on some day.

datastores[]id
string
datastores[]name
stringnullable

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v1/klarna/product/price-history?productId=3211644574" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Klarna price history for a product.