Can streamlit application access servers over the web using REST APIs?

Hi.

I’m new with streamlit :slight_smile:

Can a streamlit-applications access servers over the web using REST APIs?
should there be any issue with that?

Thanks

Yes, I do it all the time

1 Like

Thanks!

To expand upon @knorthover 's answer, you can use the requests library or any other http library to access APIs. How that is done is dependent on the API you are trying to reach.

If you are going to publish your app on Streamlit Cloud, then please see this section of the documentation on app secrets:

Best,
Randy

1 Like