ways: Get ways for node

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

Description

Retrieves all ways (lines, polygons, or areas) that include the specified node as one of their vertices. Useful for finding roads, buildings, or other linear/polygonal features connected to a point. Returns an OSM XML document with way elements.

From spec: Returns all ways that reference this node

Usage Tips

- Node ID must be a positive integer - Returns empty OSM document if node is not referenced by any ways - Common use: finding all roads or paths that intersect at a specific point - Each way includes its tags and the ordered list of node references (nd)

Parameters (1)

id (integer, path, required)

The node ID

Examples (1)

Get ways that include Mount Shasta volcano node probe-gate

Demonstrates finding all ways (paths, routes) that pass through or include the Mount Shasta volcano location.

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

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

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

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

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 17:48:13.730038 200 202ms
2026-04-16 03:34:06.262850 200 194ms
2026-04-15 00:27:20.622288 200 285ms
2026-04-14 03:41:11.256923 200 260ms
2026-04-12 15:51:18.490182 200 260ms
2026-04-10 04:34:07.800368 200 438ms