{
 "kind": "api",
 "slug": "google-maps-platform",
 "path": "apis/google-maps-platform/",
 "name": "Google Maps Platform",
 "logo": "https://agentgid.com/media/avatars/googlemaps.png",
 "maker": "Google",
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Maps and location",
   "apis/maps/"
  ]
 ],
 "lead": "Maps, addresses, places and routes.",
 "chips": [
  {
   "label": "Maps and location",
   "path": "apis/maps/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Add Google Maps to my site: show the map with the Maps JavaScript API and a key restricted to my domain; call Geocoding v4, Places (New) with a field mask, and Routes from my server with a second key from .env; show Google Maps attribution and never cache results beyond what the terms allow."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://mapsplatform.google.com"
  },
  {
   "label": "Pricing",
   "href": "https://developers.google.com/maps/billing-and-pricing/pricing"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/googlemaps/google-maps-services-js"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free credits",
   "status": "cond",
   "sub": "One-time or needs a card",
   "quote": "Geocoding BAC8-4E68-E261 10,000 $5.00",
   "note": "Free tier: 10K free calls per SKU monthly (Essentials SKUs); 5K for Pro SKUs, 1K for Enterprise SKUs. As reported on the official pricing page, checked Oct 10, 2026.",
   "src": "https://developers.google.com/maps/billing-and-pricing/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "notify users that the Customer Application includes Google Maps features and content",
   "note": "Allowed under the Google Maps Platform terms with billing; keep Google's attribution, tell users in your terms that the app uses Google Maps, and do not build a substitute for Google Maps. Data: The same clause lets Google use request data to improve its products; the terms do not offer an opt-out.",
   "src": "https://cloud.google.com/maps-platform/terms"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key",
   "status": "info",
   "sub": "Env var none read automatically by the REST calls; the docs' agent example reads GOOGLE_MAPS_API_KEY",
   "quote": "Safeguard your API keys by storing them securely outside your application's source code, never exposing them directly in client-side code.",
   "note": "API key in the X-Goog-Api-Key header or the key= query parameter; OAuth 2.0 also works for some APIs such as Geocoding v4 and the MCP server. Only a key restricted to your website and to the Maps JavaScript API may sit in browser code. Call Geocoding v4, Places and Routes from your server with a separate, IP-restricted key.",
   "src": "https://developers.google.com/maps/api-security-best-practices"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "SDK",
   "quote": "Follow your LLM's MCP configuration documentation and use the MCP server URL",
   "note": "The docs show the Gemini CLI; other clients use the same address with the key in the X-Goog-Api-Key header. Needs a Cloud project with billing and the service enabled, or the Maps Demo Key for testing. Our agent check: 4 of 6 (Nov 13, 2026).",
   "src": "https://developers.google.com/maps/ai/grounding-lite"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Google Maps Platform does",
   "parts": [
    {
     "t": "prose",
     "text": "Google Maps Platform lets your website or app use Google Maps. You can show an interactive map, turn an address into a point on the map, and find shops or restaurants by a text search. It also gives driving routes with distance and time. You pay per request after a free monthly amount for each kind of request, and you need a Google Cloud account with billing."
    },
    {
     "t": "list",
     "items": [
      "Google Maps Platform is one of 31 APIs in the Maps and location category on AgentGid.",
      "At $5 per 1,000 requests it is the 10th cheapest of the 13 that publish a per-request price (cheapest: Visual Crossing Weather, $0.1).",
      "Its cheapest paid plan ($100 a month) is the 11th cheapest of the 15 here with a monthly plan.",
      "It is one of 27 that can be started for free.",
      "It ships an official MCP server, like 3 others here.",
      "Its official SDK is the 2nd most downloaded in the category (2.5M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Map with your shop on your site",
       "text": "Put an interactive Google map with a marker for your shop or office on your contact page.",
       "idea": false
      },
      {
       "title": "Turn customer addresses into map points",
       "text": "Convert the addresses people type in a form into coordinates, for example to plan deliveries or pickups.",
       "idea": false
      },
      {
       "title": "Find places by a text search",
       "text": "Let people search for \"vegetarian food in Sydney\" or \"shoe stores near Ottawa\" and show the matching places with their addresses.",
       "idea": false
      },
      {
       "title": "Driving time between two points",
       "text": "Show how long a drive takes and how far it is, for a delivery estimate or a \"how to get here\" block.",
       "idea": false
      },
      {
       "title": "Map facts for your AI assistant",
       "text": "Let an AI assistant look up places, weather and travel times from Google Maps while it answers a question.",
       "idea": false
      },
      {
       "title": "Address suggestions at checkout",
       "text": "Suggest full addresses while a customer types in the delivery form, so fewer orders go to a wrong address.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Google Maps Platform popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "2.5M",
       "l": "SDK downloads a week",
       "d": "+32.4% on the 4-week average",
       "up": true
      },
      {
       "n": "51",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "3,062",
       "l": "GitHub stars, googlemaps/google-maps-services-js"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "10K free calls per SKU monthly (Essentials SKUs); 5K for Pro SKUs, 1K for Enterprise SKUs"
      },
      {
       "l": "Cheapest plan",
       "v": "$100 a month"
      },
      {
       "l": "Usage price",
       "v": "Geocoding $5.00 per 1,000; Dynamic Maps $7.00 per 1,000; Compute Routes Essentials $5.00 per 1,000; Places Text Search Pro $32.00 per 1,000 (first tier 0-100,000)"
      },
      {
       "l": "Plans",
       "v": "Pay-as-you-go per SKU with free calls counted per SKU; optional subscription plans (Starter $100/month for 50,000 calls, Essentials $275/month, Pro $1,200/month)."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "1,000 address lookups (Geocoding, after 10,000 free a month)",
       "$5.00"
      ],
      [
       "1,000 map loads in a web page (Dynamic Maps, after 10,000 free)",
       "$7.00"
      ],
      [
       "1,000 static map images (after 10,000 free)",
       "$2.00"
      ],
      [
       "1,000 routes (Compute Routes Essentials, after 10,000 free)",
       "$5.00"
      ],
      [
       "1,000 place text searches (Text Search Pro, after 5,000 free)",
       "$32.00"
      ],
      [
       "1,000 address autocomplete requests (after 10,000 free)",
       "$2.83"
      ]
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.",
     "link": "developers.google.com/maps/billing-and-pricing/pricing",
     "href": "https://developers.google.com/maps/billing-and-pricing/pricing"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "All (per project)",
       "v": "Geocoding v4, 25 requests per second by default",
       "src": "https://developers.google.com/maps/documentation/geocoding/geocoding"
      },
      {
       "l": "Pay as you go",
       "v": "Free monthly cap per kind of request, for example 10,000 Geocoding requests, then paid per 1,000",
       "src": "https://developers.google.com/maps/billing-and-pricing/pricing"
      },
      {
       "l": "Subscriptions",
       "v": "Usage over the plan's monthly calls is not blocked but billed at pay-as-you-go prices",
       "src": "https://developers.google.com/maps/billing-and-pricing/subscriptions"
      },
      {
       "l": "Maps Demo Key (prototyping)",
       "v": "A daily limit; at the limit, use pauses until the next day with no charges",
       "src": "https://developers.google.com/maps/demo-key"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "developers.google.com/maps/documentation/geocoding/geocoding",
     "href": "https://developers.google.com/maps/documentation/geocoding/geocoding"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "API key in the X-Goog-Api-Key header or the key= query parameter; OAuth 2.0 also works for some APIs such as Geocoding v4 and the MCP server."
      },
      {
       "l": "Environment variable",
       "v": "none read automatically by the REST calls; the docs' agent example reads GOOGLE_MAPS_API_KEY",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "Yes",
       "status": "yes"
      },
      {
       "l": "Card at sign-up",
       "v": "Yes"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Create a Google Cloud project, turn on billing with a payment card, and enable the Maps APIs you need. Use the project's key; the agent writes no billing details.",
      "Create API keys and set restrictions (website for the browser key, IP addresses for the server key, and the allowed APIs). Put the server key in .env (for example GOOGLE_MAPS_API_KEY) and the browser key in the page config.",
      "Optionally set quotas or budget alerts in the Cloud console so a bug cannot run up a large bill. No code change; handle quota errors with backoff.",
      "Add a line to your app's terms saying it uses Google Maps and link to Google's terms and privacy policy. The agent can draft the text for the person to approve."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "It is a paid Google service under the Google Maps Platform terms, not open source. You may use it in commercial apps, but you must show Google's attribution and may not copy, store or reuse the map data outside the service. Places results may not be shown on a non-Google map."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed under the Google Maps Platform terms with billing; keep Google's attribution, tell users in your terms that the app uses Google Maps, and do not build a substitute for Google Maps.",
       "quote": "notify users that the Customer Application includes Google Maps features and content",
       "src": "https://cloud.google.com/maps-platform/terms"
      },
      {
       "l": "redistribute-files",
       "v": "No",
       "status": "no",
       "sub": "You may not export, bulk download, store or re-host Google Maps content such as tiles, geocodes or place data.",
       "quote": "pre-fetch, index, store, reshare, or rehost Google Maps Content outside the services",
       "src": "https://cloud.google.com/maps-platform/terms"
      },
      {
       "l": "To train your own AI",
       "v": "No",
       "status": "no",
       "sub": "Google Maps content may not be used to train, test, validate or fine-tune AI models.",
       "quote": "use Google Maps Content to improve machine learning and artificial intelligence models, including to train, test, validate or fine-tune the models.",
       "src": "https://cloud.google.com/maps-platform/terms"
      },
      {
       "l": "client-work",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed; the client's app must carry the Google Maps notices in its terms, and each project needs its own billing account and key.",
       "quote": "Customer will display all attribution that (i) Google provides through the Services",
       "src": "https://cloud.google.com/maps-platform/terms"
      },
      {
       "l": "Trains on what you send",
       "v": "The same clause lets Google use request data to improve its products; the terms do not offer an opt-out.",
       "quote": "Google collects and receives data from Customer and End Users (and End Users' End Users, if any), including search terms, IP addresses, and latitude/longitude coordinates.",
       "src": "https://cloud.google.com/maps-platform/terms"
      },
      {
       "l": "Keeps your data",
       "v": "Google collects search terms, IP addresses and coordinates from your app and its users, and may keep and use them to improve Google products.",
       "quote": "Customer acknowledges and agrees that Google and its Affiliates may use and retain this data to provide and improve Google products and services, subject to the Google Privacy Policy",
       "src": "https://cloud.google.com/maps-platform/terms"
      },
      {
       "l": "Where data is stored",
       "v": "If your billing address is in the European Economic Area, separate EEA terms apply and features vary by region.",
       "quote": "If your billing address is in the European Economic Area, effective on 8 July 2025, the Google Maps Platform EEA Terms of Service will apply to your use of the Services.",
       "src": "https://developers.google.com/maps/documentation/geocoding/overview"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "403 PERMISSION_DENIED",
       "v": "The request has no valid API key (or the key's restrictions block it)",
       "sub": "Check the X-Goog-Api-Key header, that the API is enabled for the key, and the key's restrictions."
      },
      {
       "l": "400 INVALID_ARGUMENT",
       "v": "A required part of the request is missing, for example the origin of a route",
       "sub": "Fix the request body; do not retry it unchanged."
      },
      {
       "l": "OVER_DAILY_LIMIT (Geocoding v3)",
       "v": "Missing or invalid key, billing not enabled, a self-imposed cap reached, or an expired payment card",
       "sub": "Ask the person to check billing and the key in the Cloud console; do not retry in a loop."
      },
      {
       "l": "OVER_QUERY_LIMIT (Geocoding v3)",
       "v": "You are over your quota",
       "sub": "Slow down and retry later with backoff, or ask the person to raise the quota."
      },
      {
       "l": "ZERO_RESULTS (Geocoding v3)",
       "v": "The request worked but the address was not found",
       "sub": "Tell the user the address was not found; do not retry the same address."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "4 of 6: llms.txt no, OpenAPI no, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Maps Experience agent tools (formerly Maps Grounding Lite), hosted by Google",
       "sub": "gemini mcp add -s user -t http -H 'X-Goog-Api-Key: API_KEY' maps-experience-agent-tools-mcp https://mapstools.googleapis.com/mcp"
      },
      {
       "l": "npm",
       "v": "npm install @googlemaps/google-maps-services-js",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install googlemaps",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Google Maps Platform",
       "me": true,
       "facts": [
        "$5 / 1k requests",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Mapbox",
       "why": "Pick Mapbox when you want custom-styled maps, routing and geocoding at a lower list price per 1,000 requests in our catalog.",
       "path": "apis/mapbox/",
       "facts": [
        "$0.25 / 1k requests",
        "Free tier"
       ]
      },
      {
       "name": "OpenCage Geocoding API",
       "why": "Pick OpenCage when you only need address lookup built on open data such as OpenStreetMap.",
       "path": "apis/opencage/",
       "facts": [
        "See its page",
        "No free tier"
       ]
      },
      {
       "name": "Geocodio",
       "why": "Pick Geocodio for bulk address lookup in the US, Canada, Mexico and the UK at a lower list price.",
       "path": "apis/geocod-io/",
       "facts": [
        "See its page",
        "No free tier"
       ]
      }
     ],
     "more": "All maps and location APIs",
     "more_path": "apis/maps/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Add Google Maps to my site: show the map with the Maps JavaScript API and a key restricted to my domain; call Geocoding v4, Places (New) with a field mask, and Routes from my server with a second key from .env; show Google Maps attribution and never cache results beyond what the terms allow."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Create a Google Cloud project with billing turned on, and enable the APIs you need (for example Geocoding, Places or Maps JavaScript).",
       "code": null,
       "src": "https://developers.google.com/maps/get-started"
      },
      {
       "text": "Create an API key under Keys & Credentials and restrict it to the APIs and the website or server that use it.",
       "code": null,
       "src": "https://developers.google.com/maps/get-started"
      },
      {
       "text": "Send your first request, for example turning an address into coordinates (example from the Geocoding docs).",
       "code": "curl -H \"X-Goog-Api-Key: API_KEY\" \\\n\"https://geocode.googleapis.com/v4/geocode/address/1600+Amphitheatre+Parkway,+Mountain+View,+CA\"",
       "src": "https://developers.google.com/maps/documentation/geocoding/geocoding"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "curl -H \"X-Goog-Api-Key: API_KEY\" \\\n\"https://geocode.googleapis.com/v4/geocode/address/1600+Amphitheatre+Parkway,+Mountain+View,+CA\"",
       "intro": "Geocoding API v4 request and the docs' example response, trimmed. The older v3 endpoint (maps/api/geocode/json) still works; Google asks v3 users to move to v4."
      },
      {
       "tab": "Response",
       "code": "{\n  \"results\": [\n    {\n      \"place\": \"//places.googleapis.com/places/ChIJF4Yf2Ry7j4AR__1AkytDyAE\",\n      \"placeId\": \"ChIJF4Yf2Ry7j4AR__1AkytDyAE\",\n      \"location\": {\n        \"latitude\": 37.422010799999995,\n        \"longitude\": -122.08474779999999\n      },\n      \"granularity\": \"ROOFTOP\",\n      \"formattedAddress\": \"1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA\",\n      ...\n    }\n  ]\n}"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Building a new project on Places API (Legacy) or Directions API (Legacy), as in older tutorials.",
       "fix": "Use Places API (New) and the Routes API; the legacy ones cannot be turned on for new projects.",
       "why": "As of October 2026 the legacy APIs can no longer be enabled for new Google Cloud projects."
      },
      {
       "dont": "Calling Places Text Search without an X-Goog-FieldMask header, or with places.* for everything.",
       "fix": "List only the fields the page shows, such as places.displayName,places.formattedAddress.",
       "why": "There is no default field list, the request fails without one, and the fields you ask for decide the price."
      },
      {
       "dont": "Using one unrestricted key everywhere, including in browser code.",
       "fix": "Use a website-restricted key for the Maps JavaScript API and a separate IP-restricted key on the server for web services.",
       "why": "You pay for any abuse of an unrestricted key."
      },
      {
       "dont": "Copying v3 geocoding code that reads results[0].geometry.location.lat and status fields from a v4 reply.",
       "fix": "In v4 read results[0].location.latitude and longitude, and check the HTTP status code instead of a status field.",
       "why": "v4 renamed the fields and removed status and error_message."
      },
      {
       "dont": "Saving geocoded addresses and place details in your database to avoid paying again.",
       "fix": "Store place IDs, and coordinates for at most 30 days; fetch fresh details when a user opens a place.",
       "why": "The terms forbid caching Google Maps content except these exceptions."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free tier?",
       "a": "Yes. Each kind of request has a free monthly amount, such as 10,000 Geocoding requests; billing must still be turned on.",
       "evidence": {
        "url": "https://developers.google.com/maps/billing-and-pricing/pricing",
        "quote": "Geocoding BAC8-4E68-E261 10,000 $5.00"
       }
      },
      {
       "q": "Can I try it without a payment card?",
       "a": "Yes, with the Maps Demo Key for prototypes; it needs a personal Google account and is not for production.",
       "evidence": {
        "url": "https://developers.google.com/maps/demo-key",
        "quote": "The Maps Demo Key is a no-cost feature that lets you start prototyping with Google Maps Platform without entering billing information."
       }
      },
      {
       "q": "Can I show Google place results on a Mapbox or Leaflet map?",
       "a": "No. The terms forbid using Google Maps Core Services with or near a non-Google map, including Places content.",
       "evidence": {
        "url": "https://cloud.google.com/maps-platform/terms",
        "quote": "Customer will not use the Google Maps Core Services with or near a non-Google Map in a Customer Application."
       }
      },
      {
       "q": "Can I save the coordinates I get back?",
       "a": "Only for up to 30 days for geocoding, places and routes; place IDs may be kept with no time limit.",
       "evidence": {
        "url": "https://developers.google.com/maps/documentation/geocoding/policies",
        "quote": "You can therefore store place ID values indefinitely."
       }
      },
      {
       "q": "Does Google block requests when I go over a subscription plan?",
       "a": "No. Calls over the plan's monthly amount keep working and are billed at pay-as-you-go prices.",
       "evidence": {
        "url": "https://developers.google.com/maps/billing-and-pricing/subscriptions",
        "quote": "Google does not block API calls if you exceed your subscription plan usage limits, ensuring your application avoids service interruptions."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Google"
  ],
  [
   "Category",
   "Maps and location"
  ],
  [
   "Price",
   "$5 / 1k requests"
  ],
  [
   "Plans from",
   "$100/mo"
  ],
  [
   "Official SDK",
   "npm @googlemaps/google-maps-services-js, PyPI googlemaps"
  ],
  [
   "Latest SDK",
   "3.4.2 on npm"
  ],
  [
   "Agent check",
   "4 of 6"
  ],
  [
   "Pricing checked",
   "Oct 10, 2026"
  ]
 ],
 "good": [
  "You need a Google Cloud project with billing turned on and a payment card, even for the free monthly amounts.",
  "For a quick prototype there is a free Maps Demo Key with no card, for personal Google accounts only and not for a live product.",
  "Each kind of request has its own free monthly amount, for example 10,000 for Essentials items and 5,000 for Pro items."
 ],
 "checked_line": "Read by AgentGid from 25 official pages, card checked Nov 10, 2026; usage numbers update daily."
}