Searching from API includes cards from Junk in result list and there is no way to filter them out.
There should be a way to filter out cards in Junk. A way to add Junk to exclude array? Or a new key "searchInJunk": true/false?
This functionality is part of the include_membership_statuses property. Junked cards have a status of -1. “Active” cards have a status of either 1 (accessible but not “kept”) or 2 (accessible and kept).
So
"include_membership_statuses": [1, 2]
Should return only non-junked cards.
Thanks, this works great! Good to know.