Analytics api end points

Not applicable

Hi,

Can I get analytics for all my api end-points calls?

for example:

my api name is: products

api end-points: [GET] products

[GET] products/{id}

[POST] products

[DELETE] products/{id}

[GET] products/filter/{filter_id}

I would like to get analytics about each api end-point:

1. end-point calls count

2. end-point calls source (ip)

3. the actual response content for each end-point call

Thanks,

Einat.

Solved Solved
1 5 755
1 ACCEPTED SOLUTION

An API proxy in Apigee is the API with an end point, which clients invoke. Here is a sample request to fetch the sum of messages (i.e. traffic) for 'api1' and 'api2' within the time range - 01/01/2015 2000:00~04/01/2015 2000:00. This request worked for me and I got a valid response.

https://api.enterprise.apigee.com/v1/organizations/<org_name>/environments/test/stats/apis?select=sum(message_count)&timeRange=01%2F01%2F2015%2000%3A00~04%2F01%2F2015%2000%3A00&timeUnit=day&filter=(apiproxy%20in%20'api1'%2C'api2')

You can also try the SmartDocs page on our web-site. Hope this helps.

View solution in original post

5 REPLIES 5

Yes. There are RESTful APIs available to fetch analytics from Apigee Edge. Here is the link with a few examples.

Apigee Edge does not record the actual response content by default. If you are interested in capturing specific fields, then use the Stats Collector policy. You can find more details on Stats Collector policy here.

Not applicable

@sudheendra1 Thanks for the reply,

Can I filter specific end point with an api call to apigee stats?

Thanks,

Einat

Yes. You can filter based on API proxies, by passing it as a query parameter. Eg -

filter=(apiproxy IN 'books','music')

Check out the "Report Filters" section here.

Not applicable

@sudheendra1

I got error response:

"message" : "Invalid filter expression (apiproxy IN 'my_api_name')"

I am not sure I understand, what is apiproxy ?

An API proxy in Apigee is the API with an end point, which clients invoke. Here is a sample request to fetch the sum of messages (i.e. traffic) for 'api1' and 'api2' within the time range - 01/01/2015 2000:00~04/01/2015 2000:00. This request worked for me and I got a valid response.

https://api.enterprise.apigee.com/v1/organizations/<org_name>/environments/test/stats/apis?select=sum(message_count)&timeRange=01%2F01%2F2015%2000%3A00~04%2F01%2F2015%2000%3A00&timeUnit=day&filter=(apiproxy%20in%20'api1'%2C'api2')

You can also try the SmartDocs page on our web-site. Hope this helps.