> 完整文档索引见 [llms.txt](https://docs.wanduanapi.com/llms.txt)。本站每个文档页均提供 Markdown 镜像；当前页面的 Markdown 版本见 [此处](https://docs.wanduanapi.com/problems/date-range-too-large.md)。

# 日期区间跨度过大

| 字段 | 值 |
| --- | --- |
| type | `https://docs.wanduanapi.com/problems/date-range-too-large` |
| code | `DATE_RANGE_TOO_LARGE` |
| title | 日期区间跨度过大 |
| HTTP 状态 | 400 |
| 可重试 | 否，拆分区间后再请求 |

单次日期区间查询超过 366 天。该上限用于保证接口响应时间的可预期性，避免单次请求的响应体过大。

## 修复方式

将请求拆分为多个不超过 366 天的闭区间（例如按年或按半年切分），由调用方合并各段结果。查询允许跨年，只需单次请求的跨度不超过上限。

```json
{
  "type": "https://docs.wanduanapi.com/problems/date-range-too-large",
  "title": "日期区间跨度过大",
  "status": 400,
  "detail": "日期区间跨度不能超过 366 天",
  "code": "DATE_RANGE_TOO_LARGE"
}
```

REST 返回以上 Problem Details。MCP 工具返回 `isError=true`，文本以 `DATE_RANGE_TOO_LARGE:` 开头。相关错误：[日期区间无效](./invalid-date-range.md)、[日期超出支持范围](./date-out-of-supported-range.md)。
