Catalog API Search

Hi there

I’ve done a couple of searches over the Catalog API Search with unexpected results In this case, I sent a range period of 2 months, I’d got a list with dates, one of them is “2021-06-13”

curl -X POST ‘services.sentinel-hub.com/api/v1/catalog/search
–header 'Authorization: Bearer ’
–header ‘Content-Type: application/json’
–data-raw ‘{“distinct”: “date”,“bbox”: [-61.58209, -27.359646, -61.567898, -27.359646],“datetime”: "2021-04-01T00:00:00Z/2021-06-14T23:59:59Z",“collections”: [“sentinel-2-l1c”],“limit”: 100}’

the result:
[“2021-04-04”,“2021-04-09”,“2021-04-19”,“2021-04-24”,“2021-04-29”,“2021-05-04”,“2021-05-09”,“2021-05-14”,“2021-05-19”,“2021-05-24”,“2021-05-29”,“2021-06-03”,“2021-06-08”,"2021-06-13"]

On the other hand, I sent the same message but only 1 month range period, in this case, the date “2021-06-13” was missing.

curl -X POST ‘services.sentinel-hub.com/api/v1/catalog/search
–header 'Authorization: Bearer ’
–header ‘Content-Type: application/json’
–data-raw ‘{“distinct”: “date”,“bbox”: [-61.58209, -27.359646, -61.567898, -27.359646],“datetime”: “2021-05-01T00:00:00Z/2021-06-14T23:59:59Z”,“collections”: [“sentinel-2-l1c”],“limit”: 100}’

the result:
[“2021-05-04”,“2021-05-09”,“2021-05-14”,“2021-05-19”,“2021-05-24”,“2021-05-29”,“2021-06-03”,“2021-06-08”]

Does anybody know the reason?
Best regards
Fernando

Hi Fernando,

The polygon you’re using has a height of 0. If you extend id just a fraction, for example “bbox”: [-61.58209, -27.359646, -61.567898, -27.359647] the response should be as expected.

Thank you for reporting this isse, we will improve the service to handle such edge cases in a more user-friendly manner.

Hi primoz.

Sorry, my mistake.
Thanks a lot
Best regards

Fernando