Zum Inhalt springen
GET /v1/nearby

Castles near a coordinate

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "count": 20,
        "total": 33,
        "center": {
            "lat": 50.11,
            "lon": 8.68
        },
        "results": [
            {
                "name": "Stalburger Oede",
                "country": "Germany",
                "latitude": 50.1266,
                "longitude": 8.68358,
                "built_year": null,
                "distance_km": 1.86
            },
            {
                "name": "Bornburg",
                "country": "Germany",
                "latitude": 50.13013,
                "longitude": 8.70499,
                "built_year": null,
                "distance_km": 2.86
            },
            {
                "name": "Fleschenburg",
                "country": "Germany",
                "latitude": 50.1018,
                "longitude": 8.73089,
                "built_year": null,
                "distance_km": 3.74
            },
            {
                "name": "Burg Rödelheim",
                "country": "Germany",
                "latitude": 50.1219,
                "longitude": 8.61238,
                "built_year": null,
                "distance_km": 5
            },
            {
                "name": "Burg Bachberg",
                "country": "Germany",
                "latitude": 50.1574,
                "longitude": 8.68788,
                "built_year": null,
                "distance_km": 5.3
            },
            {
                "name": "Burg Philippseck",
                "country": "Germany",
                "latitude": 50.1545,
                "longitude": 8.64416,
                "built_year": 1584,
                "distance_km": 5.57
            },
            {
                "name": "Wasserburg Goldstein",
                "country": "Germany",
                "latitude": 50.0834,
                "longitude": 8.61021,
                "built_year": null,
                "distance_km": 5.79
            },
            {
                "name": "Klettenburg",
                "country": "Germany",
                "latitude": 50.1532,
                "longitude": 8.62484,
                "built_year": null,
                "distance_km": 6.21
            },
            {
                "name": "Turmburg Eschborn",
                "country": "Germany",
                "latitude": 50.146,
                "longitude": 8.56785,
                "built_year": null,
                "distance_km": 8.94
            },
            {
                "name": "Vilbel Castle",
                "country": "Germany",
                "latitude": 50.185,
                "longitude": 8.7448,
                "built_year": null,
                "distance_km": 9.53
            },
            {
                "name": "Kelsterbach Sconce",
                "country": "Germany",
                "latitude": 50.0677,
                "longitude": 8.54113,
                "built_year": null,
                "distance_km": 10.97
            },
            {
            
…