Download usage CSV from webpage

I’d like a way to download a CSV of usage by channel in minutes from a webpage.
I wrote a RESTful script to grab the data, and I see that a year’s worth is stored.
The script is OK, but I suspect maintaining it will be a pain, and a standard interface would be useful for others seeking to track usage over time.