Using instrument ID to filter Data API results

To filter for Dove-R and SuperDove imagery, use the Data API quick search endpoint. It returns the list of matching image IDs.

https://api.planet.com/data/v1/quick-search?_sort=acquired asc&_page_size=50

Add a StringIn search filter like the following:

{
     "type": "StringInFilter",
     "field_name": "instrument",
     "config": ["PS2.SD", "PSB.SD"]
}

The following is a complete example:

{
     "name": "ORDERS_NAME_HERE",
     "item_types": ["SkySatCollect", "SkySatScene"],
     "filter": {
          "type": "AndFilter",
          "config": [
               {
                    "type": "DateRangeFilter",
                    "field_name": "acquired",
                    "config": {
                         "gte": "2020-01-01T00:00:00Z",
                         "lte": "2020-10-31T00:00:00Z"
                    }
               },
               {
                    "type": "StringInFilter",
                    "field_name": "instrument",
                    "config": ["PS2.SD", "PSB.SD"]
               },
               {
                    "type": "AssetFilter",
                    "config": ["analytic_sr"]
               }
          ]
     }
}

For more information on the Data API

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.