web3baseweb3base

Filter dimension groups by module (chain / Twitter / YouTube) with stable keys and i18n labels.

Get category dimension groups

GET /api/open/category-groups

Returns filter dimension groups by module (e.g. chain “layer/ecosystem”, Twitter “account type/verified”).

Use with GET /api/open/categories to:

  • Build sidebar filters (each group = one collapsible block)
  • Group category items by groupKey on the client

Endpoint

GET /api/open/category-groups

Query parameters

ParameterTypeRequiredDescription
modulestringYesModule: chain, twitter, or youtube

Tip: Fetch once per module on init and cache the result.

Response

200 OK, application/json:

FieldTypeDescription
modulestringSame as request
groupsobject[]Dimension groups, ordered by priority ascending

Each item in groups (CategoryGroupDimension):

FieldTypeDescription
keystringStable dimension key, e.g. ecosystem, chain_layer
i18nobjectNames per locale, e.g. { "en": "Ecosystem", "zh-hans": "生态" }
prioritynumberSort order; lower = earlier

Errors

HTTP statusWhen
400Missing or invalid module
429Open API rate limit (60/300 per minute)
500Server error

Example request

curl -s "https://www.web3base.ai/api/open/category-groups?module=chain" | jq
curl -s "https://www.web3base.ai/api/open/category-groups?module=twitter" | jq

Example response

{
  "module": "chain",
  "groups": [
    {
      "key": "ecosystem",
      "i18n": {
        "en": "Ecosystem",
        "zh-hans": "生态",
        "zh-hant": "生態系"
      },
      "priority": 1
    }
  ]
}

Use key for icons/layout and i18n[locale] for the current language title.

← Back to API overview