latitudestringerforderlich
WGS84 latitude, or a comma-separated list of up to 100 latitudes.
https://api.sandbase.ai/v1/api/open-meteo/elevationTerrain elevation in meters for one or more coordinates, from a 90 m digital elevation model.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
latitude | string | Yes | WGS84 latitude, or a comma-separated list of up to 100 latitudes. |
longitude | string | Yes | WGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with latitude). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"elevation": [
38.0
]
}
| Field | Meaning |
|---|---|
elevation | List 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. |
latitude and longitude as comma-separated lists.elevation appear in the same order as the input coordinates. Position 0 in latitude pairs with position 0 in longitude.$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
latitudestringerforderlichWGS84 latitude, or a comma-separated list of up to 100 latitudes.
longitudestringerforderlichWGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with `latitude`).
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Open-Meteo ElevationDiese API Open-Meteo | $0.0001 pro Aufruf | JSON |
Open-Meteo | $0.0001 pro Aufruf | JSON |
Open-Meteo | $0.0001 pro Aufruf | JSON |
Open-Meteo | $0.0001 pro Aufruf | JSON |
Open-Meteo | $0.0001 pro Aufruf | JSON |
Open-Meteo | $0.0001 pro Aufruf | JSON |
Fragen
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.
$0.0001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: latitude (string) und longitude (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
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.