Which call should I use to get the data of a report?

When I make this call I just get the information about the report, but I want to be able to get the data in the report. If possible also within a given time range. I want to get the target errors and target response time per developer app.

1 Like

@Friso Denijs ,

You can find more about Analytics API here,

I use Apigee Custom Reports to build the report & inspect the network tab in chrome browser to see th e API call Apigee Edge UI is making , From that i can easily construct the Analytics Management API call.

See sample custom report & network call made by Apigee Edge UI below,

Network tab in browser where i can see the API,

API Call you are looking for, replace orgname & envname in below GET call with Base 64 encoded credentials in Authorization header,

[https://api.enterprise.apigee.com/v1/organizations/{ORGNAME}/environments/{ENVNAME}/stats/developer_app?select=sum(target_error),avg(target_response_time)&sort=DESC&sortby=sum(target_error),avg(target_response_time)&timeRange=05%2F16%2F2017+00:00:00~05%2F31%2F2017+00:00:00&timeUnit=day&tsAscending=true](https://api.enterprise.apigee.com/v1/organizations/{ORGNAME}/environments/{ENVNAME}/stats/developer_app?select=sum(target_error),avg(target_response_time)&sort=DESC&sortby=sum(target_error),avg(target_response_time)&timeRange=05%2F16%2F2017+00:00:00~05%2F31%2F2017+00:00:00&timeUnit=day&tsAscending=true)

Hope it helps.

1 Like