Microproduct Data GuideIntermediate

AEMET Spain CAP Warnings

Official Spanish adverse-weather CAP warning Atom feed from AEMET for inspecting alert IDs, updates, and affected regions.

Report a Problem

At a Glance

Difficulty
Intermediate — some data preparation helps
Size
Tiny · ≤0.01 GB
Formats
Atom, CAP
Access
API
API Key
Not Required
Provider
Agencia Estatal de Meteorología
Updates
Near Real Time
Last Verified
Sep 28, 2026
Source Type
Government Source
  • Python Syntax Checked

From Source to Product Signal

Test a Product Idea in Four Steps

AEMET publishes adverse-weather warnings through an Atom index with CAP details. Start with five current Atom entries, preserving IDs and update times. The legal notice requires source attribution and forbids distorting technical meaning; verify official area and validity before display.

1

Check the Setup

  • Python 3.10 or newer
  • An internet connection
  • The requests Python package
2

Access the Data

  1. 1.Read AEMET's CAP feed page and legal reuse conditions.
  2. 2.Fetch the national Atom index and inspect at most five entries.
  3. 3.Use linked CAP details for severity, affected area, and expiry.
Open Official Source
3

Run the Python Example

Install the packages, then run the notebook cell.

python -m pip install requests

import xml.etree.ElementTree as ET
import requests

response = requests.get(
    "https://www.aemet.es/documentos_d/eltiempo/prediccion/avisos/rss/"
    "CAP_AFAE_ATOM.xml", timeout=30,
)
response.raise_for_status()
root = ET.fromstring(response.content)
atom = "{http://www.w3.org/2005/Atom}"
print(root.findtext(f"{atom}updated"))
for entry in root.findall(f"{atom}entry")[:5]:
    print(entry.findtext(f"{atom}id"), entry.findtext(f"{atom}title"))
4

Inspect Spanish CAP Publications

Test the official warning index for a bounded Spanish alert card.

  1. 01Keep AEMET IDs, update timestamps, and CAP detail links.
  2. 02Check whether each CAP message is current and applies to the intended area.
  3. 03Explain why Atom publication alone cannot establish local warning coverage.

Dataset Details

Agencia Estatal de Meteorología is a government source. Last verified 2026-09-28. Temporal coverage: current adverse-weather alerts.

Geography

Formats

Provider

Agencia Estatal de Meteorología

Data Terms

AEMET public information may be reused commercially or noncommercially with attribution and integrity conditions.

Send Feedback