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-key

You can create and manage API keys from your dashboard.

Standard APIs

Premium APIs
Premium

Current Weather
GET /v1/current
Get 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
q
Required

Location query - city name, coordinates (lat,lon), US/UK/Canada postal code, IP address, or IATA airport code

Example: London

units

Unit system: 'metric' (Celsius, km), 'imperial' (Fahrenheit, miles), or 'both' (default)

Example: metric

aqi

Include air quality data (yes/no)

Example: yes

lang

Response language code (e.g., en, fr, es, de)

Example: en