How to find a node if present in a particular label in neo4j


As per the screenshot -

My query is -

 MATCH (n)-[*]-(find)  WHERE =~'(?i).*Success.*'  RETURN n,r,find

Here, we get all the nodes that are connected to Success, till 3 levels of Relationships. However, we want Label/Relationship "API" only connected to Success .

How to obtain that ?

You mean something like:

MATCH (n:API)-[*]-(find)  WHERE =~'(?i).*Success.*'  
RETURN n, find

Or do you mean that every node (except find) must be an :API labeled node?