How to find a deal in a specific pipeline and stage in Pipedrive

Hello!

I’m trying to figure out how to find a deal in Pipedrive in a specific pipeline and stage. For example, I want to check if a deal named 123 Corporation already exists in Pipeline A under the 1st Meeting stage.

The ideal outcome would be, if the deal already exists do not create a deal. If not, create a new Pipedrive deal.