新时空 API
方法: GET
路径: /api/v1/news/:id
描述: 查询指定新闻的详情,支持多个 ID(逗号分隔)。
{
"status": "success",
"data": {
"article_id": "123",
"language": "zh-cn",
"title": "新闻标题",
"description": "新闻描述",
"content": "新闻内容",
"tags": "标签1,标签2",
"keywords": ["关键词1", "关键词2"],
"authors": ["作者1", "作者2"],
"category": "分类名称",
"dataType": "news",
"url": "https://www.newtimespace.com/zh-cn/article/123",
"pubDate": "2026-01-13 12:00:00",
"pubDateTZ": "UTC",
"date": "2026-01-13",
"time": "12:00:00",
"updated_at": "2026-01-13 13:00:00",
"word_count": 500,
"reading_time": 3,
"is_breaking_news": false,
"sentiment": "neutral",
"related_articles": [],
"geo_location": "",
"source": {
"id": "",
"name": "NewTimeSpace",
"url": "",
"country": "",
"icon": ""
},
"image": {
"url": "",
"alt": "",
"caption": "",
"source": "",
"credit": ""
},
"video": {
"url": null,
"thumbnail": "",
"duration": "",
"source": "",
"credit": ""
}
}
},
"pagination": {
"page": 1,
"limit": 10,
"total": 100,
"pages": 10
}
}
参数
| 参数 | 类型 | 必填 | 描述 | 默认值 |
|---|---|---|---|---|
articleIds |
string | 是 | 文章 ID(逗号分隔,如 "123,456")。 | '' |
language |
string | 否 | 语言(zh-cn, zh-hk, en) | zh-cn |
format |
string | 否 | 返回格式(json 或 xml) | json |
状态码
错误处理
附加信息