Google Sheets Integration
Use =DIVV() just like GOOGLEFINANCE() - same syntax, better dividend data
Deploy DIVV to your spreadsheet automatically
Connect your Google account and we'll add the DIVV functions to your spreadsheet instantly. No copying code required.
Track Prices & Dividends for Free. Forever.
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.)
Try It Now
Current Data (Free Tier)
Instead of this:
=GOOGLEFINANCE("AAPL", "price")
=GOOGLEFINANCE("AAPL", "high")
=GOOGLEFINANCE("AAPL", "low")Use this:
=DIVV("AAPL", "price")
=DIVV("AAPL", "dayHigh")
=DIVV("AAPL", "dividendYield")Historical Data (Paid Tier)
GOOGLEFINANCE syntax:
=GOOGLEFINANCE("AAPL", "price",
DATE(2024,1,15))DIVV syntax:
=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
Manual Installation (5 minutes)
Open Google Sheets Apps Script
In your Google Sheet, go to Extensions โ Apps Script

Copy the Script Code
Open the downloaded file, select all (Cmd+A / Ctrl+A), and copy the code
Paste into Apps Script
Delete any existing code in the Apps Script editor and paste the DIVV code
Configure API Endpoint
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 = 'https://divv-api-production.up.railway.app';
Save and Test
Click Save (๐พ icon), then go back to your sheet and try:
=DIVV("AAPL", "price")Available Functions
=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") โ FALSESupported Attributes
All GOOGLEFINANCE() attributes are supported, plus additional dividend-specific fields:
GOOGLEFINANCE() Compatible
priceCurrent pricehigh5252-week highlow5252-week lowpeP/E ratioepsEarnings per sharemarketcapMarket capitalizationvolumeTrading volume
Dividend-Specific
dividendYieldCurrent 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!
Advanced Features
๐ Automatic Caching
Data is cached for 5 minutes to improve performance and reduce API calls. You can adjust this in the script configuration.
๐ Retry Logic
Automatically retries failed requests up to 3 times with exponential backoff. Handles rate limiting gracefully.
๐ API Key Support
Add your API key to unlock higher rate limits and premium features:
const API_KEY = 'your-api-key-here';
๐งน Clear Cache
Need fresh data? Run this in the Apps Script editor:
clearDivvCache()
Example: Dividend Dashboard
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) |
Troubleshooting
#ERROR: Invalid symbol
Check that the symbol is correct and exists in our database. Symbols must be in UPPERCASE.
#ERROR: API error: 429
You've hit the rate limit. The function will automatically retry. Consider upgrading your plan or using DIVVBULK() for better efficiency.
Function not recognized
Make sure you saved the script and refreshed your Google Sheet. Try closing and reopening the sheet.
Authorization required
The first time you use the function, Google will ask for authorization. Click "Review Permissions" and grant access.