For developers

How to Get Token Unlock Data Into Google Sheets

Pull the token unlock calendar, or a watchlist of your own tokens, into Google Sheets with a short Apps Script. Copy, paste, add your key, refresh.

·7 min read·By Non Fungible Howard

A spreadsheet is still the fastest way to sort, filter and share a list of upcoming token unlocks. This guide puts the Vestream unlock calendar into Google Sheets, and adds a second tab that tracks a watchlist of tokens you choose. It refreshes from a menu, or on its own once a day.

You don't need to write code. You'll paste one script into the sheet's editor, add your API key, and run it.

💡Why not IMPORTDATA or IMPORTJSON?

The Vestream API needs your key in an Authorization header, and Google Sheets' built-in import functions can't send headers. Apps Script can, and it keeps the key out of the cells, so anyone you share the sheet with can't see it.

1. Get a key

Get a free key at vestream.io/build. It appears on screen straight away; confirm your email within 24 hours to keep it working. The free plan is 250 calls a month and 50 a day. Each refresh of the calendar is one call; the watchlist costs one call per token.

2. Add the script

  1. 1Open a Google Sheet, then Extensions → Apps Script.
  2. 2Delete what's in the editor and paste the script below. Save.
  3. 3Click Project Settings (the cog), scroll to Script properties, and add one: name VESTREAM_API_KEY, value your key.
  4. 4Go back to the sheet and reload it. A Vestream menu appears. Choose Refresh unlock calendar. Google asks you to authorise the script the first time.
javascript
// Vestream unlock data for Google Sheets (Apps Script)
var API = "https://www.vestream.io/api/v1";
var CHAINS = { 1: "Ethereum", 10: "Optimism", 56: "BNB Chain", 101: "Solana", 137: "Polygon",
  8453: "Base", 42161: "Arbitrum", 43114: "Avalanche" };

function onOpen() {
  SpreadsheetApp.getUi().createMenu("Vestream")
    .addItem("Refresh unlock calendar", "refreshUnlocks")
    .addItem("Refresh watchlist", "refreshWatchlist")
    .addToUi();
}

function vestream(path, options) {
  var key = PropertiesService.getScriptProperties().getProperty("VESTREAM_API_KEY");
  if (!key) throw new Error("Add VESTREAM_API_KEY under Project Settings > Script properties");
  var opts = options || {};
  opts.headers = { Authorization: "Bearer " + key };
  opts.muteHttpExceptions = true;
  var res = UrlFetchApp.fetch(API + path, opts);
  var body = JSON.parse(res.getContentText());
  if (res.getResponseCode() !== 200) throw new Error("Vestream: " + (body.error || res.getResponseCode()));
  return body;
}

function tokens(raw, decimals) {
  return Number(raw) / Math.pow(10, decimals || 0);
}

function sheet(name) {
  var ss = SpreadsheetApp.getActive();
  return ss.getSheetByName(name) || ss.insertSheet(name);
}

// The next 14 days of unlocks worth $50,000 or more (one call).
function refreshUnlocks() {
  var body = vestream("/unlocks/upcoming?days=14&min_usd=50000&limit=200");
  var rows = body.unlocks.map(function (u) {
    return [new Date(u.unlock_time * 1000), u.token_symbol, CHAINS[u.chain_id] || u.chain_id, u.protocol,
      tokens(u.amount, u.token_decimals), u.usd_value === null ? "" : u.usd_value,
      u.supply_share === null ? "" : u.supply_share, u.url];
  });
  var s = sheet("Unlocks");
  s.clearContents();
  s.getRange(1, 1, 1, 8).setValues([["Unlock time", "Token", "Chain", "Platform", "Tokens", "USD value", "Share of supply", "Details"]]);
  if (rows.length) s.getRange(2, 1, rows.length, 8).setValues(rows);
  s.getRange("G:G").setNumberFormat("0.00%");
  s.getRange(1, 10).setValue("Updated " + new Date());
}

