Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Download files from Illumina's BaseSpace



  1. Follow steps 1-5 in the first link above to acquire access_token. This will take a while, but you only need to do this once. Never share this token!!
  2. Find the file you want to download. Copy the link, which looks something like: The "id" is the unique file identifier.
  3. Download the file with: wget -O filename '{id}/content?access_token={token}', where {token} is from step 1 and {id} from step 2.

A final note on security. It seems that the token acquired at step 1 does not automatically expire (in that case, this really needs improvement), so it is VERY IMPORTANT NOT to share this token, or others will gain access to all your data. Step 3 is not secure as others may see your download link with ps -f.


This comment has been minimized.

Copy link

commented Jan 25, 2018

Thanks for putting up this tutorial!
However, when trying to follow it, I noticed that the first link is broken.
Bellow is the updated link:
Also, its steps 2-6, not 1-5.

Copied from there:

  1. Go to and log in.
  2. From the toolbar, select My Apps.
  3. In the applications tab, select Create a New Application.
  4. Fill out the Applications Details and then select Create Application.
  5. On the application page, select the Credentials tab and copy the Access Token.

This comment has been minimized.

Copy link

commented Apr 7, 2019

That python script is old and broken. It has hard-coded directory paths that are wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.