Aller au contenu
GET /v1/note

One map note with its full comment thread

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/openstreetmap-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "id": 3338553,
        "lat": 51.5106121,
        "lon": -0.1168451,
        "url": "https://www.openstreetmap.org/note/3338553",
        "status": "closed",
        "comments": [
            {
                "date": "2022-08-30 16:12:36 UTC",
                "text": "This restaurant is now the https://dipnasomersethouse.co.uk/",
                "user": null,
                "action": "opened"
            },
            {
                "date": "2026-06-09 20:33:32 UTC",
                "text": "It's changed again, to Aram by Imad. Now updated",
                "user": "Mikey Co",
                "action": "closed"
            }
        ],
        "closed_at": "2026-06-09 20:33:32 UTC",
        "date_created": "2022-08-30 16:12:35 UTC",
        "comment_count": 2
    },
    "meta": {
        "timestamp": "2026-06-13T14:10:23.126Z",
        "request_id": "bcd2945e-20da-4c1a-8341-cca8f01cae8d"
    },
    "status": "ok",
    "message": "Note retrieved successfully",
    "success": true
}