Access unique_visitors.csv from API?

Looking to automate data imports from Cloudflare, and the API docs keep juggling me back and forth between deprecated API versions so I absolutely cannot find what I’m looking for.

What I want is simple, the Cloudflare domain overview dashboard has an analytics widget, where you can download 30 day data as a CSV file. I want to be able to access that file (or equivalent data) through an API. Can someone point me in the right direction?