yr API for agents (unofficial) — JSON over curl | clify
yr.no (Norwegian Meteorological Institute / NRK weather service): search places and get forecasts, current weather, nowcasts, long-range, coastal/tide/water-level, air quality, aurora, sun/moon, observation history, warnings, mountain pass conditions and meteorologist posts via yr.no's public /api/v0 JSON API.
Host: yr.no. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Example: curl 'https://clify-dev.netlify.app/sites.json'. Start with /search?q=weather, then call /abc/COMMAND. Responses are one JSON object. The hosted MCP and GitHub repo are also available.
Commands
search-locations
Search places worldwide by name; returns location ids (e.g. 1-92416) used by all location commands Params: q*, language
curl 'https://clify-dev.netlify.app/yr/search-locations?q=Bergen'
get-location
Get details for a location id: name, coordinates, elevation, region, time zone and which data types are available (_links) Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-location'
get-forecast
Daily weather forecast (~9-10 days) for a location: symbols, min/max temperature, precipitation, wind Params: id*
curl 'https://clify-dev.netlify.app/yr/get-forecast'
get-current-weather
Weather for the current hour at a location: symbol, temperature, feels-like, precipitation, wind, UV index Params: id*
curl 'https://clify-dev.netlify.app/yr/get-current-weather'
get-nowcast
Radar-based precipitation nowcast for the next 90 minutes in 5-minute steps (Nordic locations) Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-nowcast'
get-long-range-forecast
21-day (3 weeks) long-range forecast for a location with daily temperature/precipitation percentiles and weekly summaries Params: id*
curl 'https://clify-dev.netlify.app/yr/get-long-range-forecast'
get-coast-forecast
Coastal/sea forecast for a coastal location: waves, currents, sea temperature plus wind and air temperature per day Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-coast-forecast'
get-tide
Upcoming high and low tide times and levels (cm) for a Norwegian coastal location Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-tide'
get-water-level
Hourly sea water level for ~9 days (astronomical prediction vs. weather-adjusted forecast, cm) Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-water-level'
get-air-quality
Hourly air quality forecast (index, severity, health description) for a Norwegian location Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-air-quality'
get-aurora-forecast
Hourly northern lights (aurora) forecast: Kp index, aurora activity, darkness and cloud cover Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-aurora-forecast'
get-sun-moon-today
Today's sun and moon details: sunrise/sunset, day length, moon phase, illumination, next full/new moon and eclipses Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-sun-moon-today'
get-celestial-events
Sunrise/sunset and moonrise/moonset events for each day over ~13 days Params: id*
curl 'https://clify-dev.netlify.app/yr/get-celestial-events'
get-water-temperatures
Latest measured water/bathing temperatures at spots nearest to a location Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-water-temperatures'
get-webcams
Webcams near a location with distance and image URLs Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-webcams'
list-observation-stations
Weather stations near a location with their last 24h observed temperature, precipitation and wind Params: id*
curl 'https://clify-dev.netlify.app/yr/list-observation-stations'
get-observation-history
Observed weather history from the nearest station: last year, last 30 days, last 25 hours, or a specific date Params: id*, period*
curl 'https://clify-dev.netlify.app/yr/get-observation-history'
get-location-warnings
Active and upcoming weather warnings (farevarsler) affecting a location; an empty list means no warnings Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-location-warnings'
list-warnings
All active weather warnings in Norway (land and marine): title, severity, event type, areas, validity Params: language
curl 'https://clify-dev.netlify.app/yr/list-warnings'
list-regions
List the counties/regions of a country (used to filter warnings by county) Params: country*, language
curl 'https://clify-dev.netlify.app/yr/list-regions'
list-mountain-passes
All Norwegian mountain passes with open/closed/convoy status, road number and message count (collection fjell-sor = south, fjell-nord = north) Params: language
curl 'https://clify-dev.netlify.app/yr/list-mountain-passes'
get-mountain-pass
Mountain pass detail: open/closed status, road messages (closures, roadworks), road cameras and forecast location ids along the route Params: id*, language
curl 'https://clify-dev.netlify.app/yr/get-mountain-pass'
search-meteorologist-posts
Latest posts from yr's duty meteorologists (Meteorologene), optionally filtered by a keyword in the text, newest first Params: q, count
curl 'https://clify-dev.netlify.app/yr/search-meteorologist-posts'
get-meteorologist-post
Get one meteorologist post by its _id (full text, images, thread replies) Params: id*
curl 'https://clify-dev.netlify.app/yr/get-meteorologist-post'