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
| Endpoint | Data Source | Description |
|---|---|---|
/functions_list | functions.json | Returns the full list of available ZBR functions. |
/functions/{name} | functions.json | Returns a specific function by name (for example /functions/Zabs). |
/functions_tag_list | functions_tag.json | Returns function metadata organized by tags. |
/triggers_list | triggers.json | Returns the list of all supported event triggers. |
/triggers/{name} | triggers.json | Returns a specific trigger by name (for example /triggers/onBanAdd). |
/triggers_tag_list | triggers_tag.json | Returns trigger metadata organized by tags. |
/stats | Dynamic | Returns 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_listreturns every function available in the current runtime.functions/{name}returns a single function definition by name.functions_tag_listgroups functions by category/tag.triggers_listreturns every supported trigger event.triggers/{name}returns a single trigger definition by name.triggers_tag_listgroups trigger metadata by tag for easier discovery.statsreturns 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.