# Issues in Downloading EFAS

**URL:** <https://forum.ecmwf.int/t/issues-in-downloading-efas/3165>\
**Category:** Datasets and Usage\
**Tags:** efas\
**Created:** [28 June 2024 14:22 UTC](https://forum.ecmwf.int/t/issues-in-downloading-efas/3165 "2024-06-28T14:22:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Reale](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@Marco\_Reale](https://forum.ecmwf.int/u/Marco_Reale)\
**Post date:** [28 June 2024 14:22 UTC](https://forum.ecmwf.int/t/issues-in-downloading-efas/3165/1 "2024-06-28T14:22:28Z")

</div>

Hello I’m trying to download EFAS forecast data for 2023. This is the script that I’m using

import cdsapi

c = cdsapi.Client()

c.retrieve(  
‘efas-forecast’,  
{  
‘format’: ‘netcdf4.zip’,  
‘system\_version’: ‘operational’,  
‘originating\_centre’: ‘ecmwf’,  
‘product\_type’: ‘high\_resolution\_forecast’,  
‘variable’: ‘river\_discharge\_in\_the\_last\_6\_hours’,  
‘model\_levels’: ‘surface\_level’,  
‘year’: ‘2023’,  
‘month’: [  
‘01’, ‘02’, ‘03’,  
‘04’, ‘05’, ‘06’,  
‘07’, ‘08’, ‘09’,  
‘10’, ‘11’, ‘12’,  
],  
‘day’: [  
‘01’, ‘02’, ‘03’,  
‘04’, ‘05’, ‘06’,  
‘07’, ‘08’, ‘09’,  
‘10’, ‘11’, ‘12’,  
‘13’, ‘14’, ‘15’,  
‘16’, ‘17’, ‘18’,  
‘19’, ‘20’, ‘21’,  
‘22’, ‘23’, ‘24’,  
‘25’, ‘26’, ‘27’,  
‘28’, ‘29’, ‘30’,  
‘31’,  
],  
‘time’: [  
‘00:00’, ‘12:00’,  
],  
‘leadtime\_hour’: ‘72’,  
},  
‘download.netcdf4.zip’)

However I got the following message:  
2024-06-28 16:21:58,468 INFO Welcome to the CDS  
2024-06-28 16:21:58,468 INFO Sending request to [https://ads.atmosphere.copernicus.eu/api/v2/resources/efas-forecast](https://ads.atmosphere.copernicus.eu/api/v2/resources/efas-forecast)  
Traceback (most recent call last):  
File “/g100/home/userexternal/mreale01/.conda/envs/GR-env/lib/python3.8/site-packages/cdsapi/api.py”, line 427, in \_api  
result.raise\_for\_status()  
File “/g100/home/userexternal/mreale01/.conda/envs/GR-env/lib/python3.8/site-packages/requests/models.py”, line 943, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 404 Client Error: for url: [https://ads.atmosphere.copernicus.eu/api/v2/resources/efas-forecast](https://ads.atmosphere.copernicus.eu/api/v2/resources/efas-forecast)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “download\_efas\_forecast.py”, line 5, in   
c.retrieve(  
File “/g100/home/userexternal/mreale01/.conda/envs/GR-env/lib/python3.8/site-packages/cdsapi/api.py”, line 348, in retrieve  
result = self.\_api(“%s/resources/%s” % (self.url, name), request, “POST”)  
File “/g100/home/userexternal/mreale01/.conda/envs/GR-env/lib/python3.8/site-packages/cdsapi/api.py”, line 450, in \_api  
raise Exception(error)  
Exception: Resource efas-forecast not found

Could you help me please in fixing this problem?

best

marco

---

<div class="post-metadata">

**Author:** ![Karan\_Mahajan](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/k/c6cbf5/32.png) [@Karan\_Mahajan](https://forum.ecmwf.int/u/Karan_Mahajan)\
**Post date:** [24 March 2025 15:41 UTC](https://forum.ecmwf.int/t/issues-in-downloading-efas/3165/2 "2025-03-24T15:41:51Z")

</div>

Hi. Were you able to solve this?

---

<div class="post-metadata">

**Author:** ![Michela](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@Michela](https://forum.ecmwf.int/u/Michela)\
**Post date:** [25 March 2025 09:43 UTC](https://forum.ecmwf.int/t/issues-in-downloading-efas/3165/3 "2025-03-25T09:43:44Z")

</div>

Hi,  
please use the right credentials. You can copy them from here (please log in first):

> **[CDSAPI setup](https://ewds.climate.copernicus.eu/how-to-api)**

Thanks
