Google Places API works on local but not on Streamlit Cloud

Hey @Samuel_Wainberg,

Without seeing any code, my guess would be that the API is denying the requests coming from your deployed app because the IP address associated with those requests is different from the IP address when you’re running your app locally. It looks like the Google Places API allows you to restrict your API key to specific IP addresses (doc here), so I would check to see if this restriction has been configured for your API key.

Unfortunately, we are in the process of discontinuing IP allowlisting on Community Cloud going forward since the platform is geared towards community members trying to share their apps and code publicly (you can learn more about this here).

As a result, if you do need to restrict your API key to specific IP addresses, the best solution would be to host your app on a different platform – I’d recommend checking out our community hosting guide here.