Tags
Market tags power topic pages, related-topic discovery, and tag-filtered market lists. Tags are normalized to stable slugs, while display names keep human-friendly casing.
Get tag by id (Gamma shape)
PublicGET
/tags/{id}Returns a single tag as a bare Gamma-compatible tag object.
Path parameters
idstringpathrequiredTag id or slug.
Request
cURL
curl "https://api.majjha.fun/tags/{id}"Response
200 OK
{
"id": "tag_btc",
"slug": "bitcoin",
"label": "Bitcoin",
"forceShow": false,
"publishedAt": "2026-06-04T09:00:00+00:00",
"createdBy": 0,
"updatedBy": 0,
"createdAt": "2026-06-04T09:00:00+00:00",
"updatedAt": "2026-06-04T09:00:00+00:00",
"forceHide": false,
"isCarousel": false,
"activeEventsCount": 24
}Get tag by slug (Gamma shape)
PublicGET
/tags/slug/{slug}Returns a single tag as a bare Gamma-compatible tag object.
Path parameters
slugstringpathrequiredTag slug, e.g. `bitcoin`.
Request
cURL
curl "https://api.majjha.fun/tags/slug/{slug}"Response
200 OK
{
"id": "tag_btc",
"slug": "bitcoin",
"label": "Bitcoin",
"forceShow": false,
"publishedAt": "2026-06-04T09:00:00+00:00",
"createdBy": 0,
"updatedBy": 0,
"createdAt": "2026-06-04T09:00:00+00:00",
"updatedAt": "2026-06-04T09:00:00+00:00",
"forceHide": false,
"isCarousel": false,
"activeEventsCount": 24
}Get tag
PublicGET
/api/tags/{slug}Returns a tag plus related tags that co-occur on the same markets.
Path parameters
slugstringpathrequiredTag slug, e.g. `bitcoin`.
Request
cURL
curl "https://api.majjha.fun/api/tags/{slug}"Response
200 OK
{
"tag": {
"id": "tag_btc",
"slug": "bitcoin",
"name": "Bitcoin",
"market_count": 24,
"created_at": "2026-06-04T09:00:00Z",
"updated_at": "2026-06-04T09:00:00Z"
},
"related": [
{ "id": "tag_crypto", "slug": "crypto", "name": "Crypto", "market_count": 18 }
]
}