Google Distance Matrix API in Zapier: Setup Guide + Key Restrictions
🗺️

Google Distance Matrix API in Zapier: Setup Guide + Key Restrictions

View Details
Unsplash Cover
Unsplash Cover
Video
Prompt status
Draft ready
Video theme
Upbeat creator tutorial
Short video prompt
INVIDEO AI PROMPT (Short-form / TikTok + IG Reels)

Goal
Create a 20–35s vertical (9:16) video that teaches viewers how to set up Google Distance Matrix API for Zapier without breaking their Zap due to billing or key restriction mistakes.

Use this source article for accuracy and structure:
https://connex.digital/blog/google-distance-matrix-api-in-zapier-setup-guide-key-restrictions

Target audience
Zapier users and non-engineering ops or marketing folks who need distance and travel time between addresses inside automation.

Style + pacing
Fast cuts, energetic and clear. Warm US confident voiceover. Burned-in captions throughout. High-contrast, readable on-screen text (big font, minimal words).

Branding
Include “Connex Digital” in on-screen text at least once. Add Connex Digital logo subtly in-frame (corner watermark) for the whole video.

Music
Upbeat, trendy creator-tutorial background music at low volume under VO.

Structure (20–35 seconds)
1) Hook (first 2 seconds)
- On-screen text: “Zapier + Google Distance Matrix API failing?”
- VO: “If your Distance Matrix call keeps failing in Zapier, it’s usually one of three setup mistakes.”

2) Quick points (3–5 fast steps)
- Point 1: “Use a dedicated Google Cloud project”
VO: “Start with a new Google Cloud project so you don’t mix billing and permissions.”
- Point 2: “Enable billing + set a budget alert”
VO: “Distance Matrix requires billing. Add budget alerts to avoid surprise spend.”
- Point 3: “Enable the Distance Matrix API”
VO: “Make sure the right project is selected, then enable Distance Matrix in APIs & Services.”
- Point 4: “Create an API key”
VO: “Generate a key in Maps Platform Credentials.”
- Point 5: “Restrict the key, but don’t over-restrict”
VO: “Restrict it to Distance Matrix API, but if it’s too strict you’ll see ‘not authorized’ errors.”

3) Zapier usage callout (quick)
- On-screen text: “Zapier tip: Webhooks or Code step”
- VO: “In Zapier, use Webhooks or a Code step and pass key=YOUR_API_KEY safely.”

4) CTA (last 3–5 seconds)
- On-screen text: “Need help building the Zap? Connex Digital”
- VO: “Want help building it end-to-end? Book a quick call.”
- Show URL clearly: http://connex.digital/book/short

Captions
Generate captions that match the VO verbatim, with emphasized keywords like “billing”, “enable API”, and “restrict key”.

Assumptions
- Viewers are calling the API via Webhooks by Zapier or a Code step.
- The goal is driving distance and travel time between two addresses.
Long video prompt
INVIDEO AI PROMPT (Long-form / YouTube)

Goal
Create a 6–10 minute YouTube video (16:9) that walks viewers through a reliable, beginner-friendly setup of Google Distance Matrix API for Zapier, including the most common failure points (wrong project selected, API not enabled, billing missing, overly strict key restrictions).

Use this source article for structure and accuracy:
https://connex.digital/blog/google-distance-matrix-api-in-zapier-setup-guide-key-restrictions

Audience
Zapier users, ops teams, agencies, and small business owners who need automated distance and travel time calculations.

Video theme
Newsroom explainer with clean motion graphics and occasional screen recordings.

Presenter
Use an avatar talking head presenter. Presenter: Paul (founder). Conversational expert voice in warm US neutral or warm US confident tone.

Music
Upbeat, modern background track, subtle under VO.

Visual approach
- Mix: presenter talking head, screen recordings (Google Cloud Console), b-roll of “automation workflows”, and simple motion graphics.
- Use on-screen headings that match the article’s sections.
- Add quick “Gotcha” lower-thirds whenever the article flags common issues.

