市场新闻详情
内部接口财经新闻 News · 市场新闻详情
内部接口:按 ID 获取单条市场新闻的完整记录。
内部接口,面向平台自身的数据链路,不对外承诺稳定性。
接口地址
GET /cn/market/news/{news_id}完整地址:
https://api.databull.cn/cn/market/news/{news_id}接口说明
内部接口:按 ID 获取单条市场新闻;ID 不存在时返回 404。
请求参数
参数位置类型必填默认说明
news_id路径integer是—新闻 ID(整数,从 1 开始);不小于 1返回字段
字段类型说明
codenumber业务状态码,0 表示成功dataobject单条新闻记录,字段与市场新闻列表的 items 一致idnumber新闻主键 IDdigeststring新闻摘要正文tagsarray分类标签列表,如 ["公司", "融资"]relation_levelnumber市场关联度,0~10;越高表示与个股/大盘越相关bullish_levelnumber利好程度;正值偏利好,负值偏利空relations_stocksarray关联个股,形如 [{"code": "000001", "name": "平安银行"}]relations_importednumber内部流转标记:是否已导入个股监控news_timestring新闻发布时间,ISO 8601(北京时间,无时区后缀)news_typestring新闻类型,如 normal / report / newsnews_md5string内部去重哈希,同一新闻不会重复入库sourcesstring新闻来源标识urlstring原文链接接口示例
cURL
curl "https://api.databull.cn/cn/market/news/1" \
-H "Authorization: Bearer $DATABULL_API_KEY"Python
import requests
url = "https://api.databull.cn/cn/market/news/1"
params = {}
headers = {"Authorization": "Bearer YOUR_API_KEY"}
resp = requests.get(url, params=params, headers=headers, timeout=10)
resp.raise_for_status()
print(resp.json())响应示例
JSON
{
"code": 0,
"data": {
"id": 1024,
"digest": "央行开展 3000 亿元 MLF 操作。",
"relation_level": 3,
"bullish_level": 1,
"relations_stocks": [
{
"code": "000001",
"name": "平安银行"
}
],
"news_time": "2026-06-26T09:31:00",
"news_type": "normal",
"sources": "tonghuashun",
"url": "https://example.com/news/1024"
}
}错误码
状态码触发条件
404ID 对应的新闻不存在
Esc