获取可用新闻平台列表#
获取所有可用新闻来源平台的列表。返回的域名值可作为其他新闻接口的 platform 参数,用于按来源过滤新闻。
请求路径#
GET
https://web3.okx.com/api/v6/dex/market/social/news/platforms请求参数#
无需传入请求参数。
返回参数#
| 字段 | 类型 | 描述 |
|---|---|---|
| platforms | array of string | 可用的新闻平台域名列表 |
请求示例#
shell
curl --location --request GET 'https://web3.okx.com/api/v6/dex/market/social/news/platforms' \
--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": {
"platforms": [
"coindesk.com",
"cointelegraph.com",
"theblock.co",
"decrypt.co",
"cryptoslate.com",
"bitcoinmagazine.com",
"beincrypto.com",
"cryptobriefing.com",
"newsbtc.com",
"ambcrypto.com",
"u.today",
"cryptopotato.com"
]
}
}