# Unable to download corresponding data using the new API

**URL:** <https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448>\
**Category:** C3S - Datasets and Usage\
**Created:** [25 July 2024 06:36 UTC](https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448 "2024-07-25T06:36:46Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [29 July 2024 10:36 UTC](https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448/21 "2024-07-29T10:36:59Z")

</div>

Unfortunately, I still haven’t identified the source of the issue. However, on my other computer, the same process is able to download normally. It might be a problem with the coding environment.

---

<div class="post-metadata">

**Author:** ![Odil\_Dasturlovchi](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/odil_dasturlovchi/32/508_2.png) [@Odil\_Dasturlovchi](https://forum.ecmwf.int/u/Odil_Dasturlovchi)\
**Post date:** [5 August 2024 12:40 UTC](https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448/24 "2024-08-05T12:40:38Z")

</div>

I posted step by step instructions on how to download using [CDS Beta](https://prod.ecmwf-forum-prod.compute.cci2.ecmwf.int/t/step-by-step-instructions-on-how-to-download-data-using-new-climate-data-store-beta-cds-beta/3743). You can check it. Hope this hepls you to fix the issue you are facing.

---

<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:** [19 August 2024 11:51 UTC](https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448/25 "2024-08-19T11:51:51Z")

</div>

Hello,

At first, I tried to download on my desktop computer and encountered the above issues. Later, I found that I could download normally on my laptop with the same process, so I suspected that there might be some problems with my code environment. Later, due to some reasons, I uninstalled and reinstalled Anaconda (I use it to run Python code) and then, after running the **pip install ‘cdsapi\>=0.7.0’** command in the **Anaconda PowerShell Prompt** with administrative privileges to install this library, I was also able to download normally.

This is my solution, I hope it is helpful, good luck to you.

WXJ

---

<div class="post-metadata">

**Author:** ![BPV](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/b/f07891/32.png) [@BPV](https://forum.ecmwf.int/u/BPV)\
**Post date:** [30 September 2024 04:22 UTC](https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448/26 "2024-09-30T04:22:16Z")

</div>

I encountered similar issues while trying to download data using `cdsapi`. Initially, I was using Python 3.11, but after multiple errors, I switched the interpreter to Miniconda with Python 3.12, and everything worked perfectly. I restarted the kernel in Spyder, and the script ran without any issues. I also tested it in PyCharm Community, and it worked fine. The issue seemed related to the Python environment I was using. Additionally, the `.cdsapirc` file needs to have the correct URL configured:

makefile

Copiar código

```auto
url: https://cds.climate.copernicus.eu/api
key: Personal Access Token

```

Switching the interpreter resolved the issue for me. good luck

BPV

[Previous page](https://forum.ecmwf.int/t/unable-to-download-corresponding-data-using-the-new-api/3448.md?page=1)
