Klarna

List Klarna sub-categories

List Klarna's top-level categories, or the categories and sub-categories below one, each with the ones a level further down.

GET/v1/klarna/categories/children
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
categorystringquery

Klarna category whose sub-categories to list: a tree such as `t19` (Gaming & Entertainment), a product list such as `cl165` (Game Controllers), or either's page URL. Leave it out for the top-level categories.

min 1 chars · max 500 chars

countrystringquery

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
29

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when Klarna has no category with this id in this country; a category with none below it is `found` with an empty list.

one of: found, not_found

The category asked for; null for the top level.

dataparentid
string

Category id, e.g. `t19` or `cl52`.

dataparentname
stringnullable

Category name.

dataparenturl
stringnullable

Category page URL.

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/`.

Its categories, each with the ones below it.

datacategories[]id
string

Category id: `t19` (a tree), `cl52` (a product list) or `100003492-100014243` (a sub-category of a list).

datacategories[]kind
string

`tree` (pass it here for its categories), `list` (pass it as `category` to `/v1/klarna/category`) or `subcategory` (pass it as `subcategory` with its list).

one of: tree, list, subcategory

datacategories[]name
stringnullable

Category name.

datacategories[]url
stringnullable

Category page URL.

datacategories[]imageUrl
stringnullable

Category image URL.

datacategories[]productCount
integernullable

Products in it, when Klarna gives the count.

The categories one level below it.

datacategories[]children[]id
string

Category id: `t19` (a tree), `cl52` (a product list) or `100003492-100014243` (a sub-category of a list).

datacategories[]children[]kind
string

`tree` (pass it here for its categories), `list` (pass it as `category` to `/v1/klarna/category`) or `subcategory` (pass it as `subcategory` with its list).

one of: tree, list, subcategory

datacategories[]children[]name
stringnullable

Category name.

datacategories[]children[]url
stringnullable

Category page URL.

datacategories[]children[]imageUrl
stringnullable

Category image URL.

datacategories[]children[]productCount
integernullable

Products in it, when Klarna gives the count.

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/categories/children?category=t19" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Klarna's categories below a category, or the top-level ones.