Reference · built on requestCommons signalWeather & climate

AEMET OpenData

Spanish forecasts, observations, adverse weather warnings and climatological values from AEMET through a keyed REST API.

About

AEMET, the Agencia Estatal de Meteorología, is Spain's national weather service. AEMET OpenData is its reuse portal: a REST API under /opendata/api grouped into predicciones específicas, predicciones normalizadas en texto, observación convencional, avisos CAP, valores climatológicos, productos climatológicos, red de radares, red de rayos, información de satélite, mapas y gráficos and maestro. Each call returns a short JSON reply with a datos URL for the data and a metadatos URL for its description.

Through Fibric, an operator fetches municipal forecasts and warnings for the areas where you operate, joins them to sites and deliveries, and proposes a hold or a notice for a person to send.

This is a reference listing. It documents what Fibric would read from AEMET OpenData and what it could propose, based on the publisher's published interfaces. Fibric builds it under a managed deployment when you request it; selecting it here installs nothing.

Inputs

  • Predicciones específicas: daily and hourly municipal forecasts, with all-municipality endpoints since July 27, 2026, plus beach, mountain, UV index, maritime and snow forecasts
  • Observación convencional: station observations with timestamps in the ISO-8601 form YYYY-MM-DDTHH:mm:ss±hhmm
  • Avisos CAP: avisos de fenómenos meteorológicos adversos in Common Alerting Protocol form
  • Valores climatológicos: daily, monthly and annual values, normals for 1991-2020 and recorded extremes, across 947 stations
  • Red de radares, red de rayos and información de satélite imagery, and mapas y gráficos of significant weather
  • Maestro reference lists and predicciones normalizadas en texto for national forecasts today, tomorrow and medium term

Proposed actions

Read-only. This feed informs operators; it changes nothing.

Proposed actions are target capabilities. Every action runs propose-first and needs a validated deployment and the appropriate permissions.

What you can build

  • Relay an adverse weather warning to the sites it names

    Read the latest avisos CAP for a zone and draft a notice for each affected site, with the warning level and window, for a manager to send.

    With Severe Weather Notice

  • Hold deliveries into a municipality under warning

    Match delivery addresses to municipalities with an active aviso and propose a hold until it lapses.

    With Weather Hold

  • Plan covers from the municipal hourly forecast

    Use the hourly municipal forecast and the beach forecast to adjust tomorrow's cover forecast for terraces and coastal venues.

    With Cover Forecast

  • Pick a plant start time from the hourly forecast

    Feed the hourly municipal temperature to the start-time proposal for a building's heating and cooling plant.

    With Optimal Start

Requirements

  • An API key requested by a person on opendata.aemet.es, since the form needs a captcha
  • A renewal routine, because keys expire three months after issuance and keys with no expiry stop working on October 15, 2026
  • A second request to the datos URL in each reply to fetch the payload
  • Attribution as © AEMET for unaltered data or Fuente: AEMET for derived services
Authentication
An AEMET OpenData API key, requested with an email address and a captcha on the portal and sent as api_key on each request; keys issued now expire three months after issuance.

Limits

  • Every response is two-step: the first call returns datos and metadatos URLs, and the data comes from a second call
  • Keys are time-limited; an expired key returns a 401
  • Reuse terms forbid altering the meaning of the information and require preserving metadata and update dates

Access and pricing

Reference listing. Public feed access is separate from Fibric integration. If you request this feed, your quote covers the build, usage, and support.

Request AEMET OpenData ↗

Questions and answers

How do I get an API key and how long does it last?
Request it on opendata.aemet.es with an email address; the form includes a captcha. Under the policy announced on July 20, 2026, new keys expire three months after issuance, and keys issued without an expiry date stop working on October 15, 2026 with a 401 error.
Why does a request return URLs instead of data?
The API answers with a datos URL that points at the data and a metadatos URL that describes it. You make a second request to the datos URL to read the payload.
What are the reuse terms?
Reuse is free of charge and non-exclusive under Spain's public sector information law (Ley 37/2007 as amended by Ley 18/2015), for commercial and non-commercial use. Credit AEMET as © AEMET for unaltered information or Fuente: AEMET for value-added services, and do not suggest AEMET endorses your use.
Ask about AEMET OpenData

Ask about the capabilities and requirements in this listing.

For project-specific requirements, contact Fibric.