Weather & Forecasts
Access current weather data and rain predictions for your region.
Current Weather​
GET https://api.yodi.tg/v1/climate/weather?region={region}
Query Parameters​
| Parameter | Type | Description |
|---|---|---|
region | string | Region code (e.g., maritime) |
Example Request​
curl -X GET "https://api.yodi.tg/v1/climate/weather?region=maritime" \
-H "x-api-key: YOUR_API_KEY"
Example Response​
{
"message": "WEATHER_CHECKED",
"error": false,
"data": {
"region": "maritime",
"temperature": 28.5,
"humidity": 78,
"conditions": "partly_cloudy",
"forecast": [
{ "day": "2025-07-17", "high": 30, "low": 24, "conditions": "sunny" },
{ "day": "2025-07-18", "high": 29, "low": 23, "conditions": "rain" }
]
},
"status": 200
}
Rain Prediction​
Predict the next significant rainfall event.
GET https://api.yodi.tg/v1/climate/weather/rain?region={region}
Example Request​
curl -X GET "https://api.yodi.tg/v1/climate/weather/rain?region=maritime" \
-H "x-api-key: YOUR_API_KEY"
Example Response​
{
"message": "RAIN_CHECKED",
"error": false,
"data": {
"region": "maritime",
"nextRain": "2025-07-18T14:00:00Z",
"probability": 85,
"intensity": "moderate",
"advice": "Consider delaying outdoor planting until July 19."
},
"status": 200
}
Use Cases​
- Agricultural planning and crop management
- Logistics and transportation scheduling
- Event planning
- Disaster preparedness