> For the complete documentation index, see [llms.txt](https://docs.42.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.42.space/for-developers/rest-api-alpha/markets/get-category-by-slug.md).

# Get category by slug

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

## Get category by slug

> 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.

```json
{"openapi":"3.1.1","info":{"title":"FortyTwo Read API","version":"1.0"},"tags":[{"description":"GET /api/v1/markets/categories/{slug}","name":"get-category-by-slug"}],"servers":[{"url":"https://rest.ft.42.space/"}],"paths":{"/api/v1/markets/categories/{slug}":{"get":{"description":"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.","tags":["get-category-by-slug"],"summary":"Get category by slug","parameters":[{"schema":{"type":"string"},"description":"Category slug","name":"slug","in":"path","required":true},{"schema":{"type":"string"},"description":"BCP-47 locale for translated names (e.g. zh, es)","name":"locale","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/internal_handler.CategoryDetailResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}}}}}},"components":{"schemas":{"internal_handler.CategoryDetailResponse":{"type":"object","properties":{"id":{"type":"integer"},"image":{"type":"string"},"liveMarketCount":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"subcategories":{"type":"array","items":{"$ref":"#/components/schemas/internal_handler.SubcategoryNested"}},"translation":{"description":"Translated name for the locale requested via `?locale=`, or null when no `?locale=` was given or the locale is unavailable.","allOf":[{"$ref":"#/components/schemas/internal_handler.NameTranslation"}]}}},"internal_handler.SubcategoryNested":{"type":"object","properties":{"image":{"type":"string"},"liveMarketCount":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"topics":{"type":"array","items":{"$ref":"#/components/schemas/internal_handler.TopicNested"}},"translation":{"description":"Translated name for the locale requested via `?locale=`, or null when no `?locale=` was given or the locale is unavailable.","allOf":[{"$ref":"#/components/schemas/internal_handler.NameTranslation"}]}}},"internal_handler.TopicNested":{"type":"object","properties":{"image":{"type":"string"},"liveMarketCount":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"translation":{"description":"Translated name for the locale requested via `?locale=`, or null when no `?locale=` was given or the locale is unavailable.","allOf":[{"$ref":"#/components/schemas/internal_handler.NameTranslation"}]}}},"internal_handler.NameTranslation":{"description":"Localized taxonomy name for the requested locale.","type":"object","properties":{"name":{"type":"string"}}},"ft_market-service-v2_pkg_api.ErrorResponse":{"type":"object","properties":{"code":{"type":"integer"},"error":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.42.space/for-developers/rest-api-alpha/markets/get-category-by-slug.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
