Agriculture

Farming indicators for up to 14 days: growing degree days, rain, ET0 and crop water use, water balance, chill/frost/heat stress hours, leaf wetness, disease risk, Smith Periods and hourly spray windows, with optional season-to-date totals. Business plan and above; other plans get 403 / error 2009. Invalid parameters return 400 with error 1012 (crop) or 1013 (other parameters).

get/agriculture.json

Request

  • Base URL
    https://api.weatherapi.com/v1
  • Auth
    API key in query parameter key

Query parameters

keystring required
Example:YOUR_API_KEY

Your WeatherAPI.com API key.

qstring required
Example:London

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).

daysinteger

Number of forecast days (1–14). Default 1.

crop'wheat' | 'barley' | 'maize' | 'corn' | 'soybean' | 'potato' | 'rice' | 'cotton' | 'tomato' | 'sunflower' | 'grape' | 'none'

Crop preset. Default none.

gdd_basenumber

GDD base temperature °C.

gdd_uppernumber

GDD upper cut-off °C (above gdd_base).

kcnumber

Crop coefficient (ETc = ET0 x kc).

heat_thresholdnumber

Heat stress temperature °C.

season_startstring date

Season start date within the last 366 days, for season-to-date totals.

Response

Agriculture indicators

Changes