API Documentation
Complete reference for the WeatherAI.io REST API at api.weatherai.io
Authentication
All API requests require authentication via an API key
Include your API key in the X-API-Key header with every request:
X-API-Key: your-api-keyYou can create and manage API keys from your dashboard.
Standard APIs
Premium APIsPremium
Current Weather
GET /v1/currentGet real-time weather conditions for any location worldwide. Returns current temperature, humidity, wind, pressure, and more with AI-enhanced accuracy.
AI Enhancements
- Real-time accuracy validation against multiple data sources
- Confidence scoring for current readings
- Anomaly detection for sensor errors
Request Parameters
qRequired
Location query - city name, coordinates (lat,lon), US/UK/Canada postal code, IP address, or IATA airport code
Example: London
unitsUnit system: 'metric' (Celsius, km), 'imperial' (Fahrenheit, miles), or 'both' (default)
Example: metric
aqiInclude air quality data (yes/no)
Example: yes
langResponse language code (e.g., en, fr, es, de)
Example: en
