It looks like you have a handful of different options here that you could work into your script to get the outcome that you’re looking for.
You might be able to utilize pagination as discussed here. This way, you could break up your request results and have your script evaluate the contents of each page individually. This seems like it might be a bit hacky, but it could be an option nonetheless.
I haven’t done much testing in terms of trying to filter by condition_id, but the option definitely exists as described here.
Finally, here’s some information about Alerts conditions API field names. This should give you some options in terms of querying by different attributes. In your case, I could see this being useful to query for only enabled conditions.
These resources should hopefully point you in the right direction. If I can do anything to clarify these points or help you further, please let me know!