/v1/canister
A canister type, controllers, name and subnet
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/icp-api/v1/canister" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/icp-api/v1/canister", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/icp-api/v1/canister");
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/icp-api/v1/canister",
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": {
"name": "ICP Ledger",
"source": "Internet Computer",
"subnet_id": "tdb26-jop6k-aogll-7ltgs-eruif-6kk7m-qpktf-gdiqx-mxtrf-vb5e6-eqe",
"canister_id": "ryjl3-tyaaa-aaaaa-aaaba-cai",
"controllers": [
"r7inp-6aaaa-aaaaa-aaabq-cai"
],
"module_hash": "51f4be010f23064137defacd627ffbec024c5133210c68ca3b80ab8f257101d6",
"canister_type": "ledger"
},
"meta": {
"timestamp": "2026-06-10T13:59:50.612Z",
"request_id": "a703531e-093d-46ca-833b-e965e9403b86"
},
"status": "ok",
"message": "Canister retrieved successfully",
"success": true
}