Include Connex Digital branding
- Subtle Connex Digital logo watermark throughout.
- Mention “Connex Digital” verbally once in intro or outro.

Required CTA
At the end, direct viewers to: http://connex.digital/book/video

Outline (match article headings)
1) Hook (0:00–0:20)
- Cold open: “If your Zapier call to Google Distance Matrix keeps failing, it’s usually billing or API key restrictions.”
- Promise: “In this video, we’ll set it up the safe way and avoid the common gotchas.”

2) Intro (0:20–0:45)
- Who this is for
- What we’re building: “A Google Cloud project with Distance Matrix enabled + a restricted API key you can use in Zapier.”

3) Section: What you are building (0:45–1:15)
- Explain what Distance Matrix does: travel distance + travel time between origins and destinations.
- Quick note on elements: origins × destinations (cost and quota awareness).

4) Section: Checklist — Setup for Zapier (1:15–6:30)
A) Create a dedicated Google Cloud project
- Screen recording: create project, naming example “Zapier-Distance-Matrix”.
- Gotcha callout: project names cannot include certain special characters.
B) Enable billing for the project
- Screen recording: billing page, linking project.
- Add budget alerts
- Show creating a budget and setting thresholds (50%, 90%, 100%).
- Explain why this matters for avoiding surprise spend.
C) Enable the Distance Matrix API
- Screen recording: APIs & Services → Library → search “Distance Matrix API” → Enable.
- Gotcha callout: confirm correct project is selected before enabling.
D) Create an API key
- Screen recording: Google Maps Platform → Credentials → Create credentials → API key.
E) Restrict the API key (do not skip)
- Explain difference:
- API restrictions: limit the key to Distance Matrix API (and only add others you truly need, like Geocoding).
- Application restrictions: explain when to use server-side usage, and why you should never expose a key in client-side code.
- Gotcha callout: if restrictions are too aggressive, Zapier calls can fail with “API project is not authorized”.

5) Section: Add the key to Zapier (6:30–8:15)
- Show 2 common patterns (high level, not overly technical):
1) Webhooks by Zapier
- Explain passing key=YOUR_API_KEY as query parameter.
- Explain keeping keys in Zapier step inputs, not hardcoding in multiple places.
2) Code by Zapier
- Explain storing key as an input field and referencing it in code.

6) Section: Common errors + quick fixes (8:15–9:30)
- “This API key is invalid”
- Confirm key copied correctly
- Confirm billing is enabled on the same project
- “This API project is not authorized to use this API”
- Confirm API enabled under APIs & Services → Library
- Confirm key API restrictions include Distance Matrix API
- Wait a few minutes after changing restrictions
- Billing concerns
- Use budgets and monitor usage
- Reduce calls by batching origins/destinations when appropriate

7) Recap + CTA (final 20–30 seconds)
- Quick recap checklist on-screen
- VO: “If you want help implementing this safely inside your Zap, Connex Digital can build the workflow end-to-end.”
- On-screen CTA and VO: http://connex.digital/book/video

Assumptions
- Viewer is using Distance Matrix API via Zapier Webhooks or a Code step, not a native Zapier app.
- The primary use case is driving distance and travel time between two addresses.
- The setup walkthrough is based on the Distance Matrix API (Legacy) flow currently visible in Google Cloud Console.
General
🔑 Keyword Goals
Generate LK
Generate NL
LinkedIn Post Content
🚀 Exciting news for Zapier users! If you're looking to integrate the Google Distance Matrix API into your workflows, I've just published a comprehensive setup guide. Learn how to create a dedicated Google Cloud project, enable billing, and generate an API key—all while avoiding common pitfalls like API restrictions and billing issues.

This guide is perfect for ops teams, agencies, and small business owners who rely on automated distance and travel time calculations.

🔗 Read more here: Google Distance Matrix API in Zapier: Setup Guide + Key Restrictions

