While currently there isn't a way to retrieve deals by deals custom property, our team have a new CRM search API in private beta that I believe might solve for your use case.
If you're keen in learning more about this beta, can you share with me your portal ID and what's the email that we can best reach you at?
If it's more comfortable for you, you can send it via DM.