I am trying to get extra details about certain nodes from nominatim . For instance for cities in south america , I would like details such as containing district, country, altnames, etc.
To get a list of nodes e.g. representing s. america cities I can use osmfilter on the relevant .osm file.
With this list of nodes I can programmatically query nominatim to get the info I am after , to end up with a list of cities and containing districts.

However nominatim (https://nominatim.openstreetmap.org) will in many cases return nothing for a node, while the openstreetmap site (https://www.openstreetmap.org/node/) will at least recognize the node and further show some of the details that I am interested in.

I would like to get the node and extra information usually available from nominatim but am not clear why no results are forthcoming from a simple lookup for many nodes (eg
https://nominatim.openstreetmap.org/lookup?osm_ids=N32870515&addressdetails=1&extratags=1 returns nothing , and
https://nominatim.openstreetmap.org/reverse?osm_type=N&osm_id=32870515&format=json returns ‘unable to geocode’,
while the osm lookup
https://www.openstreetmap.org/node/32870515 returns the node details plus extra information such as is_in info ).

In other cases nominatim does fine, eg.
https://nominatim.openstreetmap.org/lookup?osm_ids=N107775&addressdetails=1&extratags=1