APIs / XXL Sport / Search

XXL Sport: Search

Search from XXL Sport as JSON. 1 credit per successful call.

GET /v1/xxl/search

Parameters

Send parameters in the query string.

Required Send query or category.

ParameterTypeRequiredAllowed values
marketstringOptionalSE
querystringOptionalUp to 200 characters
categorystringOptionalUp to 20 characters
min_pricenumberOptionalAny
max_pricenumberOptionalAny
sortstringOptionalRELEVANCE, PRICE_ASCENDING, PRICE_DESCENDING, RATING, DISCOUNT, NEWEST_FIRST
pageintegerOptionalAny
limitintegerOptionalAny

Example request

XXL Sport
GET/v1/xxl/search?market=SE&query=l%C3%B6parskor&sort=RELEVANCE&page=1
{
  "success": true,
  "data": {
    "totalHits": 697,
    "filtered_count": 60,
    "query": "löparskor",
    "sort": "RELEVANCE",
    "facets": [
      {
        "values": [
          {
            "id": "Barn",
            "label": "Barn",
            "selected": false,
            "count": 75
          },
          {
            "id": "Dam",
            "label": "Dam",
            "selected": false,
            "count": 275
          },
          {
            "id": "Herr",
            "label": "Herr",
            "selected": false,
            "count": 262
          }
        ],
        "sort": "ALPHABETICAL",
        "selectedCount": 0,
        "id": "custom.pim_mandatory_user_string",
        "label": "Användare",
        "type": "TEXT"
      },
      {
        "values": [
          {
            "id": "LEISURE & YOUTH",
            "label": "LEISURE & YOUTH",
            "selected": false,
            "count": 193
          },
          {
            "id": "OUTDOOR & HUNTING",
            "label": "OUTDOOR & HUNTING",
            "selected": false,
            "count": 6
          },
          {
            "id": "SPORTS, RUNNING & TRAINING",
            "label": "SPORTS, RUNNING & TRAINING",
            "selected": false,
            "count": 498
          }
        ],
        "sort": "ALPHABETICAL",
        "selectedCount": 0,
        "id": "department",
        "label": "Avdelning",
        "type": "TEXT"
      },
      {
        "values": [
          {
            "id": "Blå",
            "label": "Blå",
            "selected": false,
            "count": 92
          },
          {
            "id": "Brun",
            "label": "Brun",
            "selected": false,
            "count": 15
          },
          {
            "id": "Flerfärgad",
            "label": "Flerfärgad",
            "selected": false,
            "count": 12
          }
        ],
        "sort": "ALPHABETICAL",
        "selectedCount": 0,
        "id": "custom.localizedColorName",
        "label": "Färg",
        "type": "TEXT"
      }
    ],
    "categoryCodes": [
      {
        "facetId": "custom.categoryBreadcrumbCodes",
        "code": "140200",
        "name": "140200"
      },
      {
        "facetId": "custom.categoryBreadcrumbCodes",
        "code": "140202",
        "name": "140202"
      },
      {
        "facetId": "custom.categoryBreadcrumbCodes",
        "code": "140206",
        "name": "140206"
      }
    ],
    "products": [
      {
        "id": "1238554_1_Style",
        "styleKey": "1238554_1_Style",
        "groupId": "1238554",
        "brand": "Mizuno",
        "title": "Wave Rider 29, löparskor, herr",
        "price": 949,
        "originalPrice": 1899,
        "discount": 50.03,
        "currency": "SEK",
        "rating": 4.5,
        "inStock": true,
        "imageUrl": "https://cdn.xxl.fi/filespin/36781a7a5bc34c6695479c7d5e4cab0b",
        "imageUrls": [
          "https://cdn.xxl.fi/filespin/36781a7a5bc34c6695479c7d5e4cab0b",
          "https://cdn.xxl.fi/filespin/552cef63995e4649a1abec222c99b2b9",
          "https://cdn.xxl.fi/filespin/10c87d2335594707ab70cfe9d66e1bcf"
        ],
        "variants": [
          {
            "key": "5059882579239",
            "size": "40.5",
            "label": "40.5",
            "inStock": true,
            "stockNumber": 14,
            "price": 949,
            "originalPrice": 1899,
            "discount": 50.03,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          },
          {
            "key": "5059882579246",
            "size": "41",
            "label": "41",
            "inStock": true,
            "stockNumber": 25,
            "price": 949,
            "originalPrice": 1899,
            "discount": 50.03,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          },
          {
            "key": "5059882579253",
            "size": "42",
            "label": "42",
            "inStock": true,
            "stockNumber": 29,
            "price": 949,
            "originalPrice": 1899,
            "discount": 50.03,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          }
        ]
      },
      {
        "id": "1240207_1_Style",
        "styleKey": "1240207_1_Style",
        "groupId": "1240207",
        "brand": "Hoka",
        "title": "Bondi 9, löparskor, herr",
        "price": 1679,
        "originalPrice": 2399,
        "discount": 30.01,
        "currency": "SEK",
        "rating": 4.7,
        "inStock": true,
        "imageUrl": "https://cdn.xxl.fi/filespin/2e81f5b18c4e479d97f4edaea793292a",
        "imageUrls": [
          "https://cdn.xxl.fi/filespin/2e81f5b18c4e479d97f4edaea793292a",
          "https://cdn.xxl.fi/filespin/ee8d172dcbc4412c80f57d903d3904b4",
          "https://cdn.xxl.fi/filespin/1327e38a7cf74d67b78ce06d7d1a3782"
        ],
        "variants": [
          {
            "key": "197634739342",
            "size": "40.5",
            "label": "40.5",
            "inStock": true,
            "stockNumber": 15,
            "price": 1679,
            "originalPrice": 2399,
            "discount": 30.01,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          },
          {
            "key": "197634739373",
            "size": "41",
            "label": "41",
            "inStock": true,
            "stockNumber": 40,
            "price": 1679,
            "originalPrice": 2399,
            "discount": 30.01,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          },
          {
            "key": "197634739366",
            "size": "42",
            "label": "42",
            "inStock": true,
            "stockNumber": 119,
            "price": 1679,
            "originalPrice": 2399,
            "discount": 30.01,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          }
        ]
      },
      {
        "id": "1288820_1_Style",
        "styleKey": "1288820_1_Style",
        "groupId": "1288820",
        "brand": "Nike",
        "title": "Air Zoom Pegasus 42, löparskor, herr",
        "price": 1274,
        "originalPrice": 1274,
        "currency": "SEK",
        "inStock": true,
        "imageUrl": "https://cdn.xxl.no/filespin/50b46f39ecf74ebc9da77fbcad33f3c6",
        "imageUrls": [
          "https://cdn.xxl.no/filespin/50b46f39ecf74ebc9da77fbcad33f3c6",
          "https://cdn.xxl.no/filespin/674f20f91f5745e2bfe7007da707e1fb",
          "https://cdn.xxl.no/filespin/ee657573ef024494a15944f885e0a3a0"
        ],
        "variants": [
          {
            "key": "198729775863",
            "size": "41",
            "label": "41",
            "inStock": true,
            "stockNumber": 7,
            "price": 1274,
            "originalPrice": 1274,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          },
          {
            "key": "198729779021",
            "size": "42",
            "label": "42",
            "inStock": true,
            "stockNumber": 1,
            "price": 1274,
            "originalPrice": 1274,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          },
          {
            "key": "198729792556",
            "size": "42.5",
            "label": "42.5",
            "inStock": true,
            "stockNumber": 24,
            "price": 1274,
            "originalPrice": 1274,
            "currency": "SEK",
            "availability": [
              "…"
            ]
          }
        ]
      }
    ],
    "filters": {
      "market": "SE",
      "sort": "RELEVANCE",
      "page": 1,
      "limit": 60
    },
    "pagination": {
      "current_page": 1,
      "per_page": 60,
      "total_items": 697,
      "total_pages": 12,
      "has_more": true
    },
    "currency": "SEK"
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_5c6c5d4bfcc541e08852d6b022a198f2",
    "credits_charged": 1,
    "credits_remaining": 4840
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 6 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
totalHitsinteger
filtered_countinteger
categoryCodesobject[]
productsobject[]
paginationobject
currencystring