Language

Python API Client

Download an example Python client to jumpstart your development. To get going install its single requirement, requests, into your Python environment


pip install requests

Usage examples may be found at the bottom of the downloaded file. You can modify the downloaded file directly to do what you need or import from the file into your own code.


from oneatlas import OneAtlasClient

API_KEY = 'PUT YOUR API KEY HERE'
client = OneAtlasClient(api_key=API_KEY)

results = client.search({
    "cloudCover": "[0,30]",
    "incidenceAngle": "[0,40]",
    "processingLevel": "SENSOR",
    "relation": "intersects",
    "bbox":"-122.537,37.595,-122.303,37.807"
})
result = results['features'][0]
client.download_quicklook_to_file(result, '/tmp/quicklook.jpg')
Contact Us