名称 | 描述 | 类型 | 需要 | 默认 |
---|---|---|---|---|
Accept |
响应数据格式。默认格式为img/png
Accepted Values: [
image/png ,image/jpeg ]
|
String | image/png | |
Accept-Language |
返回数据中使用的首选语言代码。如果指定语言的翻译本不可用,则默认为英语可通过查询参数query或使用Accept-Language头来应用。
en —— 英语 zh —— 中文 ru —— 俄语 id —— 印尼语 jp —— 日语
Accepted Values: [
en ,zh ,ru ,id ,jp ]
|
String | en |
名称 | 描述 | 类型 | 需要 | 默认 |
---|---|---|---|---|
format |
响应数据格式。默认值为png
Accepted Values: [
png ,jpeg ]
|
String | png | |
lang |
返回数据中将使用的首选语言代码。如果指定语言的翻译本不可用,则默认为英语可通过查询参数query或使用Accept-Language头来应用。
en—— 英语 zh—— 中文 ru—— 俄语 id—— 印尼语 jp—— 日语
Accepted Values: [
en ,zh ,ru ,id ,jp ]
|
String | en | |
token | 访问API密钥。可通过查询参数token或使用Authorization头来使用 | String | ||
start_date | 限制将返回时间点的开始日期。 | String | ||
end_date | 限制将返回时间点的结束日期。 | String | ||
forecast_only | 如果为真,结果将仅包含带有预测的数列 | Boolean | false | |
with_release_only | 如果为真,结果将仅包含带有发布进度的数列 | Boolean | false | |
with_replacements_only | 如果为真,结果将仅包含带有建议的数列 | Boolean | false | |
with_observations_only |
If it is true result will not contain series without observations
|
Boolean | false | |
with_continuous_only |
If set to true results will contain only series with available historical extensions
|
Boolean | false | |
width | 图像宽度 | Number | ||
height | 图像高度 | Number | ||
period | 数列时间点掩码。示例:10y, 20m, 12d, 4w | Number | ||
type |
可视化类型
Accepted Values: [
chart ,line_chart ,spline_chart ,step_line_chart ,scatter_chart ,area_chart ,stacked_area_chart ,column_chart ,stacked_column_chart ,bar_chart ,stacked_bar_chart ,pie_chart ,map ,world_map ,africa_map ,asia_map ,europe_map ,europe_without_russia_map ,european_union_map ,middle_east_map ,north_america_map ,oceania_map ,south_america_map ,china_map ,russia_disputed_territories_map ,india_map ,heatmap ,histogram ,table ]
|
String | chart |
All API calls have response size limit of 10MB! If you are planning to request a bulky item collection, please consider using the corresponding API request parameters to limit your response.
状态码 | 描述 | 类型 |
---|---|---|
200 | 可视化图像 | String |
400 | 输入参数不正确 | BadRequest |
401 | 授权错误。 | AuthorizationError |
403 | 用户权限不正确。 | PermissionsError |
404 | 找不到请求的实体。 | NotFound |
415 | 不支持的数据格式。仅支持Only json、xml、csv。 | UnsupportedMedia |
429 | Too many requests were send or limit exceeded. | TooManyRequests |
500 | 内部服务器错误。 | InternalError |