#Zapier #GoogleDistanceMatrix #Automation #ConnexDigital #APIs
Hidden
Full URL
Unsplash Cover
Unsplash Cover
Prompt last generated
Mar 21, 2026
KW AI GEN
Google Distance Matrix API, Zapier setup, automation workflow
If you want to use the Google Distance Matrix API inside Zapier, you need three things: a Google Cloud project, billing enabled on that project, and an API key that is restricted for safety. The setup is not hard, but a few common “gotchas” (wrong project selected, API not enabled, or overly strict key restrictions) can stop your Zap cold.

What you are building

You are creating a Google Cloud project that has the Distance Matrix API enabled, then generating an API key you can use in Zapier to calculate distance and travel time between addresses.

Checklist: Google Distance Matrix API setup for Zapier

1) Create a dedicated Google Cloud project

  1. Open the Google Cloud Console.
  1. In the top bar, select the project dropdown.
  1. Click New Project.
  1. Name it something easy to recognize later, like Zapier-Distance-Matrix.
⚠️
Gotcha: Project names cannot include some special characters (for example, “/”).

2) Enable billing for the project (required)

Google requires billing to be enabled on the project to use Distance Matrix API.
  1. In Google Cloud Console, go to Billing.
  1. If you do not have a billing account yet, create one.
  1. Link your new project to the billing account.
Add budget alerts (recommended)
Budgets and alerts help prevent surprise spend.
  1. In Billing, open Budgets & alerts.
  1. Create a budget for this billing account or project scope.
  1. Add alert thresholds (example: 50%, 90%, 100%).

3) Enable the Distance Matrix API

  1. In Google Cloud Console, go to APIs & Services.
  1. Click Library.
  1. Search for Distance Matrix API.
  1. Click Enable.
⚠️
Gotcha: Make sure the correct project is selected in the top bar before you enable the API.

4) Create an API key

  1. Go to Google Maps Platform > Credentials.
  1. Click Create credentials > API key.

5) Restrict the API key (do not skip)

Google recommends restricting keys with both:
  • Application restrictions (where the key can be used)
  • API restrictions (which APIs the key can call)
In Credentials, click your new API key and apply restrictions:
Recommended restrictions for most Zapier use cases
  • API restrictions: Restrict to Distance Matrix API (and any other Maps API you truly need, such as Geocoding API).
  • Application restrictions: This depends on how you are calling the API.
    • If the key is only used in Zapier (server-side), keep it out of client-side code and do not share it publicly.
    • If you are embedding any Maps functionality client-side, use a separate browser-restricted key for that use case.
Gotcha: If you restrict the key too aggressively, your Zap may fail with “API project is not authorized” or similar errors. If that happens, confirm the API is enabled and revisit restrictions.

6) Add the key to Zapier

Where you add the key depends on your Zap:
  • If you are using Webhooks by Zapier, add the key as a query param (often key=YOUR_API_KEY) in your request URL.
  • If you are using a Code by Zapier step, store the key as an input field and reference it in code, rather than hardcoding it in multiple places.
If you want help implementing this safely inside your Zaps, Connex can help with Zapier support and build the complete workflow end to end.

Common setup errors (and quick fixes)

“This API key is invalid”

  • Confirm you copied the full key value.
  • Confirm billing is enabled for the same project the key belongs to.

“This API project is not authorized to use this API”

  • Confirm Distance Matrix API is enabled in APIs & Services > Library.
  • Confirm the key has API restrictions that include Distance Matrix API.
  • If you recently changed restrictions, wait a few minutes and try again.

Unexpected billing concerns

  • Set up a billing budget and alert thresholds.
  • Monitor usage and reduce calls by batching origins and destinations when possible.

Next step: build the Zap

If you share your workflow goal (for example, “cluster addresses that are close to each other”), we can recommend the right Zap structure and the safest way to store and rotate keys.
📞
Want help building this automation?