Skip to main content

Crates.io

Base URL: https://drain.lat/api/v1/crates
Fetch Rust crate information from crates.io.
GET /api/v1/crates/crate/:name
name
string
required
The crate name to look up.
curl "https://drain.lat/api/v1/crates/crate/serde" \
  -H "x-api-key: YOUR_API_KEY"
name
string
Crate name.
version
string
Latest version.
description
string
Crate description.
downloads
number
Total downloads.
recentDownloads
number
Recent downloads (last 90 days).
repository
string
Repository URL.
homepage
string
Homepage URL.
documentation
string
Documentation URL.
keywords
array
Crate keywords.
categories
array
Crate categories.
createdAt
string
Crate creation date (ISO 8601).
updatedAt
string
Last update date.
versions
number
Total number of versions.
cratesUrl
string
Link to the crates.io page.
Response
{
  "name": "serde",
  "version": "1.0.197",
  "description": "A generic serialization/deserialization framework",
  "downloads": 500000000,
  "recentDownloads": 25000000,
  "repository": "https://github.com/serde-rs/serde",
  "homepage": "https://serde.rs",
  "documentation": "https://docs.rs/serde",
  "keywords": ["serde", "serialization"],
  "categories": ["encoding"],
  "createdAt": "2014-11-11T00:00:00Z",
  "updatedAt": "2024-02-28T00:00:00Z",
  "versions": 198,
  "cratesUrl": "https://crates.io/crates/serde",
  "scrapedAt": "2026-05-31T00:00:00Z"
}