Skip to content

List facets

GET/v1/facets

List the filter values within a scope.

Authorization
header · required
Bearer <Extralt API key>
limit
query · integer

Maximum suggestions returned independently for each facet dimension.

int32 · ≥ 1 · ≤ 100 · default 50
country
query · string

An assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.

pattern ^[A-Z]{2}$
currency
query · string
pattern ^[A-Z]{3}$
condition
query · OfferCondition
one of unknown · new · used · refurbished · like_new · very_good · good · acceptable
category_id
query · string
brand
query · string
store_id
query · string

Response

200 OK · application/json

Dataset-backed filter choices

brands
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0
categories
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0
conditions
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0
countries
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0
currencies
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0
stores
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0
variants
FacetOption[]
key
string
label
string
offers
integer
int64 · ≥ 0
variants
integer
int64 · ≥ 0

Errors

ErrorResponse

Errors that read the same on every endpoint are in Error codes.

400

Invalid scope or limit

422

scope_too_large: the scope exceeds a query budget; narrow the country, Store, category, brand or time window

Request · cURL
curl -X GET 'https://api.extralt.com/v1/facets' \
  -H "Authorization: Bearer $EXTRALT_API_KEY"
Response · 200
{
  "brands": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ],
  "categories": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ],
  "conditions": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ],
  "countries": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ],
  "currencies": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ],
  "stores": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ],
  "variants": [
    {
      "key": "aa-8-8",
      "label": "Apparel & Accessories > Shoes > Sneakers",
      "offers": 0,
      "variants": 0
    }
  ]
}