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.
Headers
Get your API keyAPI key (`sfk_...`)
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
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.
Endpoint-specific response payload.
`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.
Category id, e.g. `t19` or `cl52`.
Category name.
Category page URL.
The Klarna shopping site the answer is from.
Two-letter country code, e.g. `US`.
The country's Klarna shopping site, e.g. `https://www.klarna.com/us/shopping/`.
Its categories, each with the ones below it.
Category id: `t19` (a tree), `cl52` (a product list) or `100003492-100014243` (a sub-category of a list).
`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
Category name.
Category page URL.
Category image URL.
Products in it, when Klarna gives the count.
The categories one level below it.
Category id: `t19` (a tree), `cl52` (a product list) or `100003492-100014243` (a sub-category of a list).
`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
Category name.
Category page URL.
Category image URL.
Products in it, when Klarna gives the count.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
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
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.