How to load data from external API



I am building a multi-tab dash application based off of the SalesForce CRM example. The data for each tab will come from an external REST API and will be in the form of JSON. After fetching the data, I am going to need to do some processing before displaying it.

What is the best way to fetch external data from a REST API and make the returned JSON available in my Dash Application?



Try using the requests module within one of your callbacks.


from the pandas library, there is read_json(url) that could also work for you.