Where's the documentation for calling an external API to get data

How do I call an external API to retrieve data in json and put it in a table?