Getting worker daily requests count

hi, is there any API for getting worker request count?
I couldn’t find anything in here Quickstarts · Cloudflare Workers docs

There’s API support Zone Analytics and Worker KV Analytics but doesn’t seem to be one for Workers themselves though ? @harris any ideas ?

Just add some structured logging! Happy to help you implement if needed.

I suggest Logflare (I built it), but any external logging service will do.

ps: don’t use the Cloudflare app for this use case. Use your own fn and just POST us json wrapped in a waitUntil.

2 Likes

Also you could use something like this: Simple log collector worker

Hello

I have the same task. Is there a way for getting worker request count by API now?

For the free plan, there is a limit of 100,000 daily requests (across all workers!)

On a paid workers plan, there is no limit! However, it has a minimum monthly billing amount of $5, and it is $0.50 per million requests beyond the first 10 million.

If you are on the free plan and get close to reaching your limit, Cloudflare will send you an email like this (without sensitive information blacked out)

Once you reach your limit, the email will look like this (also without sensitive information blacked out)

The task is to get the current number of requests for a specific account, not limits.