---
title: "Data Coverage"
method: GET
path: "/api/coverage"
---

# Data Coverage

`GET /api/coverage`

## Request

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

每站点数据覆盖率：fetched URL / sitemap 总 URL.

优先用 fetched_urls 表（每次 fetch 都记录 · 含 4xx/5xx/parse_none）
回退 Product.product_url（旧路径 · 只算成功落库的 unique SKU）。

Perf: 30s in-memory cache · N+1 Product.count() 改成单 GROUP BY (chen-mj 反馈页面慢).

## Query parameters

- `include_hidden` boolean: 是否包含 hidden_sites（默认排除）

## 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)
