More than a year of historical download counts from crates.io (raw data)?

Does anyone know if it's possible to get more than the last year's worth of download history?

I'm doing a little research, and it looks like crates.io only returns the previous year of downloads: https://crates.io/api/v1/crates/trust-dns-resolver/downloads

Also, is there documentation on what the fields are? The "meta":{"extra_downloads" at first glance looks like total downloads by day, but doesn't really seem to add up to a rough estimate of those in the {"version_downloads":[ section.

Thank you in advance.

1 Like

The database dump has the full download history:

https://crates.io/data-access

Here's my parser for it:

3 Likes

Thank you! I don’t know why I wasn’t able to find that!

Also, thank you for the parsing code, that's really helped me jumpstart on this.

I wonder, would it be worth publishing a crate that could be kept up-to-date with the DB format, etc?