relations: Get relations for node

API: openstreetmap.org:openstreetmap-api
Endpoint: /node/{id}/relations
Response format: application/xml
Auth: unknown
Method: GET
Last Status: 200
Latency: 257ms

Description

Retrieves all relations (such as boundaries, routes, or multipolygons) that include the specified node as a member. Useful for finding administrative areas, bus routes, or other grouped features that reference a point of interest. Returns an OSM XML document with relation elements.

From spec: Returns all relations that reference this node

Usage Tips

- Node ID must be a positive integer - Returns empty OSM document if node is not referenced by any relations - Common use: finding administrative boundaries or routes that include a specific location - Rate limit: Respect OpenStreetMap's API usage policy (max 2 calls/sec for read-only)

Parameters (1)

id (integer, path, required)

The node ID

Examples (1)

Get relations referencing Mount Shasta volcano node probe-gate

Demonstrates querying for relations that include the Mount Shasta volcano node as a member.

curl 'https://api.openstreetmap.org/api/0.6/node/358799623/relations'
import requests

resp = requests.get("https://api.openstreetmap.org/api/0.6/node/358799623/relations")
data = resp.json()
import zingu_apis

api = zingu_apis.api("openstreetmap")
result = api.fetch("node/{id}/relations")

for item in result:
    print(item)
const resp = await fetch("https://api.openstreetmap.org/api/0.6/node/358799623/relations");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 17:15:02.933717 200 257ms
2026-04-16 01:36:07.516546 200 312ms
2026-04-15 03:34:44.987392 200 194ms
2026-04-14 03:51:29.639990 200 192ms
2026-04-12 15:54:23.374168 200 787ms
2026-04-10 01:20:05.800272 200 139ms