Is there any Web Services in Apigee that can be used to get traffic for any App instead of getting that report manually every time.
I mean can we have a internal api call to get this traffic report rather than goto reports and check them
Is there any Web Services in Apigee that can be used to get traffic for any App instead of getting that report manually every time.
I mean can we have a internal api call to get this traffic report rather than goto reports and check them
Other people from community you help is also appreciated
Maybe i misunderstood your question, but did you look over this ? You can also subscribe to that report but I don’t really know what kind of control you have over that.
To get statistics for developer apps:
[https://api.enterprise.apigee.com/v1/o/{org_name}/environments/{env_name}/stats/apps](https://api.enterprise.apigee.com/v1/o/{org_name}/environments/{env_name}/stats/apps)
Detail is available here.
Also, there is another option to subscribe daily analytics emails.
Yes, and here is a recent article I posted about the stats API:
As I m not a admin user but this will help me, need to get in touch with Admin users.
@rdoda could you help me on this if I m hitting above api its asking me for credentials And I have entered this but always getting "401 Unauthorized’
I am able to get response by replacing appropriate values in the following command. Are you providing “email:password” in the format specified? Could you paste the command used by you.
curl https://api.enterprise.apigee.com/v1/o/{org_name}/environments/test/stats/apps?"select=sum(message_count)&timeRange=8/24/2013%2000:00~9/25/2013%2000:00&timeUnit=day" -u email:password
@rdoda I am not using command base api rather than I am hitting this directly through rest client plugin. can you please tell me how do I use this throught command line.
@rdoda I have used curl command utility but again failed below is the issue
curl: (7) Failed to connect to apigee-ms.persistent.com port 443: Connection refused
have you tried specifying “-k” option with curl command. Detail is here.
@rdoda
Yes I have tried with this option too but given me same errror. Can you tell me some alternative way which will help me in my scenerio.
I think their might be some issue while connecting https://api.enterprise.apigee.com since this is a comman base path to connect or I should use our organization one url…
I have tried with both but things doesn’t work
ok, but please don’t use curl -u email:password. use curl -u email, and allow curl to prompt you for the password. Or use curl -n. See this article for more.
Thanks @Dino this works.
@rdoda
Thanks a lot for you time and support now I m able to get the data through above api call.