跳到主要内容

获取文章详情

HTTP request 获取 Web3 文章的本地化正文和完整元数据。

此接口仅对白名单 UID 开放。如需开通访问权限,请联系 WEEX BD 申请。

  • GET /api/v3/content/articles/detail

权重(IP): 1

请求头

请求头是否必须描述
locale用于本地化内容及 articleUrl 的语言,默认 en_US。可选值:ar_ARaz_AZde_DEen_USes_419es_ARes_ESfa_IRfr_FRin_IDit_ITja_JPpl_PLpt_BRpt_PTru_RUuk_UKvi_VNzh_CNzh_TW

请求参数

参数名类型是否必须适用板块描述
sectionString全部一次仅支持一个值:wikinewslearnquestions
documentIdString条件必填全部文档 ID;两个 ID 均传时优先使用该字段。
v4IdString条件必填全部兼容旧版本数据的 ID;与 documentId 至少传一个。
populateThumbnailBooleanwikinewslearn是否返回 thumbnail,默认 falsequestions 会忽略该参数。
populateTagListsBooleanwikilearnquestions是否返回 tagLists,默认 falsenews 会忽略该参数。
populateCoinsBoolean全部是否返回 coinsMaps,默认 false

请求示例

curl "https://api-spot.weex.com/api/v3/content/articles/detail?section=wiki&documentId=p9k2hraavuh05kfwq4ctsz84&populateThumbnail=true&populateTagLists=true&populateCoins=true" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale: zh_CN" \
-H "Content-Type: application/json"

返回参数

详情接口包含获取文章列表中的全部文章元数据,并额外返回:

字段名类型适用板块描述
bodyString全部HTML 格式正文;learncontent 字段统一映射为 body
articleUrlString全部服务端生成的 WEEX 文章返链。

返回示例

{
"id": 4960955,
"documentId": "p9k2hraavuh05kfwq4ctsz84",
"v4Id": null,
"section": "wiki",
"title": "iShares Core MSCI EAFE 代币化 ETF(Ondo)价格预测",
"summary": "本文提供 IEFAON 的市场展望和价格预测。",
"contentKey": null,
"enabled": true,
"enabledDate": 1780993402765,
"category": "price-prediction",
"imgCategory": "Price Prediction",
"link": null,
"sourceSite": null,
"outerPic": null,
"originalSourceUrl": null,
"priority": null,
"date": null,
"level": null,
"outerId": "wordPress_wiki_130881263710491",
"outerLocaleId": 130881263710491,
"sourceLang": null,
"titleEn": "iShares Core MSCI EAFE Tokenized ETF (Ondo) Price Prediction",
"translation": true,
"translationStatus": "Translated",
"thumbnail": null,
"tagLists": [],
"coinsMaps": [],
"publishedAt": 1780993501641,
"createdAt": 1780993356022,
"updatedAt": 1780993519507,
"body": "<p>本文提供完整的市场展望分析。</p>",
"articleUrl": "https://www.weex.com/zh-CN/wiki/article/ishares-core-msci-eafe-tokenized-etf-ondo-price-prediction-p9k2hraavuh05kfwq4ctsz84"
}