Data Analytics API (REST API)
Access Data Analytics widgets underlying data via API
Last updated
Was this helpful?
Access Data Analytics widgets underlying data via API
Last updated
Was this helpful?
For every Data Analytics widget, the underlying data can be queried via a provided . Integration to third-party applications works out fast and easy.
The REST API makes generated event data available to third-party applications, retrieved from your Data Analytics widgets.
Once you configure a widget, find the item "API call" in the side menu.
In the GitHub repository below you can find example code that highlights how to integrate the data into your own application. It showcases how to handle the required authentication as well as how to perform queries.
You can see a Data Analytics widget for bicycle counting as an example below. The respective type of widget (Traffic Counting) is selected, data is aggregated per day, split by object class and direction, and we filter for bicycles only.
API Request
The API-Call option shows the respective GET request for this data, as you can see below.
API Response (shortened)
The provided dialog pop up shows detailed information on how the API request for the generated data of this particular widget looks like. Copy/paste the command into a terminal and execute it. You can directly test the call within the dialog, including the response format, by clicking on "Try it out!" which does not require the usage of a terminal.
The provided access token is temporary. For a permanent integration into third-party applications, please request a permanent access token .
We strictly follow the documented by Microsoft. There are several that you can use.
The REST API is based on Cube.js. More information on the functionality of the API can be found in the .