Skip to content

Retrieve download information for a crate within a specified timeframe. #7973

Answered by LawnGnome
dxphilo asked this question in Q&A
Discussion options

You must be logged in to vote

The last 90 days of per-day, per-crate-version download counts are included in the nightly database dumps (linked from the data access page) in the version_downloads table.

For a small number of crates, you could also use the download API endpoint, eg https://crates.io/api/v1/crates/syn/downloads — while this isn't technically documented, it should provide the same information on a per-crate basis, and is unlikely to change in practice any time soon.

If you need more historical data, let us know what you need at help@crates.io and we can see if we can provide it. We do have extra history at the same granularity (per-day, per-crate-version) available; we just don't generally provide it bec…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dxphilo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants