Use =DIVV() just like GOOGLEFINANCE() - same syntax, better dividend data
Most dividend investors never need to pay
Free tier: 10,000 API calls/month โข Your 20-stock portfolio uses ~3,000/month
Free tier includes:
Want more? Upgrade for full access (PE ratio, volume, market cap, dividend history, etc.)
=GOOGLEFINANCE("AAPL", "price")
=GOOGLEFINANCE("AAPL", "high")
=GOOGLEFINANCE("AAPL", "low")=DIVV("AAPL", "price")
=DIVV("AAPL", "dayHigh")
=DIVV("AAPL", "dividendYield")=GOOGLEFINANCE("AAPL", "price",
DATE(2024,1,15))=DIVV("AAPL", "close",
"2024-01-15")๐ Free tier includes: price, open, dayHigh, dayLow, previousClose, dividendYield, dividendAmount
๐
Historical data requires Starter tier ($9/mo) or higher
In your Google Sheet, go to Extensions โ Apps Script

Open the downloaded file, select all (Cmd+A / Ctrl+A), and copy the code
Delete any existing code in the Apps Script editor and paste the DIVV code
Update the API_BASE_URL at the top of the script:
// For production (recommended)
const API_BASE_URL = 'https://api.divv.com';
// For local testing
const API_BASE_URL = {API_CONFIG.baseUrl};Click Save (๐พ icon), then go back to your sheet and try:
=DIVV("AAPL", "price")=DIVV(symbol, attribute, [startDate], [endDate])Get current or historical stock data with GOOGLEFINANCE() compatible syntax
Current Data (Free Tier):
=DIVV("AAPL", "price") โ 175.43
=DIVV("MSFT", "dividendYield") โ 0.89%
=DIVV("JNJ", "dividendAmount") โ 4.76
=DIVV("PG", "dayHigh") โ 168.85๐ Historical Data (Paid Tier - $9/mo):
// Single date
=DIVV("AAPL", "close", "2024-01-15") โ 185.59
=DIVV("AAPL", "close", DATE(2024,1,15)) โ 185.59
// Date range (returns 2D array)
=DIVV("AAPL", "close", "2024-01-01", "2024-01-31")
// Returns: [Date, Close] array for charting
// Cell reference
=DIVV("AAPL", "close", A1) // A1 = 2024-01-15Upgrade to unlock historical data
=DIVVBULK(symbols, attribute)Get data for multiple stocks at once (more efficient)
Example:
=DIVVBULK(A2:A10, "price") // Where A2:A10 contains: AAPL, MSFT, GOOGL, etc.
=DIVVDIVIDENDS(symbol, limit)Get dividend history for a stock
Example:
=DIVVDIVIDENDS("AAPL", 12)
// Returns last 12 dividends with dates and amounts=DIVVARISTOCRAT(symbol, returnYears)Check if stock is a Dividend Aristocrat (25+ years of increases)
Examples:
=DIVVARISTOCRAT("JNJ") โ TRUE (is Aristocrat)
=DIVVARISTOCRAT("JNJ", TRUE) โ 61 (years of increases)
=DIVVARISTOCRAT("TSLA") โ FALSEAll GOOGLEFINANCE() attributes are supported, plus additional dividend-specific fields:
priceCurrent pricehigh5252-week highlow5252-week lowpeP/E ratioepsEarnings per sharemarketcapMarket capitalizationvolumeTrading volumedividendYieldCurrent yield %dividendAmountAnnual dividendpriceAvg5050-day MApriceAvg200200-day MAyearHigh52-week highyearLow52-week low๐ก Tip: You can use either GOOGLEFINANCE() style names (e.g., high52) or Divv style names (e.g., yearHigh) - both work!
Data is cached for 5 minutes to improve performance and reduce API calls. You can adjust this in the script configuration.
Automatically retries failed requests up to 3 times with exponential backoff. Handles rate limiting gracefully.
Add your API key to unlock higher rate limits and premium features:
const API_KEY = 'your-api-key-here';
Need fresh data? Run this in the Apps Script editor:
clearDivvCache()
Here's how to build a simple dividend tracking dashboard in Google Sheets:
| Symbol | Price | Yield | Aristocrat? |
|---|---|---|---|
| AAPL | =DIVV(A2,"price") | =DIVV(A2,"dividendYield") | =DIVVARISTOCRAT(A2) |
| JNJ | =DIVV(A3,"price") | =DIVV(A3,"dividendYield") | =DIVVARISTOCRAT(A3) |
| PG | =DIVV(A4,"price") | =DIVV(A4,"dividendYield") | =DIVVARISTOCRAT(A4) |
Check that the symbol is correct and exists in our database. Symbols must be in UPPERCASE.
You've hit the rate limit. The function will automatically retry. Consider upgrading your plan or using DIVVBULK() for better efficiency.
Make sure you saved the script and refreshed your Google Sheet. Try closing and reopening the sheet.
The first time you use the function, Google will ask for authorization. Click "Review Permissions" and grant access.