> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapebadger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopping Brand Categories

> One level of the Naver Shopping brand-ranking category tree — DIV1 roots or the DIV2 children of a parent id.

Walk the **brand-ranking category tree** that scopes [`/shopping/brand-rank`](https://docs.scrapebadger.com/api-reference/endpoint/naver/shopping-brand-rank). With no `parent_id` it returns the DIV1 roots; pass an 8-digit `parent_id` to return its DIV2 children.

**Credits:** 5

## Authorization

**X-API-Key** `string` *required*

Your ScrapeBadger API key.

## Query Parameters

**parent\_id** `string`

An 8-digit DIV1 category id to list its DIV2 children. Omit for the roots.

## Response

**depth** `string`

`DIV1` or `DIV2`.

**parent\_id** `string`

Echo of the requested parent, or `null` for roots.

**result\_count** `integer`

**categories** `Category[]`

Categories at this level.

**Category**

**category\_id** `string`

**category\_name** `string`

**image\_url** `string`

## Example

```bash cURL theme={null}
curl "https://scrapebadger.com/v1/naver/shopping/brand-categories?parent_id=50000000" \
  -H "X-API-Key: YOUR_API_KEY"
```

```javascript Node.js theme={null}
const res = await fetch(
  "https://scrapebadger.com/v1/naver/shopping/brand-categories?" +
    new URLSearchParams({"parent_id": "50000000"}),
  { headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const data = await res.json();
```

```python Python theme={null}
import requests

res = requests.get(
    "https://scrapebadger.com/v1/naver/shopping/brand-categories",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"parent_id": "50000000"},
)
data = res.json()
```

```json Response theme={null}
{
  "depth": "DIV2",
  "parent_id": "50000000",
  "result_count": 9,
  "categories": [
    {
      "category_id": "50000167",
      "category_name": "여성의류",
      "image_url": "https://shopping-phinf.example.net/brandcat/50000167.jpg"
    }
  ]
}
```

## Errors

| Status | Meaning |
| - | - |
| `422` | Naver served a challenge instead of content — **not billed**. Retry; it succeeds. |
| `502` | Unexpected upstream failure — **not billed**. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.