Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Open-Meteo Elevation

API-Dokumentation
https://api.sandbase.ai/v1/api/open-meteo/elevation

Terrain elevation in meters for one or more coordinates, from a 90 m digital elevation model.

Preis
$0.0001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
2 erforderlich · 0 optional

Playground

Eingabe
WGS84 latitude, or a comma-separated list of up to 100 latitudes.
WGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with `latitude`).
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

Open-Meteo Elevation API

Returns terrain elevation in meters for one or more coordinates, taken from a 90 m digital elevation model. You send WGS84 latitude and longitude values, either as single numbers or as comma-separated lists.

Use cases

  • Add ground elevation to a list of store or site locations before analysis.
  • Correct a weather forecast or temperature reading for the height of a location.
  • Check the elevation of several waypoints on a hiking or cycling route in one request.
  • Fill in missing altitude values in a dataset of GPS points.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/elevation" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "52.52,48.85", "longitude": "13.41,2.35"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
latitudestringYesWGS84 latitude, or a comma-separated list of up to 100 latitudes.
longitudestringYesWGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with latitude).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "elevation": [
    38.0
  ]
}

Response fields

FieldMeaning
elevationList of terrain elevations in meters, one per requested coordinate.
elevation[0]Elevation for the first coordinate pair. For the example request this is 38.0 for 52.52, 13.41.
elevation[1]Elevation for the second coordinate pair. For the example request this is 46.0 for 48.85, 2.35.

Notes

  • Send up to 100 coordinates in one request. Put them in latitude and longitude as comma-separated lists.
  • Values in elevation appear in the same order as the input coordinates. Position 0 in latitude pairs with position 0 in longitude.
  • If you only have a place name, use Open-Meteo Geocoding first to get its coordinates.
  • To get weather for the same coordinates, use Open-Meteo Weather Forecast.

Pricing

$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Open-Meteo Elevation API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/open-meteo/elevation mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Open-Meteo Elevation API?

$0.0001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Open-Meteo Elevation API?

Erforderlich: latitude (string) und longitude (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Open-Meteo Elevation API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Open-Meteo-Entwicklerkonto oder einen API-Schlüssel?

Nein. Open-Meteo Elevation läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Open-Meteo API beantragen.