Zum Inhalt springen
GET /v1/nationality

Predict nationality

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/nameinsights-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "name": "peter",
        "countries": [
            {
                "country_id": "NG",
                "probability": 0.07808044340500363
            },
            {
                "country_id": "KE",
                "probability": 0.0455265113731697
            },
            {
                "country_id": "UG",
                "probability": 0.042889028691174495
            },
            {
                "country_id": "CN",
                "probability": 0.03778918961958605
            },
            {
                "country_id": "TZ",
                "probability": 0.03515064125148246
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-30T03:31:48.600Z",
        "request_id": "ebcf79d9-5a4d-415c-a28a-f3eedf1bec2a"
    },
    "status": "ok",
    "message": "Nationality predicted successfully",
    "success": true
}