Issue Downloading ERA5-Land Post-Processed Daily Statistics via API (404 Error)

Hello,

I am trying to download the ERA5-Land post-processed daily statistics dataset (from 1950 to present) using the CDS API. However, I keep encountering a 404 Not Found error.

Here’s the setup and code I am using:

import cdsapi

dataset = “derived-era5-land-daily-statistics”
request = {
“variable”: [
“2m_dewpoint_temperature”,
“2m_temperature”
],
“year”: “1950”,
“month”: “01”,
“day”: [
“01”, “02”, “03”,
“04”, “05”, “06”,
“07”, “08”, “09”,
“10”, “11”, “12”,
“13”, “14”, “15”,
“16”, “17”, “18”,
“19”, “20”, “21”,
“22”, “23”, “24”,
“25”, “26”, “27”,
“28”, “29”, “30”,
“31”
],
“daily_statistic”: “daily_minimum”,
“time_zone”: “utc+00:00”,
“frequency”: “1_hourly”,
“area”: [51, 4, 41, 10]
}

client = cdsapi.Client()
client.retrieve(dataset, request).download()

2024-12-05 10:45:39,659 INFO Sending request to https://cds.climate.copernicus.eu/api/v2/resources/derived-era5-land-daily-statistics
INFO:cdsapi:Sending request to https://cds.climate.copernicus.eu/api/v2/resources/derived-era5-land-daily-statistics

HTTPError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/cdsapi/api.py in _api(self, url, request, method)
458 try:
→ 459 result.raise_for_status()
460 reply = result.json()

HTTPError: 404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/v2/resources/derived-era5-land-daily-statistics

The .cdsapirc file is correctly set up with my User ID and API token.
I attempted to use reanalysis-era5-land as a potential alternative, but it also failed with a similar 404 error.

  • Is the dataset derived-era5-land-daily-statistics still available for download via the CDS API?
  • If it has been replaced, could you point me to the correct dataset name or an alternative approach for obtaining daily minimum/maximum temperatures from ERA5-Land?
  • Are there any known issues or mistakes in my request structure that might cause this error?

Thank you in advance for your guidance!

Hi,
this url is not correct.

Please check that the API credentials are the one available from the following page (please log in first): Climate Data Store

Thanks

I changed the url to this one : https://cds.climate.copernicus.eu/api but I still have the same error message

2024-12-05 13:07:37,770 INFO Sending request to https://cds.climate.copernicus.eu/api/resources/derived-era5-land-daily-statistics
INFO:cdsapi:Sending request to https://cds.climate.copernicus.eu/api/resources/derived-era5-land-daily-statistics

HTTPError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/cdsapi/api.py in _api(self, url, request, method)
458 try:
→ 459 result.raise_for_status()
460 reply = result.json()

3 frames
HTTPError: 404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/resources/derived-era5-land-daily-statistics

During handling of the above exception, another exception occurred:

Exception Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/cdsapi/api.py in _api(self, url, request, method)
479 )
480 error = ". ".join(e)
→ 481 raise Exception(error)
482 else:
483 raise

Exception: Not Found

Is the URL format I am using now (https://cds.climate.copernicus.eu/api) correct for making requests? If not, could you please provide the correct URL format?

Hi,
in the .cdsapirc file, you need to add you key not the user ID.

Please copy the key from the same page where you took the url:
Climate Data Store

Thanks

I took my key from this page Climate Data Store is it the right url ?

Hi,
yes the right url is the one in the page.

Thanks

1 Like