Μετάβαση στο περιεχόμενο
GET /v1/meta

Spec

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/clientip-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/clientip-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/clientip-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/clientip-api/v1/meta");
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/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "name": "Client IP API",
        "notes": "X-Forwarded-For is ordered client, proxy1, proxy2 (left to right); the right-most entry is the closest proxy. Set trusted to the number of proxies in front of your app so the returned IP is the first untrusted one. Ports and IPv6 [brackets] are stripped. This parses headers — it does not geolocate the IP. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/client",
                "params": {
                    "xff": "the X-Forwarded-For header value",
                    "trusted": "number of trusted proxies to skip from the right (default 0)",
                    "forwarded": "an RFC 7239 Forwarded header (alternative to xff)"
                },
                "returns": "the client IP and the full chain"
            },
            {
                "path": "/v1/parse",
                "params": {
                    "type": "auto (default), forwarded or xff",
                    "header": "a Forwarded or X-Forwarded-For header value (required)"
                },
                "returns": "the parsed hops or address list"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Find the real client IP behind proxies and load balancers. The client endpoint takes an X-Forwarded-For list (or an RFC 7239 Forwarded header) and a count of trusted proxies, and returns the actual client address — stripping the proxies you trust from the right-hand side so a spoofed left-most value can't fool you — along with the full hop chain. The parse endpoint decomposes a Forwarded header into its for/by/host/proto hops, or an X-Forwarded-For header into its ordered list of addresses, stripping ports and IPv6 brackets. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:01.795Z",
        "request_id": "22bdbbe0-c14a-4027-a3d6-f016c2a8b951"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}