How to keep a track of the number of requests to the API proxy?

Not applicable

Hi,

I have a situation wherein we are having a payment mechanism of say $100/1000 requests. How can I achieve this in Apigee. Like getting billed automatically for every 1000 requests sent.

0 1 146
1 REPLY 1

The monetization capability can do this easily: http://apigee.com/docs/monetization/content/basics-monetization.

If you are not an enterprise customer or do not have the monetization capability enabled, I think you could get close to this functionality with the quota policy: http://apigee.com/docs/api-services/reference/quota-policy. Rather that having the policy block requests when the quota is reached, you'd set the continueOnError to true so the policy doesn't throw an error, then set conditional policies, messagelogging policy or service callout to hit your billing system, reset the quota, and that would get close to the behavior you're looking to get.