/v1/random
A random postcode
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/postcode-api/v1/random" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/postcode-api/v1/random", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/postcode-api/v1/random");
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/postcode-api/v1/random",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"postcode": {
"ccg": "NHS Devon",
"lsoa": "Plymouth 027E",
"msoa": "Plymouth 027",
"nuts": "Plymouth",
"incode": "1EP",
"parish": "Plymouth, unparished area",
"region": "South West",
"country": "England",
"outcode": "PL1",
"quality": 1,
"eastings": 247578,
"latitude": 50.370653,
"postcode": "PL1 1EP",
"longitude": -4.144743,
"northings": 54507,
"admin_ward": "St Peter and the Waterfront",
"admin_county": null,
"admin_district": "Plymouth",
"primary_care_trust": "Plymouth Teaching",
"nhs_health_authority": "South West",
"european_electoral_region": "South West",
"parliamentary_constituency": "Plymouth Sutton and Devonport"
}
},
"meta": {
"timestamp": "2026-06-08T01:19:43.616Z",
"request_id": "10f4dd4f-1472-4fab-be3a-0131cad9d533"
},
"status": "ok",
"message": "Random postcode retrieved successfully",
"success": true
}