I have spent quite a while trying to get the ESRI API working. Basically we would like to pass a lat, long to a service and obtain the elevation back.
Our previous service stopped working - we were using: https://utility.arcgis.com/usrsvcs/servers/55efcc79e42941e8a98831f987ca67c0/rest/services/WorldElevation/TopoBathy/ImageServer/identify?f=json&geometry={x:20,y:20,spatialReference:{wkid:4326}}&geometryType=esriGeometryPoint&f=json&returnCatalogItems=false
this service now appears to have gone.
I have looked at the ESRI documentation but alas it is really poor https://developers.arcgis.com/rest/elevation/api-reference/summarize-elevation.htm should work but just submits a job Using https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/TopoBathy/ImageServer Displays in ArcGIS Pro/ArcMap but you can only identify, looking at fiddler the response/request isn't easily reproducible.
Alternative options are Open Elevation which is the opposite of ESRI documentation it couldnt be simpler but alas the baseline dataset isnt high enough quality: https://api.open-elevation.com/api/v1/lookup?locations=41.161758,-8.583933
Does anyone have any working GET/POST requests to get Elevation details for point data from ESRI?