/v1/verify
Verify a URL matches an integrity
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/sri-api/v1/verify" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sri-api/v1/verify", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sri-api/v1/verify");
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/sri-api/v1/verify",
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": {
"url": "https://example.com/",
"actual": "sha384-EUZfMlUFsH9OvEhNQdUYTotKnWJBzc1rEyZ486Wt8faO3LCu9bFskk2U1TtVUGNf",
"matches": false,
"expected": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC",
"algorithm": "sha384",
"final_url": "https://example.com/"
},
"meta": {
"timestamp": "2026-06-01T23:40:48.713Z",
"request_id": "b0a4f63f-6290-4caf-90a9-9feb4ade5a42"
},
"status": "ok",
"message": "SRI verified",
"success": true
}