Follow

API authentication options

The Planet API allows you to authenticate in two different ways:
with your user credentials or with your API key.

The two following example requests using cURL will both search for RapidEye scenes with cloud cover of less than 10%:

curl -u "c35373fccc102af1b225071a7bc35a90:" "https://api.planet.com/v0/scenes/rapideye/?cloud_cover.estimated.lt=10

curl -u "jane.smith@planet.com:secretpassword" "https://api.planet.com/v0/scenes/rapideye/?cloud_cover.estimated.lt=10

In the first example, we used the API key (c35373fccc102af1b225071a7bc35a90) followed by a semi-colon for authentication. In the second example, we used the email address (jane.smith@planet.com) and password (secretpassword) separated by a semi-colon.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.