Skip to content
Scrappa Get API key
XXL Sport API 1 credit / request

XXL Sport Search API Documentation

GET https://scrappa.co/api/xxl/search

XXL Sport Search API Documentation Search the public XXL Sport catalog for Sweden by Swedish query words or a category code from the site. Filter by price range, sort and page. Price is checked on each returned item, so a page can be short. Every product has a style key, a group id, a numeric price with currency, per-size prices and full-size image URLs. The style key works unchanged in the product route and the group id in the reviews route. One search costs 1 credit. Empty and failed requests are not billed. Not affiliated with XXL Sport.

XXL Sport Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/xxl/search
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "sort": "RELEVANCE",
        "query": "l\u00f6parskor",
        "facets": [],
        "currency": "SEK",
        "products": [
            {
                "id": "1240207_1_Style",
                "url": "https://www.xxl.se/p/example-1240207_1_Style",
                "brand": "Example",
                "price": 8999,
                "title": "Running shoe",
                "rating": 4.7,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

8 optional filters available.

market string Optional

SE only. NO and FI return 422 until their production soak passes.

Example value US
query string Optional

Swedish search words. Use this or category.

Example value coffee shops
category string Optional

Numeric category code from XXL Sport. Take categoryCodes from this response or from a product. Use this or query.

Example value example
min_price number Optional

Lowest price in SEK. Checked on returned items.

Example value 10
max_price number Optional

Highest price in SEK. Checked on returned items.

Example value 10
sort string Optional

RELEVANCE (default), PRICE_ASCENDING, PRICE_DESCENDING, RATING, DISCOUNT or NEWEST_FIRST.

Example value relevance
page integer Optional

1-based page, up to 10.

Example value 1
limit integer Optional

Products per page, up to 60, default 60.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "sort": "RELEVANCE",
        "query": "l\u00f6parskor",
        "facets": [],
        "currency": "SEK",
        "products": [
            {
                "id": "1240207_1_Style",
                "url": "https://www.xxl.se/p/example-1240207_1_Style",
                "brand": "Example",
                "price": 8999,
                "title": "Running shoe",
                "rating": 4.7,
                "groupId": "1240207",
                "inStock": true,
                "currency": "SEK",
                "discount": 10,
                "imageUrl": "https://example.com/image.jpg",
                "styleKey": "1240207_1_Style",
                "variants": [
                    {
                        "size": "40.5",
                        "label": "40.5",
                        "price": 1679,
                        "inStock": true,
                        "currency": "SEK",
                        "stockNumber": 24,
                        "originalPrice": 2399
                    }
                ],
                "imageUrls": [
                    "https://example.com/image.jpg"
                ],
                "originalPrice": 9999
            }
        ],
        "totalHits": 704,
        "pagination": {
            "has_more": true,
            "per_page": 60,
            "total_items": 704,
            "total_pages": 12,
            "current_page": 1
        },
        "categoryCodes": [
            {
                "code": "140202",
                "name": "Running",
                "facetId": "custom.categoryBreadcrumbCodes",
                "hitCount": 222
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid. Not billable.

502

Upstream Unavailable

The source did not answer or sent unreadable data. Not billable.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.