Querying Forecasts

The Meteonorm API provides two similar forecast end points:

  1. /forecast/basic. Medium accuracy, hourly resolution only. Updated every 6 hours.
  2. /forecast/precision. High accuracy, hourly, 15-minute, and 1-minute resolutions. Updated every 15 minutes.

The following example returns a PV production forecast for a south-facing (180°) solar panel with a tilt of 30°, for the next 5 days:

PARAMETERS="global_horizontal_irradiance,\
global_horizontal_irradiance_with_shading,\
global_tilted_irradiance,\
global_tilted_irradiance_with_shading,\
pv_production,\
pv_production_with_shading,\
temperature"

curl -H "Authorization: Bearer demo0000-0000-0000-0000-000000000000" \
    --get \
    --data "lat=50" \
    --data "lon=10" \
    --data "start=now" \
    --data-urlencode "end=+5days" \
    --data "surface_azimuth=180" \
    --data "surface_tilt=30" \
    --data "horizon=auto" \
    --data "parameters=$PARAMETERS" \
    "https://demo.meteonorm.com/v1/forecast/basic"
sh

To get a forecast with higher accuracy, simple replace /v1/forecast/basic with /v1/forecast/precision.

See the API Reference for a complete list of options.

Note: These examples use our demo API URL. No registration required! See Free lat/lon locations for more information on how you can test the Meteonorm API free of charge. For operational use, replace demo.meteonorm.com with api.meteonorm.com.