Protect new mailboxesFresh mailboxes burn fast on a dirty list

Verify every lead before the first send and keep bounces low from day one.

Verify 25 emails free →
Product Bulk verificationReal-time APISignup form widget Catch-all detectionRole and disposable flagsFree email checker
Solutions Cold email agenciesSales teams and SDRsDevelopers and SaaS InstantlySmartleadApollolemlistClayHubSpotMailchimpWoodpeckerReply.ioSaleshandyZapierGoogle SheetsMaken8n All integrations
Mailboxes Google Workspace mailboxesOutlook mailboxesNew cold domain checklist
Compare vs ZeroBouncevs NeverBouncevs Emailable Pricing comparedCredit expiry comparedAll comparisons
Resources GuidesBounce rate benchmarksHow many bounces burn a domain?MX records MX lookupDomain health reportEmail list cleanerAll MX Tools
Pricing
Home / Integrations / Google Sheets

Verify emails in Google Sheets

Many lists live in Sheets. A short Apps Script can verify a column and write the result beside each address. There's no add-on yet, so this uses the API.

Updated 2026-11-24

Illustration for "Verify emails in Google Sheets"
The Google Sheets homepage
Google Sheets homepage

You can verify email addresses in Google Sheets with a short Apps Script that calls the Mail Exchange API and writes each result next to the address. There is no add-on to install: you paste the script once, add your API key, and get a "Mail Exchange" menu in the sheet. For lists of several thousand rows or more, a CSV export and bulk upload is faster.

TL;DR

  • Apps Script + the API: a menu item verifies new rows in column A and writes state, reason and (for slow servers) a list ID in B to D. A second item refreshes the pending rows without paying again.
  • Use a menu, not a cell formula. A custom function must return within 30 seconds and recalculates when cells change, which would re-run (and re-charge) checks.
  • Limits: 6 minutes per script run, and 20,000 URL fetches a day on a consumer Google account (100,000 on Workspace). For big lists, export CSV and use bulk verification.
  • There is no native Sheets add-on yet. Create an API key in your account.

Set it up

  1. Create an API key. Sign up, then create a key in your account under API keys.
  2. Open Apps Script. In your sheet choose Extensions, then Apps Script.
  3. Store the key. In Project Settings, add a script property named MX_KEY with your key as the value, so it isn't pasted into the code.
  4. Paste the script below and save. Then reload the sheet; a Mail Exchange menu appears.
  5. Run it. Put addresses in column A from row 2, choose Mail Exchange, then Verify new rows. Approve the permissions prompt the first time.
Rows that already have a result are skipped, so re-running never re-checks them.

The script

var API = 'https://mailexchange.com/api/v1';

function onOpen() {
  SpreadsheetApp.getUi().createMenu('Mail Exchange')
    .addItem('Verify new rows', 'verifyColumn')
    .addItem('Refresh pending rows', 'refreshPending')
    .addToUi();
}

function auth_() {
  return { Authorization: 'Bearer ' + PropertiesService.getScriptProperties().getProperty('MX_KEY') };
}

// Checks rows that have an address in A and nothing in B. 20 requests at a time.
function verifyColumn() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var last = sheet.getLastRow();
  if (last < 2) return;
  var rows = sheet.getRange(2, 1, last - 1, 4).getValues(); // A:D
  var todo = [];
  rows.forEach(function (r, i) { if (r[0] && !r[1]) todo.push(i); });
  for (var j = 0; j < todo.length; j += 20) {
    var chunk = todo.slice(j, j + 20);
    var responses = UrlFetchApp.fetchAll(chunk.map(function (i) {
      return { url: API + '/verify', method: 'post', contentType: 'application/json', headers: auth_(),
               payload: JSON.stringify({ email: String(rows[i][0]).trim() }), muteHttpExceptions: true };
    }));
    responses.forEach(function (res, k) {
      var r = rows[chunk[k]], code = res.getResponseCode();
      var d = JSON.parse(res.getContentText() || '{}');
      if (code === 202) { r[1] = 'pending'; r[2] = ''; r[3] = d.list_id; }   // slow server: already paid, read later
      else if (code >= 400) { r[1] = ''; r[2] = 'error: ' + (d.error || code); } // 402, 429...: left empty to retry
      else { r[1] = d.state; r[2] = d.reason; r[3] = ''; }
    });
  }
  sheet.getRange(2, 1, rows.length, 4).setValues(rows);
}

