Accessing Landsat 8 and Sentinel-1 data

Hello all,

I am trying to access Landsat-8 and sentinel -1 Images but it fails due to wrong token url:

aoi_bbox = BBox(bbox=aoi_coords_wgs84, crs=CRS.WGS84)
time_interval = “2022-07-01”, “2022-07-20”

search_iterator = catalog.search(
DataCollection.LANDSAT8_L2,
bbox=aoi_bbox,
time=time_interval,
fields={“include”: [“id”, “properties.datetime”], “exclude”: },
)

DownloadFailedException: Failed to download Server response: “{“code”: 401, “description”: “You are not authorized! Please provide a valid access token within the header [Authorization: Bearer ] of your request.”}”

the token url I used is as below:

config = SHConfig()
config.sh_client_id = getpass.getpass(“Enter your SentinelHub client id”)
config.sh_client_secret = getpass.getpass(“Enter your SentinelHub client secret”)
config.sh_token_url = “https://identity.dataspace.copernicus.eu/auth/realms/CDSE/protocol/openid-connect/token
config.sh_base_url = “https://services-uswest2.sentinel-hub.com
config.save(“cdse”)

what is the access token for lansat-8 data and also what is name of Sentinel-1 data in Datacollection.

Thank you
Mansi

Hi Mansi,

It looks like you are using Copernicus Data Space Ecosystem. Currently, you cannot access Landsat data through this endpoint. For any further questions on CDSE, please use their community forum.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.