获取文章详情
HTTP request 获取 Web3 文章的本地化正文和完整元数据。
此接口仅对白名单 UID 开放。如需开通访问权限,请联系 WEEX BD 申请。
- GET
/api/v3/content/articles/detail
权重(IP): 1
请求头
| 请求头 | 是否必须 | 描述 |
|---|---|---|
locale | 否 | 用于本地化内容及 articleUrl 的语言,默认 en_US。可选值:ar_AR、az_AZ、de_DE、en_US、es_419、es_AR、es_ES、fa_IR、fr_FR、in_ID、it_IT、ja_JP、pl_PL、pt_BR、pt_PT、ru_RU、uk_UK、vi_VN、zh_CN、zh_TW。 |
请求参数
| 参数名 | 类型 | 是否必须 | 适用板块 | 描述 |
|---|---|---|---|---|
section | String | 是 | 全部 | 一次仅支持一个值:wiki、news、learn、questions。 |
documentId | String | 条件必填 | 全部 | 文档 ID;两个 ID 均传时优先使用该字段。 |
v4Id | String | 条件必填 | 全部 | 兼容旧版本数据的 ID;与 documentId 至少传一个。 |
populateThumbnail | Boolean | 否 | wiki、news、learn | 是否返回 thumbnail,默认 false;questions 会忽略该参数。 |
populateTagLists | Boolean | 否 | wiki、learn、questions | 是否返回 tagLists,默认 false;news 会忽略该参数。 |
populateCoins | Boolean | 否 | 全部 | 是否返回 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"
返回参数
详情接口包含获取文章列表中的全部文章元数据,并额外返回:
| 字段名 | 类型 | 适用板块 | 描述 |
|---|---|---|---|
body | String | 全部 | HTML 格式正文;learn 的 content 字段统一映射为 body。 |
articleUrl | String | 全部 | 服务端生成的 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"
}