Skip to content

Scripts

Last updated: September 11, 2023


Python

Maxar eAPI provides a Python starter script for reference. The script is designed to illustrate how to use eAPI's REST endpoints to search and order 1B imagery. The script is set up to obtain an authorization token, and use it for the various requests.

Prerequisites

Python 3

Steps

1. Download the eAPI Python scripts.

2. Create a file called: config.json .

3. Add your eAPI credentials to the file using the following format:

{
"username":"<YOUR USERNAME>",
"password": "<YOUR PASSWORD>",
"s3_bucket": "<YOUR S3 BUCKET>", 
"s3_prefix": "<YOUR S3 PREFIX>"
}

4. Run the script:

python eapi_example.py [ARGUMENT]

To see a list of valid arguments run:

python eapi_example.py list