# New Website Usage Mistakes

**URL:** <https://forum.ecmwf.int/t/new-website-usage-mistakes/3447>\
**Category:** C3S - Datasets and Usage\
**Tags:** api, era5\
**Created:** [25 July 2024 06:27 UTC](https://forum.ecmwf.int/t/new-website-usage-mistakes/3447 "2024-07-25T06:27:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user104](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/user104/32/761_2.png) [@user104](https://forum.ecmwf.int/u/user104)\
**Post date:** [25 July 2024 06:27 UTC](https://forum.ecmwf.int/t/new-website-usage-mistakes/3447/1 "2024-07-25T06:27:36Z")

</div>

Hi,  
I recently tried using the new beta version of the API and encountered an issue that I thought might interest you. Even when following the official example provided, I’m faced with an error. Here’s the code I used:

```python
import cdsapi
client = cdsapi.Client()
dataset = 'reanalysis-era5-pressure-levels'
request = {
  'product_type': ['reanalysis'],
  'variable': ['geopotential'],
  'year': ['2024'],
  'month': ['03'],
  'day': ['01'],
  'time': ['13:00'],
  'pressure_level': ['1000'],
  'data_format': 'grib',
}
target = 'download.grib'
client.retrieve(dataset, request, target)

```

However, I’m getting the following error:

```auto
HTTPError: 404 Client Error: Not Found for url: https://cds-beta.climate.copernicus.eu/api/resources/reanalysis-era5-pressure-levels
During handling of the above exception, another exception occurred:

```

I’m puzzled as to why this is happening. Is it possible that the new version of the API is not ready for data downloads yet? I would appreciate any insights you might have on this issue.  
Best regards,  
Wang

---

<div class="post-metadata">

**Author:** ![Kevin\_Marsh](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/kevin_marsh/32/368_2.png) [@Kevin\_Marsh](https://forum.ecmwf.int/u/Kevin_Marsh)\
**Post date:** [25 July 2024 10:09 UTC](https://forum.ecmwf.int/t/new-website-usage-mistakes/3447/2 "2024-07-25T10:09:58Z")

</div>

hi Wang, i just tried your request and it ran ok:

```auto
% more forum.py  
import cdsapi
client = cdsapi.Client()

dataset = 'reanalysis-era5-pressure-levels'
request = {
  'product_type': ['reanalysis'],
  'variable': ['geopotential'],
  'year': ['2024'],
  'month': ['03'],
  'day': ['01'],
  'time': ['13:00'],
  'pressure_level': ['1000'],
  'data_format': 'grib',
}
target = 'download.grib'
client.retrieve(dataset, request, target)
 % python3 forum.py
2024-07-25 11:05:47,241 INFO Request ID is 57bff2df-7096-4d09-a380-0b3d5094c837
2024-07-25 11:05:47,292 INFO status has been updated to accepted
2024-07-25 11:05:48,871 INFO status has been updated to running
2024-07-25 11:05:51,249 INFO status has been updated to successful
% ls -lt download.grib 
-rw-r--r-- 1 * * 2076588 25 Jul 11:05 download.grib

```

So it may have been a temporary issue on cds-beta  
Kevin

---

<div class="post-metadata">

**Author:** ![user104](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/user104/32/761_2.png) [@user104](https://forum.ecmwf.int/u/user104)\
**Post date:** [25 July 2024 10:43 UTC](https://forum.ecmwf.int/t/new-website-usage-mistakes/3447/3 "2024-07-25T10:43:48Z")

</div>

Hi Kevin,  
Thanks for your reply. I suspect there might be an issue with my .cdsapirc file configuration. I’ve set it up as follows:

```auto
url: https://cds-beta.climate.copernicus.eu/api
key: UID (formatted as ********-**** - ****-**** - ************ ):Personal Access Token (tried both uppercase and lowercase, but no success)

```

Unfortunately, it didn’t work. Any new suggestions?

Best regards,  
Wang

---

<div class="post-metadata">

**Author:** ![Laurens\_Stoop](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/laurens_stoop/32/480_2.png) [@Laurens\_Stoop](https://forum.ecmwf.int/u/Laurens_Stoop)\
**Post date:** [25 July 2024 12:20 UTC](https://forum.ecmwf.int/t/new-website-usage-mistakes/3447/4 "2024-07-25T12:20:45Z")

</div>

Maybe set your file as follows:

```auto
url: https://cds-beta.climate.copernicus.eu/api
key: [key here]

```

The inclusion of your UID within the .cdsapirc file is gone for the CDS-beta system. In the past you indeed needed to list both user id & key, now just the key.

The old one looked like:  
 ![afbeelding](https://forum.ecmwf.int/uploads/default/original/1X/f2d4ecbf4c5f9459aab4ef8818c6a4060c599240.png)  
But the new one looks like:  
 ![afbeelding](https://forum.ecmwf.int/uploads/default/original/1X/68d708edbfe309dc58c232d32d73df8f18be95a7.png)

[The other topic post on this.](https://prod.ecmwf-forum-prod.compute.cci2.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448/7)

---

<div class="post-metadata">

**Author:** ![Kevin\_Marsh](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/kevin_marsh/32/368_2.png) [@Kevin\_Marsh](https://forum.ecmwf.int/u/Kevin_Marsh)\
**Post date:** [25 July 2024 12:54 UTC](https://forum.ecmwf.int/t/new-website-usage-mistakes/3447/5 "2024-07-25T12:54:26Z")

</div>

also, if you logon to the CDS-beta and go to  
[https://cds-beta.climate.copernicus.eu/how-to-api](https://cds-beta.climate.copernicus.eu/how-to-api)  
you should see your details for what should be included in your .cdsapirc file
