/v1/crate
Full metadata for a crate
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/crates-api/v1/crate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/crates-api/v1/crate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/crates-api/v1/crate");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/crates-api/v1/crate",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"crate": {
"name": "serde",
"homepage": "https://serde.rs",
"keywords": [
"no_std",
"serde",
"serialization"
],
"downloads": 1038977678,
"categories": [
"no-std::no-alloc",
"no-std",
"encoding"
],
"created_at": "2014-12-05T20:20:39.487502Z",
"repository": "https://github.com/serde-rs/serde",
"updated_at": "2025-09-27T16:51:35.265429Z",
"description": "A generic serialization/deserialization framework",
"crates_io_url": "https://crates.io/crates/serde",
"documentation": "https://docs.rs/serde",
"newest_version": "1.0.228",
"recent_downloads": 195730353,
"max_stable_version": "1.0.228"
},
"recent_versions": [
{
"num": "1.0.228",
"yanked": false,
"license": "MIT OR Apache-2.0",
"downloads": 249111895,
"created_at": "2025-09-27T16:51:35.265429Z",
"rust_version": "1.56"
},
{
"num": "1.0.227",
"yanked": false,
"license": "MIT OR Apache-2.0",
"downloads": 1600935,
"created_at": "2025-09-25T23:43:08.742811Z",
"rust_version": "1.56"
},
{
"num": "1.0.226",
"yanked": false,
"license": "MIT OR Apache-2.0",
"downloads": 5837561,
"created_at": "2025-09-20T23:37:58.558002Z",
"rust_version": "1.56"
},
{
"num": "1.0.225",
"yanked": false,
"license": "MIT OR Apache-2.0",
"downloads": 5946125,
"created_at": "2025-09-16T03:43:57.050243Z",
"rust_version": "1.56"
},
{
"num": "1.0.224",
"yanked": false,
"license": "MIT OR Apache-2.0",
"downloads": 1973433,
"created_at": "2025-09-15T15:47:07.829179Z",
"rust_version": "1.56"
}
]
},
"meta": {
"timestamp": "2026-05-31T10:14:02.487Z",
"request_id": "e3cae2d9-9818-4ebb-b12b-2baa1e7a06ef"
},
"status": "ok",
"message": "Crate retrieved",
"success": true
}