We are trying to build a process that requires specific parameters to stop when calling / pulling data from an API , but we don't know how to create a loop and have a stop condition
You don't. Do the loop, but put in a filter condition right after the loop starts that prevents further execution once you've exceeded the condition you're after.