Sync dividend data from Yahoo Finance to Google Sheets
Recipe ToolsDeveloper ToolAPI IntegrationDocument/FileData Parser
What it does
When a scheduled time arrives, this automation downloads dividend CSV files from Yahoo Finance for each ticker in a Google Sheet. It parses the data and updates the sheet with trailing twelve-month dividend information.
Who it's for
Finance and Accounting teams who track dividend payments and need current data refreshed automatically without manual downloads.
How teams use this
Refresh dividend data daily
Set the schedule to run each morning so the sheet always has yesterday's dividend payments. Finance teams open the sheet and see current information without asking for a manual refresh.
Track dividends for a portfolio
Add tickers to the Google Sheet and the automation pulls their dividend history from Yahoo Finance on schedule. Only the sheet content changes, not the flow itself.
Include ex-dividend dates in the sheet
Extend the CSV parser to extract ex-dividend dates alongside the dividend amounts so the sheet includes both data points. Add those columns to Google Sheets and map the parsed values to them.
Alert when dividends exceed a threshold
Add a condition after parsing so the automation only updates rows where the trailing twelve-month dividend is above a set amount. Teams focus on high-yield positions without noise from smaller payments.
How it works
- Run on a schedule. This automation starts at a specified interval so dividend data stays current without someone having to run it manually.
- Retrieve cookies from Yahoo Finance. Get session cookies via REST API so the next requests to Yahoo Finance are authenticated and can download the dividend CSV files.
- Read tickers from the sheet. Search rows in Google Sheets to find all ticker symbols that need dividend data downloaded from Yahoo Finance.
- Download and parse dividend CSVs. For each ticker, download the dividend CSV from Yahoo Finance via REST API, parse the lines, and extract trailing twelve-month totals into Google Sheets.
- Update the dividend column. Add the parsed dividend amounts back to Google Sheets so the sheet reflects the latest data from Yahoo Finance.