Get image metadata by identifier from planet CLI or python client library

Comments

2 comments

  • Official comment
    Grischa Grossmann

    Hi Alexander,

    You can use the CLI to get the metadata in JSON format using the following command:
    planet -k YOUR_PLANET_API_KEY data search --item-type PSScene4Band --string-in id 20180910_073032_104a,20180922_080435_100a,20181015_080958_0f15

    To save it to a JSON file on your local filesystem you can do the following:
    planet -k YOUR_PLANET_API_KEY data search --item-type PSScene4Band --string-in id 20180910_073032_104a,20180922_080435_100a,20181015_080958_0f15 > metadata.json

    Please have a look at the recent forum post of my colleague Sam who put together a great cheat sheet for the PLanet CLI: https://support.planet.com/hc/en-us/community/posts/360021787993-Cheat-Sheet-Planet-Command-Line-Interface

    Another helpful resource is the examples from the CLI documentation: https://planetlabs.github.io/planet-client-python/cli/examples.html

    I hope that gets you started.
    Best,
    Grischa

    Comment actions Permalink
  • Permanently deleted user

    Hi Grischa,

    thanks, it is very helpful.

     

    Best regards,

    Alex

    0
    Comment actions Permalink

Please sign in to leave a comment.