If you are ready to jump in, this page will get you started with the Geodesic python API.


You will want to use some sort of virtual environment to manage your python libraries. This ensures that you do not have version conflicts with any other projects you might have that also use python. We recommend Conda as it has the easiest installation options for libraries that need binaries.

To install miniconda (the lightweight Conda package manager) follow instructions here.

Once conda is installed we can create a virtual environment:

conda create -n geodesic python=3.8
conda activate geodesic

If you will be using any local raster processing functionality in the geodesic python API you should also install GDAL.

conda install gdal -c conda-forge

You can then install the Geodesic API through pip. There are a few installation options including installing all dependencies or only installing minimal dependencies to work. For getting started we recommend installing all dependencies. This will enable all functionality including all Jupyter widgets and visualizations. To install all dependencies along with the Geodesic API, run

pip install geodesic-api[jupyter]

Another common option is [all]. This will install everything needed for all parts of the geodesic-api. Geodesic should now be usable in the geodesic conda environment.


If the widgets wont display in Jupyter Lab, it is likely due to an outdated version of Conda. Check that you are using version 21.X.X or greater. Version 4.X.X may not work.

Using the API

To use the Geodsic API you must first authenticate with the platform. This can be done either from python or from the command line.

CLI Authentication

$ geodesic authenticate
To authorize access needed by Geodesic, open the following URL in a web browser and follow the instructions. If the web browser does not start automatically, please manually browse the URL below.*******************

The authorization workflow will generate a code, which you should paste in the box below.
Enter verification code:

This will print a link in the terminal and wait for a verification code. Copy paste the link into your browser and follow the login flow. You should be presented with a login page that looks like this:


After logging in you will be redirected to a page with your verification code.


Paste this code in the terminal prompt to complete the authentication flow.

Python Authentication

Python authentication can be done either in the python interpreter or a Jupyter environment.

>>> import geodesic
>>> geodesic.authenticate()

The rest of the process is the same as the CLI authentication. You will not need to log in each time you use the API. The credentials stored are long lived.

First Entanglement Query

Now that you have the python API installed and authenticated we can test that it works. Open a Jupyter notebook and try to query Entanglement.

ds = geodesic.list_datasets(search='modis')

You should see the dataset widget displayed with the metadata for the MODIS dataset. |


If for some reason you do not want to use a Jupyter environment, you can still perform the test query. Open a python interpreter from the command line and run the above lines. You will see a line of text for the MODIS dataset that should look something like

{'modis-mcd43a4': dataset:remote-sensing:earth-observation:multispectral:modis-mcd43a4}

Your Geodesic Python API should now be setup and ready to use.


Developer documentation for Seer AI APIs

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources