---
title: "Categories Cross"
method: GET
path: "/api/categories/cross"
---

# Categories Cross

`GET /api/categories/cross`

## Request

- Base URL: `https://smartcrawler.io` (the document declares no server; this is the origin it was published from)
- URL: `https://smartcrawler.io/api/categories/cross`
- Auth: none declared

跨站点品类汇总。优先从 Category 表取，缺数据时降级到 Product.category_path 去重。
返回 {site: [{name, category_path, product_count, source, parent_id, level, category_id}], ...}。
parent_id / level / category_id 用于前端建树（无 Category 表数据时为 null）。

## Query parameters

- `sites` string

## Headers

- `X-Workspace-ID` string, nullable
- `authorization` string
- `X-API-Key` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent.md) · [All operations](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent/llms.txt) · [OpenAPI document](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent/revisions/a0eb313934e4?raw)