// Reads the result of each pending check instead of posting the address again.
function refreshPending() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var last = sheet.getLastRow();
  if (last < 2) return;
  var rows = sheet.getRange(2, 1, last - 1, 4).getValues();
  rows.forEach(function (r) {
    if (r[1] !== 'pending' || !r[3]) return;
    var res = UrlFetchApp.fetch(API + '/lists/' + r[3] + '/results?limit=1', { headers: auth_(), muteHttpExceptions: true });
    var row = (JSON.parse(res.getContentText() || '{}').results || [])[0];
    if (row && row.state !== 'pending') { r[1] = row.state; r[2] = row.reason; r[3] = ''; }
  });
  sheet.getRange(2, 1, rows.length, 4).setValues(rows);
}

Column B gets the state (deliverable, risky, undeliverable or unknown), column C the reason (for example accepted_email, low_deliverability for a catch-all, rejected_email), and column D a list ID only while a check is pending. The endpoints and fields are in the API reference.

Why a menu and not =VERIFY(A2)

A custom cell formula looks tidier, but Google's custom functions guide (checked 2026-11-22) explains the problems. A custom function "must return within 30 seconds" or the cell shows #ERROR!, and a slow mail server can take longer than that. Custom functions also can't use services that need authorisation, and they recalculate when a referenced cell changes, so an innocent edit could fire a new paid check. A menu-run script runs once, when you ask.

Limits to know

  • Run time. Google's Apps Script quotas (checked 2026-11-22) allow 6 minutes per execution. The script only checks rows with an empty column B, so if it stops, run it again and it carries on.
  • Daily fetches. 20,000 URL fetches a day on a consumer account and 100,000 on Google Workspace, counting every API call.
  • Credits. Each address checked is one credit. Duplicates sent as separate requests are charged twice, so remove them first (Data, Data cleanup, Remove duplicates). Unknown results are refunded.
  • Errors. A 402 means out of credits and a 429 a rate limit; both leave the row empty to retry. Details in errors, credits and rate limits.
Google Apps Script quotas, checked 2026-11-22. Each verification is one fetch; each run is capped at 6 minutes.

Bigger lists: use CSV instead

How many rows fit in one 6-minute run depends on how quickly the mail servers answer, so for lists of several thousand rows or more, download the sheet as CSV (File, Download, Comma-separated values) and use bulk verification. It takes up to 100,000 addresses per list, removes duplicates for free, and gives you a results file to import back into a new tab. If you want it automated, the list API does the same from a script.

Filtering the results

Add a filter on column B and copy the deliverable rows to a new tab for sending. Treat the risky rows by reason: catch-alls (low_deliverability) in their own slower campaign, role addresses (low_quality) only if the inbox fits your message, disposable addresses out. Expect a noticeable risky share on business lists: in Mail Exchange's checks of 779,784 unique business addresses (17 Oct to 22 Nov 2026, mostly B2B contact lists), 18.1% were catch-all, 7.8% role addresses and 7.6% undeliverable. More in email verification statuses and catch-all emails and cold email.

Credits are shared with the web app: plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains, and every plan includes the API. The free trial gives you 25 checks to try the script on a few rows first.

Mail Exchange checks of 779,784 unique business addresses, 17 Oct to 22 Nov 2026 (mostly B2B contact lists).

Frequently asked questions

Can I verify emails in Google Sheets?

Yes. An Apps Script menu item can call the Mail Exchange verification API for each row and write the state and reason into the next columns. For large lists, export the sheet as CSV and use bulk verification instead.

Why not use a custom formula like =VERIFY(A2)?

Google requires a custom function to return within 30 seconds, and it recalculates whenever a referenced cell changes. A slow mail server can exceed the limit, and recalculation could run paid checks again, so a script run from a menu is safer.

How many emails can I verify in Google Sheets at once?

Apps Script allows 6 minutes per run and 20,000 URL fetches a day on a consumer account, or 100,000 on Google Workspace. The script skips rows that already have a result, so you can run it again to continue. For several thousand rows or more, a CSV upload is faster.

Is there a Mail Exchange add-on for Google Sheets?

Not yet. Today you use the Apps Script on this page or a CSV round trip; a native connector is on the roadmap.

Google Sheets and its logo are trademarks of their owner and are shown only to identify the product. Mail Exchange is not affiliated with, sponsored by or endorsed by Google Sheets. The workflow on this page uses Google Sheets's own import and export tools and the Mail Exchange API; there is no official Google Sheets connector.

Start your free trial →