Apidog allows you to programmatically render API response data as HTML. This is useful for turning JSON data into tables, charts, or images directly within the Visualize tab of the response panel.How to Visualize Data#
1.
Add Script: In the Post Processors, add a Custom Script.
2.
Use pm.visualizer.set(): Define an HTML template and pass data to it.
3.
View Result: Send the request and switch to the Visualize tab in the response section.
API Reference#
pm.visualizer.set(template, data, options)#
template (string): HTML string. Supports Handlebars syntax. You can include <style> and <script> tags. data (object, optional): Data object to bind to the template.
options (object, optional): Handlebars compilation options.
pm.getData(callback)#
This function is available inside the template's <script> tag. It retrieves the data passed from pm.visualizer.set. Modified atΒ 2026-01-14 09:10:00