[Overpass] Query multiple node ids at once

Goal: Given a list of node ids, return a list of objects, one for each node id, that contain its coordinates.

Context: With Overpass I can submit, for example, the following query:


[out:json][timeout:25];
node(69292918);
out body;

This returns to me an object with a component, “elements” that contains a list of length 1. The first object holds some metadata that I want that pertains to that node:


{
  "type": "node",
  "id": 69292918,
  "lat": 33.7371510,
  "lon": -84.3681960
}

What I am trying to figure out is how to supply a list of node ids such that I can receive a list of node id metadata in response.

For example, I imagine it might look something like this:


[out:json][timeout:25];
node(ids=[69292918,69292921,69292913]);
out body;

Bonus points: If someone can help me identify a way to query for all nodes in a bounding box that are only within ways (regardless of whether deprecated/unused or used), that would be awesome.

That would be sort of like this query:


[out:json][timeout:25];
node({{bbox}});
out body;

But would limit to only nodes that are part of streets.

Example of a node that is part of a street:
https://www.openstreetmap.org/node/69521872#map=19/33.75817/-84.40781

Example of a node that is not part of a street:
https://www.openstreetmap.org/node/2754887580

Did you already take a look at the documentation?
https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_element_id
https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Recurse_.28n.2C_w.2C_r.2C_bn.2C_bw.2C_br.29

@mmd

Thank you. While I had read through that page, I failed to see this note:

That helps a great deal.