docsResourcesWeb API

Web API

Use the ZBR Web API to retrieve live function and trigger metadata for editor integrations, docs generation, and tooling.

Base URL

Base URL: https://zbrlang.vercel.app/api

Endpoints

EndpointData SourceDescription
/functions_listfunctions.jsonReturns the full list of available ZBR functions.
/functions/{name}functions.jsonReturns a specific function by name (for example /functions/Zabs).
/functions_tag_listfunctions_tag.jsonReturns function metadata organized by tags.
/triggers_listtriggers.jsonReturns the list of all supported event triggers.
/triggers/{name}triggers.jsonReturns a specific trigger by name (for example /triggers/onBanAdd).
/triggers_tag_listtriggers_tag.jsonReturns trigger metadata organized by tags.
/statsDynamicReturns total function, category, trigger counts, and ZBR version.

Usage

These endpoints are useful for building editor support, documentation tooling, and integration helpers that need up-to-date ZBR function or trigger definitions.

  • functions_list returns every function available in the current runtime.
  • functions/{name} returns a single function definition by name.
  • functions_tag_list groups functions by category/tag.
  • triggers_list returns every supported trigger event.
  • triggers/{name} returns a single trigger definition by name.
  • triggers_tag_list groups trigger metadata by tag for easier discovery.
  • stats returns live counts of functions, categories, triggers, and the latest ZBR version.

Visual Overview

For a visual overview of the web API, you can also check out the Web API Page.