// Your own tokens: chain id in column A, token address in column B of "Watchlist",
// starting on row 2. Up to 25 tokens, one call each.
function refreshWatchlist() {
  var s = sheet("Watchlist");
  var last = s.getLastRow();
  if (last < 2) throw new Error("Add chain ids in column A and token addresses in column B, from row 2");
  var list = s.getRange(2, 1, Math.min(last - 1, 25), 2).getValues()
    .filter(function (r) { return r[0] && r[1]; })
    .map(function (r) { return { chain_id: Number(r[0]), address: String(r[1]).trim() }; });
  var body = vestream("/batch/tokens", {
    method: "post", contentType: "application/json", payload: JSON.stringify({ tokens: list }),
  });
  var out = body.results.map(function (t) {
    if (t.error) return [t.error, "", "", "", "", ""];
    var next = t.next_unlock;
    return [t.token_symbol, t.locked_share_of_supply === null ? "" : t.locked_share_of_supply,
      t.locked_value_usd === null ? "" : t.locked_value_usd,
      next ? new Date(next.unlock_time * 1000) : "none found",
      next && next.usd_value !== null ? next.usd_value : "", t.url];
  });
  s.getRange(1, 3, 1, 6).setValues([["Token", "Locked share of supply", "Locked value (USD)", "Next unlock", "Next unlock (USD)", "Details"]]);
  s.getRange(2, 3, out.length, 6).setValues(out);
  s.getRange("D:D").setNumberFormat("0.00%");
}

3. Track your own tokens

Add a tab called Watchlist. Put the chain id in column A (1 Ethereum, 56 BNB Chain, 8453 Base, 101 Solana and so on) and the token's contract address in column B, starting on row 2. Then choose Vestream → Refresh watchlist. Columns C to H fill with the token, how much of its supply is still locked, the value locked, and the next unlock.

Up to 25 tokens go in one request, and each token counts as one call. Solana mint addresses are case-sensitive, so paste them exactly.

4. Refresh it every day

  1. 1In the Apps Script editor, click Triggers (the clock).
  2. 2Add Trigger: function refreshUnlocks, event source Time-driven, Day timer, pick an hour.
  3. 3Add a second trigger for refreshWatchlist if you use it.

Once a day is plenty: vesting schedules don't change by the minute. A daily calendar refresh uses about 30 calls a month, well inside the free 250.

⚠️Avoid custom formulas for this

A cell formula such as =VESTREAM(...) re-runs whenever Sheets recalculates, which can be often, and every run is an API call. A menu item or a daily trigger calls the API only when you mean it to.

Reading the columns

  • Unlock time is shown in the sheet's own time zone (File → Settings).
  • Tokens is the amount in whole tokens; the API returns raw units and the script divides them for you.
  • USD value is blank when the token has no market deep enough to value the unlock honestly.
  • Share of supply is the unlock as a share of the token's onchain supply, minus burned tokens.
  • None found in the watchlist means no schedule on the platforms Vestream reads, not that the token has no vesting anywhere.

Where to go next

Frequently Asked Questions

Is the API key safe in a shared sheet?

Script properties are stored with the script, not in the cells, so people who can only view the sheet can't see the key. Editors of the script can. Don't share edit access with people you wouldn't give the key to.

Does it work in Excel?

Excel's Power Query can call the API with an Authorization header (Data → From Web → Advanced). The JSON is the same; you'd expand the unlocks list into rows.

How many tokens can the watchlist hold?

25 per refresh, the most one batch request takes. For more, split them across two tabs or two runs.

Can I change the window or minimum size?

Yes: edit days=14 (1 to 90) and min_usd=50000 in refreshUnlocks. Add &chain=8453 to limit it to one chain.

Track your own token vesting

Paste any wallet, see every unlock across 13 protocols and 13 chains. Free, no sign-up.

Build with the same data

A free API key and MCP server for token vesting, lock and unlock data across every protocol we index.

Get a free API key →

Read the developer docs

More from Vestream Resources