how to call a rest api in my streamlit app

In my streamlit app in python, I need call two rest api, first call is a get call without query parameter, the second api call is a get with query parameter. could anyone share with me small code sniplet to call rest api in streamlit app? Thanks in advance.