API interface

The Alpsolut Widgets API provides two ways for you to render widgets.

Single widget API

This is the simplest way to render a widget. It requires you to provide the widget name and the widget configuration. The syntax is as follows:

/{widget_id}?{widget_param=value}&{widget_param=value}&...&token=your_token

Checkout the section for a specific widget to know its parameters.

Composable API

This is the most flexible way to render multiple widgets with the same request. This has the advantage of being able to synchronize different widgets between each other. Check the Composable API page for the full options. The syntax is as follows:

/compose?widgets=chart_id:{chart_id},{widget_param:value},{widget_param:value},...;widget_id:{widget_id},{widget_param:value},{widget_param:value},...&token=your_token
Please noteWhile every widget can be rendered using the Single widget API, not all widgets can be composed together with the Composable API.