How to load data from external API

#1

Hello,

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?

Thanks!

#2

Try using the requests module within one of your callbacks.

#3

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