For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get category by slug

GET /api/v1/markets/categories/{slug}

Get category by slug

get

Returns a single category by its URL slug, including all nested subcategories and the topics within each subcategory. Slugs are always derived from the source name and are locale-independent. Pass ?locale= to receive translated name values; falls back to source when a translation is unavailable.

Path parameters
slugstringRequired

Category slug

Query parameters
localestringOptional

BCP-47 locale for translated names (e.g. zh, es)

Responses
200

OK

application/json
idintegerOptional
imagestringOptional
liveMarketCountintegerOptional
namestringOptional
slugstringOptional
get/api/v1/markets/categories/{slug}
GET /api/v1/markets/categories/{slug} HTTP/1.1
Host: rest.ft.42.space/
Accept: */*
{
  "id": 1,
  "image": "text",
  "liveMarketCount": 1,
  "name": "text",
  "slug": "text",
  "subcategories": [
    {
      "image": "text",
      "liveMarketCount": 1,
      "name": "text",
      "slug": "text",
      "topics": [
        {
          "image": "text",
          "liveMarketCount": 1,
          "name": "text",
          "slug": "text",
          "translation": {
            "name": "text"
          }
        }
      ],
      "translation": {
        "name": "text"
      }
    }
  ],
  "translation": {
    "name": "text"
  }
}

Last updated