getNewsItem
获取一条资讯
一条已发布的新闻。已撤回项返回 404。无需认证。source 与 source_url 始终存在。
get
/v2/news/{id}无需凭据(匿名可调 —— 不需要 API 密钥)
参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
id 必填 | string | path | 十进制资讯条目 id。 |
响应
idstring必填资讯条目 id。
objectstring必填类型判别字段。恒为 news_item。
枚举news_itempublished_atstringdate-time 必填RFC 3339 UTC。
sourceobject必填display_namestring必填不得用作判别条件。
namestring必填来源键。
objectstring必填类型判别字段。恒为 news_source。
枚举news_source
source_urlstringuri 必填指向原始条目的规范链接。
summarystring必填来源提供的导语。不得用作判别条件。
titlestring必填不得用作判别条件。
请求示例
cURL
curl "https://api.nextmoe.dev/v2/news/value"