Access Workers Metrics via Cloudflare API

Hi there,

On the dashboard, i can see Metrics for my workers, including the Execution Duration.

How do i access this data from the Cloudflare API?

Analytics are available through GraphQL, which is similar to Cloudflare API. Here’s an example for Workers:

1 Like