Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Open-Meteo Elevation

Documentación de la API
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.

Precio
$0.0001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
2 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
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`).
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Open-Meteo$0.0001 por llamadaJSON
Open-Meteo$0.0001 por llamadaJSON
Open-Meteo$0.0001 por llamadaJSON
Open-Meteo$0.0001 por llamadaJSON
Open-Meteo$0.0001 por llamadaJSON
Open-Meteo$0.0001 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Open-Meteo Elevation?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/open-meteo/elevation con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Open-Meteo Elevation?

$0.0001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Open-Meteo Elevation?

Requeridos: latitude (string) y longitude (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Open-Meteo Elevation?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Open-Meteo?

No. Open-Meteo Elevation funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Open-Meteo por separado.