If you have to trigger an API call multiple times, maybe this will help? Run JavaScript | Retool Docs