获取新闻文章详情#

根据文章唯一 ID 获取单篇新闻的完整内容。

请求路径#

GET
https://web3.okx200.com/api/v6/dex/market/social/news/detail

请求参数#

参数名类型是否必填描述
articleIdstring新闻文章的唯一 ID。通过 /social/news/latest、/social/news/by-symbol、/social/news/search 等列表接口响应中的 articles[].id 字段获取。必填。
languagestring响应语言,BCP-47 格式,如 en_US、zh_CN。默认 en_US。

返回参数#

字段类型描述
articlesarray成功时固定为 1 条数据
> idstring文章唯一 ID,与列表接口中的 articles[].id 一致
> titlestring文章标题
> summarystring文章摘要
> contentstring文章完整正文
> sourceUrlstring文章原文链接
> sourcestring新闻来源的第一个平台域名
> timestampstring文章发布时间,Unix 毫秒时间戳
> tokenSymbolsarray文章中提及的代币符号列表
> importancestring文章重要程度:1=high(高)、2=medium(中)、3=low(低)
> tokenSymbolSentimentsarray本文中各代币的情绪分析列表
>> sentimentstring情绪标签:bullish(看多)/ bearish(看空)/ neutral(中性)
>> tokenSymbolstring代币符号

请求示例#

shell
curl --location --request GET 'https://web3.okx200.com/api/v6/dex/market/social/news/detail?articleId=NEWS_20241018_001&language=zh_CN' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'

返回示例#

json
{
    "code": "0",
    "msg": "",
    "data": {
        "articles": [
            {
                "id": "NEWS_20241018_001",
                "title": "比特币突破 7 万美元,机构需求强劲",
                "summary": "比特币本月首次突破 7 万美元大关,受到强劲机构买入和 ETF 净流入的推动。",
                "content": "比特币周三创下月度新高,突破 7 万美元关口,机构投资者持续向现货比特币 ETF 注入资金。多方数据显示,ETF 周二单日净流入高达 8 亿美元,总管理资产规模超过 500 亿美元。分析师将此次价格上涨归因于多重因素:临近减半事件、美联储政策信号带来的宏观顺风以及企业财库采购比特币的趋势持续扩大。多家大型金融机构重申对比特币进入四季度的看涨观点。",
                "sourceUrl": "https://coindesk.com/markets/2024/10/18/bitcoin-surges-past-70000",
                "source": "coindesk.com",
                "timestamp": "1697630501000",
                "tokenSymbols": ["BTC"],
                "importance": "high",
                "tokenSymbolSentiments": [
                    {
                        "tokenSymbol": "BTC",
                        "sentiment": "bullish"
                    }
                ]
            }
        ]
    }
}