Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Open-Meteo Elevation

Docs da 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.

Preço
$0.0001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
2 obrigatórios · 0 opcionais

Playground

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`).
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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 mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Open-Meteo Elevation?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/open-meteo/elevation com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Open-Meteo Elevation?

$0.0001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Open-Meteo Elevation aceita?

Obrigatórios: latitude (string) e longitude (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Open-Meteo Elevation retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Open-Meteo ou de uma chave de API?

Não. Open-Meteo Elevation funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Open-Meteo separadamente.