Skip to main content

Get Latest Banner

HTTP request Returns the latest published Banner for the specified type.

  • GET /api/v3/content/banners/latest

Weight(IP): 1

Request headers

HeaderRequiredDescription
localeNoBanner 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

ParameterTypeRequiredDescription
typeStringYesBanner type: News, Wiki, Learn main, Learn details, News details bottom, learn pop up, learn pop up detail, or News details text.

Request example

curl "https://api-spot.weex.com/api/v3/content/banners/latest?type=News" \
-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
idLongBanner ID.
documentIdStringDocument ID.
titleStringBanner title.
descriptionStringBanner description.
ctaStringCall-to-action text.
linkStringTarget URL.
typeStringBanner type.
thumbnailObjectBanner image metadata. Omitted when no image exists.
publishedAtLongPublication time in UTC milliseconds.
createdAtLongCreation time in UTC milliseconds.
updatedAtLongUpdate time in UTC milliseconds.

Response example

{
"id": 1001,
"documentId": "banner-news-latest",
"title": "Latest Crypto News",
"description": "Stay updated with the latest Web3 market news.",
"cta": "Read more",
"link": "https://www.weex.com/news",
"type": "News",
"thumbnail": {
"id": 9001,
"documentId": "banner-image-doc",
"name": "news-banner.png",
"url": "https://example.com/news-banner.png",
"width": 1200,
"height": 480,
"mime": "image/png",
"size": 245.5
},
"publishedAt": 1780993501641,
"createdAt": 1780993356022,
"updatedAt": 1780993519507
}