Skip to content
Scrappa Get API key
Allegro API 1-20 credits / request

Allegro Categories API Documentation

GET https://scrappa.co/api/allegro/categories

Allegro Categories API Documentation List the 13 Allegro department roots with id and alias (PL, 1 credit), or send a category id or alias to get its path and its sub-categories with offer counts (20 credits). The ids and aliases work unchanged as the category of the search route. Cost: 1 credit for the root list, 20 credits for one category tree. Failed requests are not billed.

Allegro Categories API Documentation 1-20 credits / request

Endpoint

Request preview
GET
https://scrappa.co/api/allegro/categories
Auth header
x-api-key
Cost
1-20 credits / request
Response preview
200 OK
{
    "data": {
        "path": [
            {
                "id": "42540aec-367a-4e5e-b411-17c09b08e41f",
                "name": "Elektronika",
                "alias": "elektronika"
            },
            {
                "id": "4",
                "name": "Telefony i Akcesoria",
                "alias": "telefony-i-akcesoria"
            },
            {
...

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.

2 optional filters available.

category string Optional

Category id or alias, for example 165 or elektronika. Leave empty for the 13 department roots (PL only, 1 credit). Department roots exist on PL only. A category without sub-categories returns an empty, unbilled answer.

Example value example
country string Optional

Allegro storefront: PL (allegro.pl, PLN), CZ (allegro.cz, CZK) or SK (allegro.sk, EUR). Default PL.

Example value US

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": {
        "path": [
            {
                "id": "42540aec-367a-4e5e-b411-17c09b08e41f",
                "name": "Elektronika",
                "alias": "elektronika"
            },
            {
                "id": "4",
                "name": "Telefony i Akcesoria",
                "alias": "telefony-i-akcesoria"
            },
            {
                "id": "165",
                "name": "Smartfony i telefony kom\u00f3rkowe",
                "alias": "smartfony-i-telefony-komorkowe-165"
            }
        ],
        "country": "PL",
        "category": {
            "id": "165",
            "name": "Smartfony i telefony kom\u00f3rkowe",
            "alias": "smartfony-i-telefony-komorkowe-165"
        },
        "children": [
            {
                "id": "4937",
                "name": "Alcatel",
                "alias": "smartfony-i-telefony-komorkowe-alcatel-4937",
                "offers_count": 127
            },
            {
                "id": "48978",
                "name": "Apple",
                "alias": "smartfony-i-telefony-komorkowe-apple-48978",
                "offers_count": 9999
            },
            {
                "id": "250568",
                "name": "Asus",
                "alias": "smartfony-i-telefony-komorkowe-asus-250568",
                "offers_count": 39
            },
            {
                "id": "257985",
                "name": "Blackview",
                "alias": "smartfony-i-telefony-komorkowe-blackview-257985",
                "offers_count": 441
            },
            {
                "id": "253022",
                "name": "Cat Phones",
                "alias": "smartfony-i-telefony-komorkowe-cat-phones-253022",
                "offers_count": 33
            },
            {
                "id": "258336",
                "name": "Cubot",
                "alias": "smartfony-i-telefony-komorkowe-cubot-258336",
                "offers_count": 295
            }
        ]
    },
    "meta": {
        "credits": 20,
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}

Errors

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

422

Validation Error

A query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "category": [
            "The category is the numeric id or the alias of a category, for example 165 or elektronika."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

No category has this id or alias. This response is not billable.

{
    "meta": {
        "billable": false
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "Allegro has no category with this id."
    },
    "success": false
}
502

Upstream Unavailable

Allegro did not answer in time or blocked the lookup. Retry. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Allegro is temporarily unavailable. Please retry."
    },
    "success": false
}

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.