# HTTP 404 in beta

**URL:** <https://forum.ecmwf.int/t/http-404-in-beta/6187>\
**Category:** Access and Login\
**Created:** [25 September 2024 08:03 UTC](https://forum.ecmwf.int/t/http-404-in-beta/6187 "2024-09-25T08:03:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Villafranca](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/miguel_villafranca/32/629_2.png) [@Miguel\_Villafranca](https://forum.ecmwf.int/u/Miguel_Villafranca)\
**Post date:** [25 September 2024 08:03 UTC](https://forum.ecmwf.int/t/http-404-in-beta/6187/1 "2024-09-25T08:03:58Z")

</div>

The example request from  
[https://ads-beta.atmosphere.copernicus.eu/how-to-api](https://ads-beta.atmosphere.copernicus.eu/how-to-api)

does not work for me, I get a 404 error for the endpoint url  
**[https://ads-beta.atmosphere.copernicus.eu/api](https://ads-beta.atmosphere.copernicus.eu/api)**

The production url fails as well  
https ads.atmosphere.copernicus.eu/api

I am using the cdsapi.Client constructor that takes two paramters (url and key, no UUID)

---

<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 September 2024 11:44 UTC](https://forum.ecmwf.int/t/http-404-in-beta/6187/2 "2024-09-25T11:44:34Z")

</div>

If there is a typo in the dataset listed, then this can give an error on the Endpoint URL.

Personnally I use within Python the following snippet to set my url & key:

```auto
import os

# Set the API credentials as environment variables
os.environ['CDSAPI_URL'] = 'https://cds-beta.climate.copernicus.eu/api'
os.environ['CDSAPI_KEY'] = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

```

For the key: look under your ADS profile page → Personal Access token (n.b.: not the User ID token)

---

<div class="post-metadata">

**Author:** ![Miguel\_Villafranca](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/miguel_villafranca/32/629_2.png) [@Miguel\_Villafranca](https://forum.ecmwf.int/u/Miguel_Villafranca)\
**Post date:** [25 September 2024 12:55 UTC](https://forum.ecmwf.int/t/http-404-in-beta/6187/3 "2024-09-25T12:55:01Z")

</div>

Dear Laurens,

there was indeed a typo in the url I was using!

Thanks for the tip

---

<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:** [1 October 2024 13:40 UTC](https://forum.ecmwf.int/t/http-404-in-beta/6187/4 "2024-10-01T13:40:11Z")

</div>

For future folks visiting this topic: CDS-Beta is still available, but cds should be used

```auto
import os

# Set the API credentials as environment variables
os.environ['CDSAPI_URL'] = 'https://cds.climate.copernicus.eu/api'
os.environ['CDSAPI_KEY'] = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

```
