Growing Degree Units (GDU / GDD) for a point.
Changed onReturns Growing Degree Units (also called Growing Degree Days) for a US point (CONUS, Alaska, Hawaii), computed on read from stored daily maximum/minimum temperatures. No GDU grids are stored; the values are derived per request from the temperature bundles, so a crop's base/upper thresholds and the simple/modified method can be selected freely without re-running the pipeline.
Two modes:
- Forecast (default). Without season_start, the response carries a per-day GDU series across the NBM forecast horizon (days).
- Season cumulative. With season_start (a YYYY-MM-DD local date within the ~180-day observed window), the response stitches RTMA observed daily history + today's partial (hourly on-read rollup) + NBM forecast, returns a cumulative_total, and adds a per-day cumulative_gdu running sum. This is the number a grower tracks against crop growth-stage milestones. If part of the season window has no observed data, the per-day series still comes back 200 but cumulative_total is omitted and meta.gaps carries an unfilled span — a partial sum is not a season total. Days lost to a failed observed read are also listed in meta.unavailable, so a temporary outage is told apart from data that never existed.
Crops. Pass a catalog crop id (e.g. corn, soybean, wheat_winter, cotton, alfalfa) to use calibrated thresholds, or crop=custom with base_temp_c (and optionally upper_temp_c / method) to supply your own.
Every response echoes the resolved method, thresholds (always in °C), and a meta provenance block (day_definition, computation_path, source, unit, any gaps) so nothing is silently assumed.
Pass one location: lat and lon, zip, or location. A request without one returns 400; a ZIP or name that does not resolve returns 404; while location lookup is unavailable, a zip or location request returns 503 with Retry-After. The resolved place is echoed as location, present when the place was resolved.
A point outside the 50 US states and DC returns 404 outside-coverage with next_steps.
Request
- Base URLhttps://api.smarterweather.com
- AuthHTTP bearer
Query parameters
Latitude (WGS84 decimal degrees). Give it with lon. On a route that also takes zip or location, give only one location form.
Longitude (WGS84 decimal degrees). Give it with lat. On a route that also takes zip or location, give only one location form.
5-digit US ZIP code. Mutually exclusive with lat/lon and location.
Free-text location name. Examples: "Boston, MA", "94043", "Denver", "KSLC". Resolved by the Smarter Weather geocoder (a station id resolves as on /v1/geocode/search). Mutually exclusive with lat/lon and zip.
Crop catalog id (e.g. corn, soybean, wheat_winter, cotton, alfalfa) or custom to supply thresholds directly.
Season/planting start as a YYYY-MM-DD local date. Presence switches the response into cumulative season-to-date mode. Must be within the ~180-day observed-history window.
Forecast days requested (default 10). The window ends at the forecast's last complete day when that comes first; meta.forecast_end and meta.requested_end then state the cut.
Daily boundary: nws (default for forecast-only requests); season requests always use local_calendar. nws is the NDFD MaxT/MinT pairing: date D is one UTC day, night first, its low the NBM MinT over D 00Z-12Z and its high the NBM MaxT over D 12Z-00Z (6 pm-6 pm CST). local_calendar is midnight to midnight in the point's local zone (meta.timezone). With season_start the season is counted in local_calendar days end to end (observed and forecast), so no hour counts twice; meta.day_definition reports the definition used, and meta.notes says so unless local_calendar was requested.
Unit system for GDU + temperatures. imperial (default) uses °F-days; metric uses °C-days. Thresholds are always echoed in °C regardless.
Custom base threshold in °C. Required when crop=custom.
Custom upper cutoff in °C (enables the modified method). Optional.
GDU method for custom crops. Defaults based on whether upper_temp_c is supplied.
Include the crop's growth-stage GDU milestones.
Response
Growing Degree Units for the requested point.
Growing Degree Units for a point, forecast or season-cumulative.
Echoed crop id (corn, ..., or custom).
Version of the crop catalog used to resolve thresholds.
GDU method applied.
Resolved GDU thresholds, always expressed in °C.
Provenance for a GDU response. Nothing is silently assumed.
Per-day GDU series (chronological).
Season GDU total in the requested unit, from season_start through the window end (meta.forecast_end when the window was cut). Present only in cumulative mode (when season_start was supplied), and omitted even then when meta.gaps contains an unfilled span or meta.unavailable is set: those days have no data, so the sum would under-count the season. Treat an absent total on a season_start request as "season total unavailable" and fall back to the per-day series, which is still good for the days it covers. meta.gaps names the window that was lost.
Crop growth-stage GDU hints, present when include_milestones=true and the crop has catalog milestones.
Resolved location, as /v1/weather returns it. Present when the place was resolved: always for a zip or location request, and for lat/lon when the coverage check's lookup answered in time (omitted when that check fails open).
Example response
{
"location": {
"name": "Boston",
"region": "MA",
"country": "US",
"timezone": "America/New_York",
"county": "Suffolk",
"zip": "02108"
}
}Changes
- info
added the optional property
alternativesto the response with the status - info
added the optional property
alternativesto the response with the status - info
added the optional property
alternativesto the response with the status
3 more changes in this revision
- info