Solar PV Energy Forecast
Changed onReturns an hourly and daily power and energy forecast for a solar PV system (up to 14 days; hourly to day 5, 3-hourly after). Available on Business plan and above; keys on other plans get 403 / error 2009. Invalid parameters return 400 with error 1010 (capacity_kw) or 1011 (other solar parameters).
Request
- Base URLhttps://api.weatherapi.com/v1
- AuthAPI key in query parameter key
Query parameters
Your WeatherAPI.com API key.
Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code, METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).
Number of forecast days (1–14). Default 1.
Array (DC) size in kWp. Must be greater than 0.
Panel tilt in degrees from horizontal. Default: absolute latitude.
Panel azimuth in degrees clockwise from north (180 = south). Default 180 in the northern hemisphere, 0 in the southern.
Mounting type. Default fixed.
Module type (sets temperature coefficient). Default standard.
System losses in %. Default 14.
Inverter AC rating in kW. Default capacity_kw / 1.2.
Inverter efficiency in %. Default 96.
Ground reflectance. Default 0.2.
Response
Solar PV energy forecast
Changes
- info
endpoint added
- info