Skip to content
Scrappa Get API key
Subito.it API 1 credit/request

Subito.it Categories API Documentation

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

Subito.it Categories API Documentation List every Subito.it category with its integer key, name, slug and macro group. Use the key as c in search. Entries with is_group true are macro groups (for example Motori) and carry no macrocategory_id. Category 2 (Auto) is listed but searched through the Subito Motori API.

Subito.it Categories API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/subito/categories
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "count": 45,
        "categories": [
            {
                "key": 1,
                "name": "MOTORI",
                "slug": "motori",
                "is_group": true
            },
            {
                "key": 2,
                "name": "Auto",
                "slug": "auto",
...

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": {
        "count": 45,
        "categories": [
            {
                "key": 1,
                "name": "MOTORI",
                "slug": "motori",
                "is_group": true
            },
            {
                "key": 2,
                "name": "Auto",
                "slug": "auto",
                "weight": 1,
                "is_group": false,
                "macrocategory_id": 1
            },
            {
                "key": 5,
                "name": "Accessori Auto",
                "slug": "accessori-auto",
                "weight": 2,
                "is_group": false,
                "macrocategory_id": 1
            },
            {
                "key": 3,
                "name": "Moto e Scooter",
                "slug": "moto-e-scooter",
                "weight": 3,
                "is_group": false,
                "macrocategory_id": 1
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}

Errors

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

503

Invalid Source Response

Subito answered with a shape that no longer matches the documented contract. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "categories"
    },
    "error": {
        "code": "PARSER_DRIFT",
        "message": "Subito returned an unexpected response. Please retry later."
    },
    "success": false
}
503

Service Unavailable

The upstream service is temporarily unavailable. Please retry shortly.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "categories"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Subito service 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.