API data or run any code using an API, sometimes the output is delayed for 2–3 minutes

“When I use API data or run any code using an API, sometimes the output is delayed for 2–3 minutes or the data does not appear on my screen. It only shows ‘running code’ without giving any result. What could be the possible reasons for this problem, and what are the possible solutions?”

Hi @Tayenjam_50073112, Could you please share more details about the API that is returning a delayed response? A cURL request would also be helpful. Thanks.