Forums

API response time

Hi PythonAnywhere Team,

My code involves calling an external API. The access log shows it takes around 3 seconds to respond, while the response time is around 1 second when I call it locally. I suspect it is because my IP is closer to the API's location than PythonAnywhere's. Is there any way to improve the response time?

No, the response time is determined by the site and the network and those are not things that we can change.