Getting Dashboard Data Via API
Question: Is there an API to retrieve dashboard-specific data (widgets, filters etc.)?
Solution: Of course there is - the Dashboards API v1.0
For example, you can retrieve a dashboard by ID:
Which will return a JSON containing various fields such as datasource (the cube used), filters, and layout.
The layout is comprised of cells, and alongside the UX properties like the cell's size, you can find the widget ID for each cell. Subsequently, you can find the dashboard's widgets like so:
Which will return an array of all widget objects, or a specific widget like so:
Note: when specifying a widget's or dashboard's ID you need the "oid" property and not the "_id" property!
You can find more information about these APIs in our Online API Reference / V1 / Dashboards
0 comments