You can run this notebook in a live session with Binder.

The wekeo provider in EODAG#

This tutorial will show you how use EODAG to download data from WEkEO using eodag. WEkEO offers a wide range of Copernicus and Sentinel products.


For both, searching and downloading data, authentication is required. Therefore, you first have to create an account on https://www.wekeo.eu/ to get a username and a password which have to be added to the EODAG configuration (see Configure EODAG). After registration you also have to accept the Terms and Conditions to be able to retrieve data from EODAG. This has to be done once per user by executing the following:

import requests
from eodag import EODataAccessGateway

# instantiate EODAG API
dag = EODataAccessGateway()

# Authenticate on wekeo
auth = dag._plugins_manager.get_auth_plugin("wekeo").authenticate()

# Use your authentication to accept Copernicus Terms and Conditions
# (needed only once)
response = requests.put(
    data={"accepted": "true"},

Search and download data#

Many product types are available for wekeo provider:

wekeo_product_types = dag.list_product_types("wekeo")
[pt["ID"] for pt in wekeo_product_types]

Search for data on one these product types:

products, total_count = dag.search(
    geom=[0.25, 43.2, 2.8, 43.9],
SearchResult([EOProduct(id=47ec0e9810aa8304e8204780c10dbc5a, provider=wekeo)])

Download found product to /tmp:

path = products[0].download(outputs_prefix="/tmp")
Downloaded product is not a Zip File. Please check its file type before using it

The WEkEO data viewer#

If you go to the WEkEO homepage and click on “Data” in the top menu, you can search for products online. You can choose a product type (called dataset in WEkEO) by clicking on the “+” button next to “Layers” on the left side. Then you can choose some filter parameters and create a data request job which will show up in the next tab. If you are logged in with the same user that is configured for EODAG, you can also see the jobs created by EODAG. You can use this functionality to check their status and to directly download the products that have been found.