TOLNet API Authorisation issue

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
chayer
Posts: 1
Joined: Tue Feb 11, 2025 9:18 am America/New_York
Answers: 0

TOLNet API Authorisation issue

by chayer » Tue Feb 11, 2025 10:50 am America/New_York

I have been trying to set up the TOLNet API but I am having issues with the authorization. I have an EarthData account, and have tried doing this both by being logged in before starting and by logging in during the process, without any change in the result.

The information in the API description (https://tolnet.larc.nasa.gov/api/index.html#/Data/getDataDownload) states you must set up a .urs_cookies file before initializing the curl session. The webpage provides the following link: https://wiki.earthdata.nasa.gov/display/EL/How+To+Access+Data+With+cURL+And+Wget
On following this link, it redirects you to another page (https://wiki.earthdata.nasa.gov/login.action?sso=false) and you are presented with a 'Forbidden' webpage (this happens whether or not you are logged in to the EarthData system on the same web browser).

The webpage authorization (the button on the top right of the API description page) will allow you to download files using the webpage, though only by altering the web address after the authorization has taken place because it defaults to a file ID that doesn't exist, giving a 404 error initially. Since this webpage is supposed to show what the API can do, this isn't actually helpful as it doesn't provide any information on how to properly set up the API to accept that same authorization to function in an automated way.

Could someone let me know how I can sort this?

Thanks in advance.

Filters:

crystal
Site Admin
Site Admin
Posts: 4
Joined: Fri Apr 19, 2019 1:51 pm America/New_York
Answers: 0
Has endorsed: 2 times

Re: TOLNet API Authorisation issue

by crystal » Wed Feb 12, 2025 12:08 pm America/New_York

Apologies. The website containing the instructions for the .urs_cookies file has moved. The new url is: https://urs.earthdata.nasa.gov/documentation/for_users/data_access/curl_and_wget

We will update the TOLNet API with the new url.

Please let us know if you still run into download difficulties.

crystal
Site Admin
Site Admin
Posts: 4
Joined: Fri Apr 19, 2019 1:51 pm America/New_York
Answers: 0
Has endorsed: 2 times

Re: TOLNet API Authorisation issue

by crystal » Tue Feb 18, 2025 8:17 pm America/New_York

The link to the directions listed on the https://tolnet.larc.nasa.gov/api/index.html#/Data/getDataDownload has been updated. Thank you for pointing out that the old link was broken.

Post Reply