Dashboard Mode - API calls from Apps Script
Goal
See how to fetch live data from a web API into Google Sheets using Apps Script and analyze it in a dashboard.
See how to fetch live data from a web API into Google Sheets using Apps Script and analyze it in a dashboard.
| City | Temperature (°C) | Humidity (%) | Condition |
|---|---|---|---|
| New York | 22 | 60 | Clear |
| London | 18 | 75 | Cloudy |
| Tokyo | 25 | 70 | Rain |
| Sydney | 20 | 65 | Clear |
| Mumbai | 30 | 80 | Sunny |
=AVERAGE(B2:B6)=MAX(C2:C6)fetchWeatherData()+----------------------+----------------------+ | Average Temperature | Highest Humidity | | (KPI) | (KPI) | +----------------------+----------------------+ | | | Weather Data Table | | | +----------------------------------------------+
User clicks a custom menu button in Google Sheets to run the fetchWeatherData() script. This updates the weather data table with fresh API data. The KPI cards automatically recalculate based on the updated data.
If you add a filter to show only cities with temperature above 20°C, which components update?