Has anybody tried pulling the stats out of the gumroad sales graph?
Specifically, I'm trying to "export" the views and sales count for each day from this graph, which don't seem to be exportable as a CSV or via the API in any way.
Any clever ways to pull the data that's being charted here?
Ah yeah, I hit this with my old ebooks. The best solution I've found is to:
No idea if they've built a more user-friendly API or not, but this worked for my purposes.
Oh, this is super close! It looks like the response I'm getting includes the numbers for each individual product (we have many in this store). Is there a way to get tweak the URL to get daily totals without manually adding it up?
Not that I know of. Here's my best recollection of step 3 for me, based on looking at the data they send again.
I believed I just copied the raw JSON data into my browser console, saved it as a variable like
data
and then got the totals with something like this (JavaScript):The dates are in there at the top level, too. I think mapped over them something like this:
to get this format
Then I copy-pasted that into a new .tsv file my spreadsheet could recognize. I was going to write a script to automate it or look at their api a bit more closely but I haven't really been using Gumroad the past couple of years so it wasn't worth it.
Thanks for all of this!
@sahil is there an easier way to do this?