v1

latestOpenAPI 3.0.02026-07-247251950.2 KB
Weather

Get weather data

Overview

Get weather forecasts for specific locations. Response structure adapts based on the forecast time range (short-term vs. long-term).

When to Use

  • Travel planning - Show weather forecasts for destinations
  • Hotel pages - Display weather information on hotel detail pages
  • Trip preparation - Help users plan for weather conditions
  • Destination information - Provide weather context for locations

What You Get

  • Weather forecasts - Temperature, humidity, wind, precipitation
  • Time-based structure - Different formats for short-term (<1 week) vs. long-term forecasts
  • Detailed data - Atmospheric pressure, conditions, and summaries
  • Date-specific - Weather data for specific dates

Key Features

  • Adaptive structure - Response format changes based on time range
  • Short-term - Detailed hourly/daily data for forecasts within one week
  • Long-term - Daily summaries for forecasts beyond one week
  • Accuracy note - Forecasts beyond one week have reduced accuracy

Quick Start

Provide location coordinates (latitude, longitude) and date range. Returns weather forecasts with appropriate detail level.

get/data/weather

Query parameters

latitudestring required

Latitude of the location.

longitudestring required

Longitude of the location.

startDatestring date required

Start date in YYYY-MM-DD format. The service can provide future forecasts, but reliability significantly decreases beyond one week.

endDatestring date required

End date in YYYY-MM-DD format. The service can provide future forecasts, but reliability significantly decreases beyond one week.

units'metric' | 'imperial'

Units of measurement. Default is metric.

Response

OK