---
title: "Predicción nacional hoy. Última elaborada."
method: GET
path: "/api/prediccion/nacional/hoy"
tags: ["predicciones-normalizadas-texto"]
---

# Predicción nacional hoy. Última elaborada.

`GET /api/prediccion/nacional/hoy`

## Request

- Base URL: `https://opendata.aemet.es/opendata`
- URL: `https://opendata.aemet.es/opendata/api/prediccion/nacional/hoy`
- Auth: API key in header `api_key`
- TypeScript: <https://skmtc.dev/aemet/apis/aemet-opendata/docs/api/prediccion/nacional/hoy/get.ts> (a function with typed inputs; its response is checked against the schema)

Predicción nacional para el día actual a la fecha de elaboración en formato texto. Actualización diaria. Hay días en los que este producto no se realiza. En ese caso se devuelve la predicción nacional última que se elaboró.

## Response `200`

respuesta con éxito

- 200
  - `descripcion` string, required
  - `estado` integer, required
  - `datos` string, required
  - `metadatos` string, required

## Other responses

- `400`: petición incorrecta
- `401`: petición no autorizada
- `403`: acceso denegado
- `404`: petición sin datos
- `429`: petición que sobrepasa los límites del servicio

## Changes

- **2026-09-02** `2e5deaf5f149`: 2 info
  - added the non-success response with the status `400`
  - the `descripcion` response's property default value changed from `Unauthorized` to `Forbidden` for the status `403`
- **2026-08-06** `11e81d8ddea0`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/aemet/apis/aemet-opendata/changes/api/prediccion/nacional/hoy/get.md)

---

[API](https://skmtc.dev/aemet/apis/aemet-opendata.md) - [All operations](https://skmtc.dev/aemet/apis/aemet-opendata/llms.txt) - [OpenAPI document](https://skmtc.dev/aemet/apis/aemet-opendata/revisions/2e5deaf5f149?raw)
