How to load data from external API

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!

Try using the requests module within one of your callbacks.

1 Like

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

Hi i am having the same problem, so if i do the request every interval of time how can i make that final table available for interaction with the user? Example somebody picking the dropdown option and get data from the final table without the need of call the api in every customer iteraction?