Using REST API to get Performance always returns error 404. Format /v1/o/myorg/e/prod/stats

I have an evaluation account. I have my test API running and configured. I am able to go to Analyze -> API Proxy Performance and see data for my "test" environment.

However, when I try to get the same data using the REST API. I always get a 404 error: The format I am using is as described here:

https://docs.apigee.com/api-platform/analytics/analytics-command-reference

I also use Basic Authentication and I am passing my edge credentials. I replaced "myorg" for the name of my organization under my username in the Main page.

Are eval accounts allowed to make REST API calls to performance data? I figure it should since I am able to access the same data using the GUI page. Thanks!

Solved Solved
0 2 87
1 ACCEPTED SOLUTION

The stats API is somewhat complicated. As an example.

GET https://api.enterprise.apigee.com/v1/o/ORG/e/ENV/stats/apis ?select=sum(message_count)&timeUnit=month&timeRange=05/01/2018 07:00~05/31/2019 07:00

8617-screenshot-20190516-115354.png

View solution in original post

2 REPLIES 2

The stats API is somewhat complicated. As an example.

GET https://api.enterprise.apigee.com/v1/o/ORG/e/ENV/stats/apis ?select=sum(message_count)&timeUnit=month&timeRange=05/01/2018 07:00~05/31/2019 07:00

8617-screenshot-20190516-115354.png

Thanks Dino. I thought I can get it without the dimension. I tried it with dimensions and worked. Awesome!