Error guide
Errors arrive as RFC 9457 (application/problem+json):
{ "type": "about:blank", "title": "Cuota mensual agotada", "status": 429, "detail": "El plan «evaluacion» permite 21474836480 bytes al mes y ya van 21600000000.", "instance": "d74ebd02-bb53-425e-b50e-b655e7f84685"}403 — missing or invalid key
x-api-key is absent, mistyped or disabled.
Note this 403 carries no JSON body: it is emitted at the gateway, before the API is reached.
curl -H "x-api-key: $GEOVIS_API_KEY" https://datos.geovis.es/v1/data/paisesA 403 while downloading a file is a different thing. The API key plays no part
there: it means the signed URL expired, was signed for a different IP, or was
copied badly — Policy, Signature and Key-Pair-Id must travel intact (quote
the URL in a shell). Ask for another one.
404 — no such dataset
The id is not in the catalogue. Its shape is {country}_{theme}_{layer}.
It can also happen for a layer that exists but is not publishable: if its licence is not confirmed, it does not appear in the catalogue and its id returns 404.
curl -H "x-api-key: $GEOVIS_API_KEY" https://datos.geovis.es/v1/data/datasets | jq '.datasets[].id'403 — no access to this dataset
Your key is valid but does not include that layer. The catalogue is visible in full on purpose — it is a shop window — and it is the download that is enforced.
{ "type": "https://datos.geovis.es/docs/referencia/errores#sin-acceso", "title": "Sin acceso a este dataset", "status": 403, "detail": "Tu clave no incluye «ee_ambiente_natura_zepa».", "dataset": "ee_ambiente_natura_zepa"}To see what you can download without probing, check descargable in the listing:
curl -s -H "x-api-key: $GEOVIS_API_KEY" https://datos.geovis.es/v1/data/datasets \ | jq '[.datasets[] | select(.descargable) | .id]'405 — method not allowed
The API is read-only. Only GET and HEAD.
429 — quota exhausted
Two different causes:
Requests. Too many per second or per day. Wait and retry; if it is sustained, you need a different plan.
Bytes. The body says so explicitly and carries plan, limite_bytes and
consumido_bytes. The Retry-After header gives the seconds until the quota
resets at the start of the month.
curl -sD- -o /dev/null -H "x-api-key: $GEOVIS_API_KEY" \ https://datos.geovis.es/v1/data/datasets/ee_cadastral_parcelas/download | grep -i retry-after500 — our fault
Something broke on our side. Retrying usually works. If it persists, report it
with the instance.
503 — zoning unavailable
Only on the /v1/urbanismo/* routes: the service has been stopped on our side, and it
would rather serve no record than one from the wrong environment. Your key is fine.
Try again later and, if it persists, report it with the instance.
Errors that are not the API’s
| Symptom | What is happening |
|---|---|
ValueError: Specifying 'bbox' not supported for this Parquet file | You are reading a file without a covering. Ours have it: check it is not an old copy |
| The download stops halfway | Resume with Range, do not start over. See large downloads |
The sha256 does not match | Incomplete or corrupt file. Download again; do not use it |