Skip to content
Scrappa Get API key
Zara API 1 credit / request

Zara Categories API Documentation

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

Zara Categories API returns the categories of one country as a flat list. Each category has category_id, name, section, the parent names in path, level, whether it has subcategories and the page url. Use the category_id as category_id in /api/zara/search. Send section (WOMAN, MAN, KID or HOME) to get one section; without it all four sections are returned, which is a large answer. Menu dividers, titles and entries without a name or page are left out. A category that several sections link appears once and sections names all of them; the section filter matches any of them. Some top-level entries group subcategories and may list no products. The tree is cached for six hours. A successful request costs 1 credit.

Zara Categories API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/zara/categories
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "total": 410,
        "country": "us",
        "section": "MAN",
        "categories": [
            {
                "url": "https://www.zara.com/us/en/man-l534.html",
                "name": "MAN",
                "path": [],
                "level": 0,
                "section": "MAN",
                "sections": [
                    "MAN"
...

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.

country string Optional

Country: us (default), de, es, fr or uk. Prices use the currency of the country.

Example value US
section string Optional

Optional: WOMAN, MAN, KID or HOME. Without it all four sections are returned.

Example value example

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": {
        "total": 410,
        "country": "us",
        "section": "MAN",
        "categories": [
            {
                "url": "https://www.zara.com/us/en/man-l534.html",
                "name": "MAN",
                "path": [],
                "level": 0,
                "section": "MAN",
                "sections": [
                    "MAN"
                ],
                "category_id": "1885841",
                "has_subcategories": true
            },
            {
                "url": "https://www.zara.com/us/en/man-jeans-l659.html",
                "name": "JEANS",
                "path": [
                    "MAN",
                    "COLLECTION"
                ],
                "level": 2,
                "section": "MAN",
                "sections": [
                    "MAN"
                ],
                "category_id": "2432130",
                "has_subcategories": true
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}

Errors

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

404

Not Found

The category tree was not found. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "categories"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
422

Validation Error

A parameter is missing or invalid, or a filter cannot be honoured. This response is not billable.

{
    "errors": {
        "country": [
            "The country must be one of us, de, es, fr or uk."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Zara could not be reached, or it returned data that does not match the request (another section, another page, a block page). This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "categories"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Zara could not be reached. Please retry shortly."
    },
    "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.