Take a look at the question at the bottom.
I’m currently trying to get the analytics of my videos.
I want to generate a monthly report of all metrics associated with all videos my site has uploaded to Cloudflare Stream with the report containing 1 row of metrics for each videoId hosted. I want to bill my users based on the same billing data that Cloudflare Stream is billing me.
When using Fetching bulk analytics I can accomplish this.
However, I also want to display the “per video metrics” for my users (number of plays and minutes streamed). When querying the GraphQL API the time period is limited to one month. That’s fine for billing (when done monthly) but I cannot display my users the total number of plays and minutes streamed.
I could use the Fetching per-video analytics but when I do this very often I may hit the API rate limit very quickly. I could tackle it with some caching and queueing but it seems hacky and would be an unnecessary load for the API.
The Cloudflare API sets a maximum of 1,200 requests in a five minute period.
Source: Cloudflare API documentation
Is there a way to perform a bulk request to the GraphQL API where I can get metrics for the whole time (since the video has been uploaded until now) for each video seperately in one request?
Thanks in advance.