"Not Found Error" of ERA5 hourly data on single levels from 1940 to present

I try to download “reanalysis-era5-single-levels” from ERA5 hourly data on single levels from 1940 to present.

but they return “Not Found” Error in client download parts in python.

Here are my codes and error return.
codes are automatically genereted in the below site.
https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=download

moreover, I try to set url of “.cdsapirc” file as both ewds, cds like below.
https://ewds.climate.copernicus.eu/api
https://cds.climate.copernicus.eu/api

code:
‘’'python
import cdsapi

dataset = “reanalysis-era5-single-levels”

request = {
“product_type”: [“reanalysis”],
“variable”: [
“10m_u_component_of_wind”,
“10m_v_component_of_wind”,
“2m_dewpoint_temperature”,
“2m_temperature”,
“mean_sea_level_pressure”,
“mean_wave_direction”,
“mean_wave_period”,
“sea_surface_temperature”,
“significant_height_of_combined_wind_waves_and_swell”,
“surface_pressure”,
“total_precipitation”
],
“year”: [“2024”],
“month”: [
“01”, “02”, “03”,
“04”, “05”, “06”,
“07”, “08”, “09”,
“10”, “11”, “12”
],
“day”: [
“01”
],
“time”: [
“00:00”, “01:00”, “02:00”,
“03:00”, “04:00”, “05:00”,
“06:00”, “07:00”, “08:00”,
“09:00”, “10:00”, “11:00”,
“12:00”, “13:00”, “14:00”,
“15:00”, “16:00”, “17:00”,
“18:00”, “19:00”, “20:00”,
“21:00”, “22:00”, “23:00”
],
“data_format”: “grib”,
“download_format”: “unarchived”,
“area”: [41.5, -74.5, 39.5, -71.5]
}

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

error
‘’’
2025-05-11 17:44:28,422 INFO Sending request to https://ewds.climate.copernicus.eu/api/resources/reanalysis-era5-single-levels
‘’’

‘’’

HTTPError Traceback (most recent call last)
File c:\Users\HI\anaconda3\envs\ML\lib\site-packages\cdsapi\api.py:459, in Client._api(self, url, request, method)
458 try:
→ 459 result.raise_for_status()
460 reply = result.json()

File c:\Users\HI\anaconda3\envs\ML\lib\site-packages\requests\models.py:1024, in Response.raise_for_status(self)
1023 if http_error_msg:
→ 1024 raise HTTPError(http_error_msg, response=self)

HTTPError: 404 Client Error: Not Found for url: https://ewds.climate.copernicus.eu/api/resources/reanalysis-era5-single-levels

During handling of the above exception, another exception occurred:

Exception Traceback (most recent call last)
Cell In[12], line 46
5 request = {
6 “product_type”: [“reanalysis”],
7 “variable”: [
(…)
42 “area”: [41.5, -74.5, 39.5, -71.5]
43 }
45 client = cdsapi.Client()
—> 46 client.retrieve(dataset, request).download()

File c:\Users\HI\anaconda3\envs\ML\lib\site-packages\cdsapi\api.py:381, in Client.retrieve(self, name, request, target)
380 def retrieve(self, name, request, target=None):
→ 381 result = self._api(“%s/resources/%s” % (self.url, name), request, “POST”)
382 if target is not None:
383 result.download(target)

File c:\Users\HI\anaconda3\envs\ML\lib\site-packages\cdsapi\api.py:481, in Client._api(self, url, request, method)
476 e.append(
477 “To access this resource, you first need to accept the terms”
478 “of ‘%s’ at %s” % (t[“title”], t[“url”])
479 )
480 error = ". ".join(e)
→ 481 raise Exception(error)
482 else:
483 raise

Exception: Not Found
‘’’