Proxy wise traffic using management api is giving only 1000 proxy records

Hi,

I am trying to get traffic data i.e message_count by proxy using management api in apigee opdk. But it is giving only 1000 records by a management api call. How can I retrieve the data for rest of the proxies.

Solved Solved
2 1 95
1 ACCEPTED SOLUTION

You have to use limit & offset query parameters in the stats API request.

Limit is 14400 for each stats API request, keep offset as 0 for first set,

https://api.enterprise.apigee.com/v1/o/'orgname'/e/'envname'/stats/apis?select=sum(message_count)&limit=14400&offset=0&sortby=sum(message_count)&sort=DESC&timeRange=01/31/2024 14:26~01/31/2024 15:26&timeUnit=day

In the above API request you can increase offset to 14400 to get the next set (traffic count between 14401 - 28800) 

View solution in original post

1 REPLY 1

You have to use limit & offset query parameters in the stats API request.

Limit is 14400 for each stats API request, keep offset as 0 for first set,

https://api.enterprise.apigee.com/v1/o/'orgname'/e/'envname'/stats/apis?select=sum(message_count)&limit=14400&offset=0&sortby=sum(message_count)&sort=DESC&timeRange=01/31/2024 14:26~01/31/2024 15:26&timeUnit=day

In the above API request you can increase offset to 14400 to get the next set (traffic count between 14401 - 28800)