/v1/client
Find the client IP
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/clientip-api/v1/client" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/clientip-api/v1/client", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/clientip-api/v1/client");
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/clientip-api/v1/client",
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": {
"hops": 3,
"kind": "ipv4",
"chain": [
"203.0.113.5",
"70.41.3.18",
"150.172.238.178"
],
"leftmost": "203.0.113.5",
"client_ip": "70.41.3.18",
"rightmost": "150.172.238.178",
"trusted_proxies": 1
},
"meta": {
"timestamp": "2026-06-03T09:25:01.602Z",
"request_id": "9525950b-0d71-453d-9cf5-f0ceb80a3f18"
},
"status": "ok",
"message": "Find the client IP",
"success": true
}