Shopee API endpoint
Returns the full public category/navigation tree from Shopee's credential-free `api/v4/pages/get_category_tree` JSON. Public, credential-free endpoint.
/shopee/categoriesPublic endpoint. Credential-free: backed by Shopee's
api/v4/pages/get_category_tree JSON. Unlike the search/PDP family, this
endpoint needs no cookie, no login and no af-ac-enc-dat anti-content header;
it is fetched over a browser-impersonated HTTP profile because Shopee still
rejects a bare Go/Mozilla/5.0 client with error 90309999.
Query parameters:
region (optional, default my) — one of my, sg, id, th, vn, ph, tw, br, mx, co, cl.Response includes region, total_roots, and a nested categories tree. Each
node has category_id, parent_category_id, name, display_name, image,
level, and children.
| Field | Filled in, of 25 checked | Values in the sample |
|---|---|---|
| category_id | 25 | |
| name | 25 | “Mobile & Accessories” and 24 other values |
| display_name | 25 | |
| image | 25 | cf.shopee.com.my |
| level | 25 | 1 |
| children | 24 | median 11 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| region | string | No | Shopee region: my, sg, id, th, vn, ph, tw, br, mx, co, cl (default my) Allowed values: my, sg, id, th, vn, ph, tw, br, mx, co, cl. | my | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/shopee/categories?region=my" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"region": "my",
"total_roots": 1,
"categories": [
{
"category_id": 11000979,
"parent_category_id": 0,
"name": "Mobile & Accessories",
"display_name": "Mobile & Accessories",
"image": "https://cf.shopee.com.my/file/7ea3e07f",
"level": 1,
"children": [
{
"category_id": 11000989,
"parent_category_id": 11000979,
"name": "Audio",
"display_name": "Audio",
"image": "https://cf.shopee.com.my/file/childhash",
"level": 2
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/shopee.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | shopee.CategoriesResponse | No | ||||
| data.categories | array | No | ||||
| data.categories[].category_id | integer | No | 11000979 | |||
| data.categories[].children | array | No | ||||
| data.categories[].display_name | string | No | Mobile & Accessories | |||
| data.categories[].image | string | No | ||||
| data.categories[].level | integer | No | 1 | |||
| data.categories[].name | string | No | Mobile & Accessories | |||
| data.categories[].parent_category_id | integer | No | ||||
| data.region | string | No | my | |||
| data.total_roots | integer | No | 25 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/shopee/categories?region=my" \
-H "x-api-key: $CRAWLORA_API_KEY"