APIs allow your app to get data from servers. We fetch JSON, parse it, and display it dynamically.
fetch('https://api.example.com/data') .then(res => res.json()) .then(data => displayData(data));