The example request from
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
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)
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:
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)
Dear Laurens,
there was indeed a typo in the url I was using!
Thanks for the tip
For future folks visiting this topic: CDS-Beta is still available, but cds should be used
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'