Ensure your Role has the permission to Export KPI data, see the image below:
https://demo.pipware.net/api/v2/BulkData/kpis?IncludeKpis=true&IncludeActuals=true&IncludeForecasts=true&IncludeTargets=true&IncludeTrends=true&apiKey=your API key
Available Parameters: (Information will only be returned when the respective parameter is set to True)
- FromDate
- ToDate
- SiteId
- IncludeKpis
- IncludeActuals
- IncludeForecasts
- IncludeTargets
- IncludeTrends
Returned Data:
For specific KPI data, you will be required to do the following.
- /api/kpi/{kpi id}/targets?addMissing=true
- /api/kpi/{id}/targets?addMissing=true&fromDate=2018-01-01&period=12(specify the required period).
- /api/kpi/{kpi id}/history?rows=100
- /api/kpi/{kpi id}/values?fromDate=2018-02-01&toDate=2018%2F04%2F01
An API Key can be generated on your Profile, see this article for more details: My Profile