crates.io API
Returns Rust crate details, search results, versions, dependencies and owners from crates.io.
View as Markdown| GET | /crates/crate | Description, latest versions, licence, downloads and links of one crate. |
| GET | /crates/search | Crates that match a search, 20 per page, best match first. |
| GET | /crates/versions | Every published version of one crate, newest first, 30 per page. |
| GET | /crates/version | One version of a crate: its licence, checksum, size, minimum Rust version and publisher. |
| GET | /crates/dependencies | The dependencies of one version of a crate, with their version requirements and kinds. |
| GET | /crates/owners | The users and teams that own one crate and may publish it. |
| GET | /crates/downloads | Downloads of one crate per day over the last 90 days, all versions added up, oldest day first. |
| GET | /crates/reverseDependencies | Crates that depend on one crate, newest versions of each dependent, 30 per page. |
| GET | /crates/summary | crates.io as a whole: its crate and download counts, and the crates that are new, most downloaded or just updated. |
| GET | /crates/categories | The crates.io categories, such as command-line-utilities or web-programming, with their descriptions and crate counts. |
| GET | /crates/categoryCrates | Crates in one crates.io category, such as command-line-utilities, most downloaded first, 20 per page. |
| GET | /crates/readme | The README of one crate version as HTML, the page crates.io renders for it. |
| GET | /crates/versionDownloads | Downloads of one crate version per day over the last 90 days, oldest day first. |
| GET | /crates/user | A crates.io user's profile by GitHub login: name, avatar, GitHub page and the day the account was created. |
| GET | /crates/userCrates | Crates one crates.io user publishes, by GitHub login, most recently updated first, 20 per page. |
crate
/v1/crates/crateDescription, latest versions, licence, downloads and links of one crate.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
17 fields
categories | Category[] |
name | string |
createdAt | string |
description | string |
documentation | string |
downloads | integer (int64) |
homepage | string |
keywords | Keyword[] |
name | string |
license | string |
maxStableVersion | string |
name | string |
newestVersion | string |
recentDownloads | integer (int64) |
repository | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/crates/crate?name=serde" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/crate?name=serde", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/crate?name=serde", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "categories": [ { "name": "no-std" }, { "name": "encoding" } ], "createdAt": "2014-12-05T20:20:39.487502Z", "description": "A generic serialization/deserialization framework", "documentation": "https://docs.rs/serde", "downloads": 1658410158, "homepage": "https://serde.rs", "keywords": [ { "name": "no_std" }, { "name": "serde" } ], "license": "MIT OR Apache-2.0", "maxStableVersion": "1.0.229", "name": "serde", "newestVersion": "1.0.229", "recentDownloads": 411403991, "repository": "https://github.com/serde-rs/serde", "updatedAt": "2026-07-18T23:05:13.266456Z", "url": "https://crates.io/crates/serde" }, "meta": { "cached": false, "endpoint": "crate", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
/v1/crates/searchCrates that match a search, 20 per page, best match first.
Parameters
querystring required | Search terms. e.g. serde |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
description | string |
downloads | integer (int64) |
maxStableVersion | string |
name | string |
newestVersion | string |
recentDownloads | integer (int64) |
repository | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/crates/search?query=serde" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/search?query=serde", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/search?query=serde", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "A generic serialization/deserialization framework", "downloads": 1658410158, "maxStableVersion": "1.0.229", "name": "serde", "newestVersion": "1.0.229", "recentDownloads": 411403991, "repository": "https://github.com/serde-rs/serde", "updatedAt": "2026-07-18T23:05:13.266456Z", "url": "https://crates.io/crates/serde" }, { "description": "YAML (de)serializer for Serde, emphasizing panic-free parsing, fast builds and good error reporting. Supports properties, include, tag and c…", "downloads": 16691583, "maxStableVersion": "2.1.1", "name": "serde-saphyr", "newestVersion": "2.1.1", "recentDownloads": 12725408, "repository": "https://github.com/bourumir-wyngs/serde-saphyr", "updatedAt": "2026-11-05T16:51:48.184678Z", "url": "https://crates.io/crates/serde-saphyr" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
versions
/v1/crates/versionsEvery published version of one crate, newest first, 30 per page.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
checksum | string |
crateSize | integer (int64) |
createdAt | string |
downloads | integer (int64) |
license | string |
number | string |
publishedBy | string |
rustVersion | string |
yanked | boolean |
curl "https://api.hoshime.com/v1/crates/versions?name=serde" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/versions?name=serde", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/versions?name=serde", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "checksum": "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba", "crateSize": 83669, "createdAt": "2026-07-18T23:05:13.266456Z", "downloads": 220432326, "license": "MIT OR Apache-2.0", "number": "1.0.229", "publishedBy": "dtolnay", "rustVersion": "1.56", "yanked": false }, { "checksum": "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e", "crateSize": 83652, "createdAt": "2025-09-27T16:51:35.265429Z", "downloads": 556571344, "license": "MIT OR Apache-2.0", "number": "1.0.228", "publishedBy": "dtolnay", "rustVersion": "1.56", "yanked": false } ], "meta": { "cached": false, "endpoint": "versions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
version
/v1/crates/versionOne version of a crate: its licence, checksum, size, minimum Rust version and publisher.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
versionstring required | Exact version, such as 1.0.0. e.g. 1.0.0 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
checksum | string |
crateSize | integer (int64) |
createdAt | string |
downloads | integer (int64) |
license | string |
number | string |
publishedBy | string |
rustVersion | string |
yanked | boolean |
curl "https://api.hoshime.com/v1/crates/version?name=serde&version=1.0.0" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/version?name=serde&version=1.0.0", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/version?name=serde&version=1.0.0", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "checksum": "369633cfe0f0bde1dfc037fb6c5a329d46586a31f981bed14d87487a3439ae37", "crateSize": 58433, "createdAt": "2017-04-20T15:26:44.055136Z", "downloads": 168811, "license": "MIT/Apache-2.0", "number": "1.0.0", "publishedBy": "", "rustVersion": "", "yanked": false }, "meta": { "cached": false, "endpoint": "version", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
dependencies
/v1/crates/dependenciesThe dependencies of one version of a crate, with their version requirements and kinds.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
versionstring required | Exact version, such as 1.0.0. e.g. 1.0.0 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
crate | string |
kind | string |
optional | boolean |
requirement | string |
target | string |
curl "https://api.hoshime.com/v1/crates/dependencies?name=serde&version=1.0.0" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/dependencies?name=serde&version=1.0.0", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/dependencies?name=serde&version=1.0.0", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "crate": "serde_derive", "kind": "dev", "optional": false, "requirement": "^1.0", "target": "" }, { "crate": "serde_derive", "kind": "normal", "optional": true, "requirement": "^1.0", "target": "" } ], "meta": { "cached": false, "endpoint": "dependencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
owners
/v1/crates/ownersThe users and teams that own one crate and may publish it.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
kind | string |
login | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/crates/owners?name=serde" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/owners?name=serde", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/owners?name=serde", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "kind": "user", "login": "dtolnay", "name": "David Tolnay", "url": "https://github.com/dtolnay" }, { "kind": "team", "login": "github:serde-rs:publish", "name": "publish", "url": "https://github.com/serde-rs" } ], "meta": { "cached": false, "endpoint": "owners", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
downloads
/v1/crates/downloadsDownloads of one crate per day over the last 90 days, all versions added up, oldest day first.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
daily | DailyCount[] |
date | string |
downloads | integer (int64) |
name | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/crates/downloads?name=serde" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/downloads?name=serde", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/downloads?name=serde", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "daily": [ { "date": "2026-08-09", "downloads": 2049835 }, { "date": "2026-08-10", "downloads": 3298954 } ], "name": "serde", "total": 360406885 }, "meta": { "cached": false, "endpoint": "downloads", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
reverseDependencies
/v1/crates/reverseDependenciesCrates that depend on one crate, newest versions of each dependent, 30 per page.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
crate | string |
downloads | integer (int64) |
kind | string |
requirement | string |
version | string |
curl "https://api.hoshime.com/v1/crates/reverseDependencies?name=serde" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/reverseDependencies?name=serde", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/reverseDependencies?name=serde", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "crate": "hashbrown", "downloads": 318010633, "kind": "normal", "requirement": "^1.0.220", "version": "0.17.1" }, { "crate": "bitflags", "downloads": 88477296, "kind": "dev", "requirement": "^1.0.103", "version": "2.13.2" } ], "meta": { "cached": false, "endpoint": "reverseDependencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
summary
/v1/crates/summarycrates.io as a whole: its crate and download counts, and the crates that are new, most downloaded or just updated.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
20 fields
justUpdated | CrateRef[] |
description | string |
downloads | integer (int64) |
name | string |
updatedAt | string |
version | string |
mostDownloaded | CrateRef[] |
description | string |
downloads | integer (int64) |
name | string |
updatedAt | string |
version | string |
newCrates | CrateRef[] |
description | string |
downloads | integer (int64) |
name | string |
updatedAt | string |
version | string |
numCrates | integer (int64) |
numDownloads | integer (int64) |
curl "https://api.hoshime.com/v1/crates/summary" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/summary", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/summary", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "justUpdated": [ { "description": "Reader and writer for the ITM item-resource format used in Infinity Engine games (V1, V1.1, V2.0)", "downloads": 108, "name": "infinitier_itm_resource", "updatedAt": "2026-11-06T18:01:36.436965Z", "version": "0.1.0" }, { "description": "Reader and writer for the INI file format used in Infinity Engine games", "downloads": 108, "name": "infinitier_ini_resource", "updatedAt": "2026-11-06T18:01:26.186666Z", "version": "0.1.0" } ], "mostDownloaded": [ { "description": "A Rust port of Google's SwissTable hash map", "downloads": 2992957289, "name": "hashbrown", "updatedAt": "2026-10-13T12:28:45.005326Z", "version": "0.17.1" }, { "description": "Parser for Rust source code", "downloads": 2938034523, "name": "syn", "updatedAt": "2026-10-12T15:04:09.212573Z", "version": "3.0.9" } ], "newCrates": [ { "description": "The model with which aktujo reads Latin script: PP-OCRv5 Latin text recognition as ONNX, with its dictionary", "downloads": 0, "name": "aktujo-extract-latin", "updatedAt": "2026-11-06T17:58:07.332019Z", "version": "1.0.0" }, { "description": "The model with which aktujo finds where text stands on a page: PP-OCRv3 text detection as ONNX", "downloads": 0, "name": "aktujo-extract-det", "updatedAt": "2026-11-06T17:58:01.759286Z", "version": "1.0.0" } ], "numCrates": 371284, "numDownloads": 537418947115 }, "meta": { "cached": false, "endpoint": "summary", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
categories
/v1/crates/categoriesThe crates.io categories, such as command-line-utilities or web-programming, with their descriptions and crate counts.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
crateCount | integer (int64) |
description | string |
name | string |
slug | string |
url | string |
curl "https://api.hoshime.com/v1/crates/categories" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/categories", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/categories", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "crateCount": 1280, "description": "…", "name": "…", "slug": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "categories", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
categoryCrates
/v1/crates/categoryCratesCrates in one crates.io category, such as command-line-utilities, most downloaded first, 20 per page.
Parameters
slugstring required | Category slug, such as command-line-utilities. The categories endpoint lists them. e.g. command-line-utilities |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
description | string |
downloads | integer (int64) |
maxStableVersion | string |
name | string |
newestVersion | string |
recentDownloads | integer (int64) |
repository | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/crates/categoryCrates?slug=command-line-utilities" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/categoryCrates?slug=command-line-utilities", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/categoryCrates?slug=command-line-utilities", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "…", "downloads": 0, "maxStableVersion": "…", "name": "…", "newestVersion": "…", "recentDownloads": 0, "repository": "…", "updatedAt": "2026-11-06T09:41:00Z", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "categoryCrates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
readme
/v1/crates/readmeThe README of one crate version as HTML, the page crates.io renders for it.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
versionstring required | Exact version, such as 1.0.200. e.g. 1.0.200 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
html | string |
name | string |
version | string |
curl "https://api.hoshime.com/v1/crates/readme?name=serde&version=1.0.200" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/readme?name=serde&version=1.0.200", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/readme?name=serde&version=1.0.200", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "html": "…", "name": "…", "version": "…" }, "meta": { "cached": false, "endpoint": "readme", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
versionDownloads
/v1/crates/versionDownloadsDownloads of one crate version per day over the last 90 days, oldest day first.
Parameters
namestring required | Crate name, or crates.io crate URL. e.g. serde |
versionstring required | Exact version, such as 1.0.200. e.g. 1.0.200 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
daily | DailyCount[] |
date | string |
downloads | integer (int64) |
name | string |
total | integer (int64) |
version | string |
curl "https://api.hoshime.com/v1/crates/versionDownloads?name=serde&version=1.0.200" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/versionDownloads?name=serde&version=1.0.200", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/versionDownloads?name=serde&version=1.0.200", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "daily": [ { "date": "…", "downloads": 0 } ], "name": "…", "total": 0, "version": "…" }, "meta": { "cached": false, "endpoint": "versionDownloads", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
user
/v1/crates/userA crates.io user's profile by GitHub login: name, avatar, GitHub page and the day the account was created.
Parameters
loginstring required | GitHub login of the user, such as dtolnay. e.g. dtolnay |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
avatar | string |
createdAt | string |
id | string |
login | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/crates/user?login=dtolnay" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/user?login=dtolnay", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/user?login=dtolnay", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "avatar": "…", "createdAt": "2026-11-06T09:41:00Z", "id": "abc123", "login": "…", "name": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }
userCrates
/v1/crates/userCratesCrates one crates.io user publishes, by GitHub login, most recently updated first, 20 per page.
Parameters
loginstring required | GitHub login of the user, such as dtolnay. e.g. dtolnay |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
description | string |
downloads | integer (int64) |
maxStableVersion | string |
name | string |
newestVersion | string |
recentDownloads | integer (int64) |
repository | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/crates/userCrates?login=dtolnay" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/crates/userCrates?login=dtolnay", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/crates/userCrates?login=dtolnay", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "…", "downloads": 0, "maxStableVersion": "…", "name": "…", "newestVersion": "…", "recentDownloads": 0, "repository": "…", "updatedAt": "2026-11-06T09:41:00Z", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "userCrates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "crates", "requestId": "req_2Xb9kQ…", "units": 1 } }