/v1/nearby
Wikipedia articles near a coordinate
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/geowiki-api/v1/nearby" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/geowiki-api/v1/nearby", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/geowiki-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/geowiki-api/v1/nearby",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 10,
"center": {
"lat": 48.8584,
"lon": 2.2945
},
"project": "en.wikipedia",
"results": [
{
"url": "https://en.wikipedia.org/wiki/Eiffel_Tower",
"title": "Eiffel Tower",
"pageid": 9232,
"extract": "The Eiffel Tower ( EYE-fəl; French: Tour Eiffel [tuʁ ɛfɛl] ) is a lattice tower on the Champ de Mars in Paris, France. It is named after the engineer Gustave Eiffel, whose company designed and built the tower from 1887 to 1889.",
"latitude": 48.858222222222224,
"longitude": 2.2944999999999998,
"thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg/250px-Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg",
"distance_m": 19.8
},
{
"url": "https://en.wikipedia.org/wiki/Globe_C%C3%A9leste",
"title": "Globe Céleste",
"pageid": 16201796,
"extract": "The Globe Céleste was an icon of the Exposition Universelle of 1900 in Paris, similar to the Eiffel Tower. It was constructed in the shape of a large globe and stood close to the Eiffel Tower.",
"latitude": 48.8575,
"longitude": 2.292777777777778,
"thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Tour_Eiffel_et_le_Globe_C%C3%A9leste.jpg/250px-Tour_Eiffel_et_le_Globe_C%C3%A9leste.jpg",
"distance_m": 160.9
},
{
"url": "https://en.wikipedia.org/wiki/Palazzo_Bernardo_Nani",
"title": "Palazzo Bernardo Nani",
"pageid": 48435351,
"extract": "The Palazzo Bernardo Nani Lucheschi, also called the Palazzo Nani Bernardo, is a Renaissance-style palace between the Palazzo Giustinian Bernardo and the larger and more grandiose Ca' Rezzonico, on the Grand Canal in the sestiere of Dorsoduro in Venice, Italy.",
"latitude": 48.8583,
"longitude": 2.2923,
"thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Palazzo_bernardo_nani_gran_canal_dorsoduro.jpg/250px-Palazzo_bernardo_nani_gran_canal_dorsoduro.jpg",
"distance_m": 161.3
},
{
"url": "https://en.wikipedia.org/wiki/Pont_d'I%C3%A9na",
"title": "Pont d'Iéna",
"pageid": 14001337,
"extract": "Pont d'Iéna (French: [pɔ̃ djena]; French for 'Jena Bridge') is a bridge spanning the River Seine in Paris. It links the Eiffel Tower on the Left Bank to the district of Trocadéro on the Right Bank.",
"latitude": 48.859722222222224,
"longitude": 2.292222222222222,
"thumbnail": null,
"distance_m": 222.2
},
…