If the API Call is coming in as JSON I highly recommend the plugin JSON Assistant by @NoCodeDataArtisan
You could use this plugin to manipulate the JSON response, and effectively add a key of type bolean value with a trigger based on the condition. Then you could simply refer to the API data and filter by Yes/No = Yes, for example.