If it times out you can simply increase the timeout time. Add on the HTTP Request node under “Options” → “Timeout” and set it to a higher value. It will then wait longer before it times out. But honestly, unless the API or network is super slow that should normally not be needed. So is definitely strange that it times out in the first place.
If that does not help it is also possible that the API has some kind of rate-limiting and if you send too many requests it maybe simply does not respond anymore. In this case, you can try adding on the HTTP Request node under “Options” the following:
Batch Interval: 1000
Batch Size: 1
It will then make 1 request per second. If that works you can try to decrease the batch interval and increase batch size. But probably best to check the API documentation to find the actual values.