Skip to main content

Dynamic API

Updated over a week ago

This feature requires the Dynamic Shortcodes plugin, which is included in your license.

The Dynamic API element lets you fetch remote JSON data and display it dynamically inside your Bricks layouts. This feature is especially useful when integrating with external APIs or displaying content from headless sources.

Settings

Once added to your layout, the Dynamic API blueprint provides the following setting under the Data section:

  • Dynamic HTML: A WYSIWYG editor that accepts content with Dynamic Shortcodes. By default, it includes:

    {data:result|dump}

    This placeholder dumps the full decoded JSON response, which you can then customize using shortcodes to access specific values within the response array.

Usage Summary

  1. Insert the Dynamic API element into your Bricks layout.

  2. In the Dynamic HTML field, write your template using Dynamic Shortcodes

  3. Preview the layout to see live API data rendered within your design.

Did this answer your question?