-
I've been exploring the crates.io API and was curious if there's an endpoint available to retrieve crate download data within a specified timeframe, such as a start and end date. Been looking over at https://crates.io/data-access but can't find enough information. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 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 [email protected] 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 because, honestly, it's not that useful to most people and it's a lot of raw data to serve up. |
Beta Was this translation helpful? Give feedback.
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 [email protected] 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…