Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Audience
English French
English French

Piano Content API


The Piano Content API consists of three parts:

Configuration

In most cases, it is more convenient to set up and manage your widget configurations using the Piano Content User Interface, consulting the page on content settings objects when needed. But you may also use the API directly, e.g. from the command line.

First, you need a content configuration:

Then, you create a widget object using this configuration:

Several widgets may share the same content configuration.

The widget object may also specify the template and a style that should be used to "render" the widget:

Recommendations

The actual recommendations (in the form of JSON data) are provided by:

In most cases, however, there is no need to make direct requests to this API method (cf. Piano Content Integration Guide). For ad hoc testing and debugging, you may use:

Reports

Impression/click reports are provided by:

Last updated: