---
title: "Predicción nacional hoy. Archivo."
method: GET
path: "/api/prediccion/nacional/hoy/elaboracion/{fecha}"
tags: ["predicciones-normalizadas-texto"]
---

# Predicción nacional hoy. Archivo.

`GET /api/prediccion/nacional/hoy/elaboracion/{fecha}`

## Request

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

Predicción nacional para el día correspondiente a la fecha que se pasa como parámetro en en formato texto. Actualización diaria. Hay días en los que este producto no se realiza. En ese caso se devuelve un 404 producto no existente.

## Path parameters

- `fecha` string, required

## 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/elaboracion/:fecha/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)
