Access new CDS rest API

Hello, We used to access the old version of the CDS REST API from Java code, but it stopped working after the upgrade.

We have updated the API key and accepted the licence to access the sis-agrometeorological-indicators.
We can only update our code by mimicking the Python code, but we can’t find the way.

We have changed the old Basic Auth with user/key to a header PRIVATE-TOKEN containing the API key as in the code of dataapi (datapi/datapi/api_client.py at 861e8ca74ef76d249e51cfa5143649fd11688175 · ecmwf-projects/datapi · GitHub) and try to use different alternatives of the endpoint URL, like
https://cds.climate.copernicus.eu/api/resources/sis-agrometeorological-indicators, but we always get a 404, not found.

Is there any update documentation like the one quoted here?
Thank you

Have you seen this thread?

https://forum.ecmwf.int/t/ecmwf-apis-faq-api-data-documentation

I was able to use this info to implement the new API in Java.

Thank you very much, I was searching in the forum but I didn’t find this post.

1 Like