Filtering for Dove-R and Super Dove imagery can be achieved by utilizing the Data API quick search endpoint, which enables efficient retrieval of the desired imagery ID list.
https://api.planet.com/data/v1/quick-search?_sort=acquired asc&_page_size=50
You will have to add a StringIn search filter like below:
{
"type": "StringInFilter",
"field_name": "instrument",
"config": ["PS2.SD", "PSB.SD"]
}
An example of a complete code can be found by following this 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
Comments
Please sign in to leave a comment.