crates.io HTTP API Reference
Note: All paths presented here are relative to https://crates.io/api/v1!
/crates
GET
/versions
GET
/{version_id}
GET
/keywords
GET
/{keyword_id}
GET
/categories
GET
/{category_id}
GET
/category_slugs
GET
/users
(no access)/{user_id}
GET
Get general info about crates.
category
Limit results to crates in this category- valid values: any
- no fall back
following
Limit results to crates the requesting user is following- valid values: any
- no fall back
keywords
Limit results to crates with this keyword- valid values: any
- no fall back
letter
Pattern-based search (in particular, SQL LIKE-based)- valid values: any
- no fall back
q
?- valid values: ?
- no fall back
sort
Results sorting method- valid values:
alpha
,downloads
- falls back to
alpha
- valid values:
user_id
Limit results to crates of this user- valid values: any
- no fall back
Create a new crate.
Get general info about :crate_id
crate.
Get info about :crate_id
crate of version :version
.
Download tar-gzipped source code of :crate_id
crate of version :version
.
List dependencies of :crate_id
crate of version :version
.
Get number of downloads by date of :crate_id
crate of version :version
.
before_date
Limit results to downloads before the specified date- valid values: date in format
%Y-%m-%d
, where%Y
— 4 digits of year,%m
— month from 1 to 12,%d
— day of month from 1 to 31 - no fall back
- valid values: date in format
List authors of :crate_id
crate of version :version
.
Yank :crate_id
crate of version :version
.
Unyank :crate_id
crate of version :version
.
Get number of total downloads of :crate_id
crate.
List versions of :crate_id
crate.
?
?
?
List owners of :crate_id
crate.
Add an owner to :crate_id
crate.
Delete an owner from :crate_id
crate.
List reverse dependencies of :crate_id
crate.
?
ids[]
?- valid values: ?
- no fall back
?
List keywords of crates uploaded to crates.io.
sort
Results sorting method- valid values:
alpha
,crates
- falls back to
alpha
- valid values:
Get info about the :keyword_id
keyword.
List categories of crates uploaded to crates.io.
sort
Results sorting method- valid values:
alpha
,crates
- falls back to
alpha
- valid values:
Get info about the :category_id
category.
?
Get info about the :user_id
user.