OneOS Docs
Genesis 0.3.1 Console

API reference

Weather

The forecast for a place.

Operations
1
Base path
https://os.one.ml/api/v1/weather
Scopes
weather:read
API keys
—
SDK
genesis.call('weather_forecast', …) · helpers under genesis.weather
CLI
genesis weather
MCP
1 tools

Operations

OperationEndpointAPI key
The forecast for a place as a weather cardPOST/forecast—

Forecast

The forecast for a place as a weather card

POST/v1/weather/forecast

weather:readweather_forecast

Scope weather:read. Now (when the days start today), the next hours, and each day's condition, high and low, chance of rain and wind, for days days from today at the place. The place rides in the JSON body, never the URL.

Request body application/json

  • placestringrequired

    A town, city or area, as a person names it (for example Paris, Texas) pattern ^(?=.{1,80}$)[\p{L}\p{M}\p{N}.,'()-]+(?: [\p{L}\p{M}\p{N}.,'()-]+)*$

  • daysinteger

    How many days, 1 to 10 (default 1) min 1 · max 10

  • units"F" | "C"

    F (°F, mph) or C (°C, km/h); default the place's own

  • agboolean

    true also returns each day's reference evapotranspiration (FAO ET0), rain total, soil temperature 0-7 cm and growing degree days, where One offers them

Responses

  • 200The weather card
    Response fields
    • op"forecast"required
    • cardobjectrequired

      One's weather card: kind weather, the place as Open-Meteo found it, now, hourly and daily, the source and as_of

    • card.kind"weather"required
    • card.placestringrequired
    • card.hourlyobject[]required
    • card.dailyobject[]required
    • card.sourcestringrequired
    • card.as_ofstring (date-time)required
    • agobject

      The farm fields, when ag=true

    • sourcesobject[]required
    • sources[].[].name"Open-Meteo"required
    • sources[].[].hrefstring (uri)required
    • sources[].[].creditstringrequired
    • sources[].[].licensestringrequired
    • as_ofstring (date-time)required

      When the card was made

  • 400A query string (INVALID_QUERY), an unknown, repeated, missing or invalid body field or a body that is not one JSON object (INVALID_REQUEST, details.field names it), or one One refused
  • 403The credential lacks weather:read
  • 404No place by that name was found (place_not_found)
  • 413A body over 2 KiB (PAYLOAD_TOO_LARGE)
  • 429Past one of the limits (RATE_LIMITED): your organization's reads (60 a minute), its reads that need Open-Meteo (20 a minute, 1,000 a day), or the ceiling all organizations share (200 Open-Meteo reads a minute, 10,000 a day). error.reason names which; retry after Retry-After seconds. On a 2xx answer these two headers describe the gateway's general per-caller limit, not these limits; a 429 from that general limit carries no error.reason
  • 502The forecast did not come back, or One could not be reached in time
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/weather/forecast" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "place": "string"
  }'

L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support