AtmosWeather Intelligence

Developer API

JSON endpoints for other apps · no API key · 60 requests/minute per IP · open Swagger UI

Request GET/api/predict/

Response

Not sent yet— ms
// Press “Send request” to see the live JSON response here.

Parameters

ParameterMeaningAllowed
temperatureToday’s mean temperature (°C)-10 … 55
humidityMean relative humidity (%)0 … 100
wind_speedMean wind speed (km/h)0 … 150
pressureMean surface pressure (hPa)900 … 1100
dateDate of the readingsYYYY-MM-DD
city optionalCity slugalexandria aswan cairo
model optionalModel to usebest ridge gbr rf

Response fields

predictionTomorrow’s mean temperature (°C); low/high = 95% range
forecast[]Days +1 … +7: date, prediction, low, high, normal (seasonal average)
explain[]Effect of each input on tomorrow’s forecast (°C vs. average conditions)
outside_training_range[]Inputs the model has never seen values like — treat the result with caution
mae_day1Average error of this model on the hold-out period (°C)

All endpoints

GET/api/predict/7-day forecast (also accepts POST form fields)
GET/api/latest/?city=cairolatest real daily readings from Open-Meteo
POST/api/batch/CSV upload (field file); add ?format=csv for CSV output
GET/api/models/cities, models and their accuracy
GET/api/health/health check

Errors

400 Validation error

{
  "errors": {
    "humidity": [{
      "message": "Ensure this value is less than or equal to 100.0."
    }]
  }
}

429 Rate limit

{
  "error": "Rate limit exceeded",
  "limit_per_minute": 60
}
// + Retry-After header (seconds)

502 Live data unavailable

{
  "error": "Could not reach the weather provider: ConnectionError"
}
// /api/latest/ only