get_data_weather
Retrieve weather forecasts for travel destinations to plan trips, prepare for conditions, and display on hotel pages.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Units of measurement. Default is metric. | |
| endDate | Yes | End date in YYYY-MM-DD format. The service can provide future forecasts, but reliability significantly decreases beyond one week. | |
| latitude | Yes | Latitude of the location. | |
| longitude | Yes | Longitude of the location. | |
| startDate | Yes | Start date in YYYY-MM-DD format. The service can provide future forecasts, but reliability significantly decreases beyond one week. |