Skip to main content

Get Article List by Coin

HTTP request Returns a paginated Web3 content list associated with a coin.

  • GET /api/v3/content/articles/listByCoin

Weight(IP): 1

Request headers

HeaderRequiredDescription
localeNoContent locale. Default: en_US. Supported values: 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.

Request parameters

ParameterTypeRequiredApplies toDescription
sectionStringYesAllOne content section: wiki, news, learn, or questions.
symbolStringConditionalAllCoin symbol, for example BTC. At least one of symbol and slug is required.
slugStringConditionalAllCoin slug, for example btc. At least one of symbol and slug is required.
startEnableDateStringNonewsInclusive lower bound of enabledDate, as a Unix timestamp in seconds or milliseconds. Ignored for other sections.
endEnableDateStringNonewsInclusive upper bound of enabledDate, as a Unix timestamp in seconds or milliseconds. When omitted, results do not go beyond the current time. Ignored for other sections.
withCountBooleanNoAllWhether to return total and pages. Default: false.
pageIntegerNoAllPage number, starting from 1. Default: 1.
pageSizeIntegerNoAllNumber of items per page. Default: 25; maximum: 200.
populateThumbnailBooleanNowiki, news, learnWhether to return thumbnail. Default: false. Ignored for questions.
populateTagListsBooleanNoAllWhether to return tagLists. Default: false.
populateCoinsBooleanNoAllWhether to return coinsMaps. Default: false.

Request example

curl "https://api-spot.weex.com/api/v3/content/articles/listByCoin?section=learn&symbol=BTC&page=1&pageSize=10&withCount=true&populateThumbnail=true&populateTagLists=true&populateCoins=true" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale: en_US" \
-H "Content-Type: application/json"

Response parameters

FieldTypeDescription
totalLongTotal records. May be null when withCount=false.
pageIntegerCurrent page number.
pageSizeIntegerPage size.
pagesIntegerTotal pages. May be null when withCount=false.
hasNextPageBooleanWhether another page is available.
itemsArticleListItem[]Article items. Fields are documented in Get Article List.

Article bodies are not returned. Every item contains the complete 30-field ArticleListItem union documented in Get Article List. Fields that do not apply to the selected section are returned as null; they are not omitted.

Response example

{
"total": 154,
"page": 1,
"pageSize": 10,
"pages": 16,
"hasNextPage": true,
"items": [
{
"id": 1714,
"documentId": "vvcry6rt2d8bt5e4kgaaxkv7",
"v4Id": null,
"section": "learn",
"title": "What Is Bitcoin?",
"summary": null,
"level": "Beginner",
"contentKey": "learn-bitcoin",
"titleEn": "What Is Bitcoin?",
"thumbnail": null,
"tagLists": [],
"coinsMaps": [
{
"id": 1,
"documentId": "btc-coin-map",
"slug": "btc",
"symbol": "BTC",
"name": "Bitcoin",
"icon": "https://example.com/btc.png",
"type": "Tokens",
"locale": "en_US"
}
],
"publishedAt": 1780993501641,
"createdAt": 1780993356022,
"updatedAt": 1780993519507
}
]
}