The Maps Static API returns a Google Maps image based on URL parameters sent in a standard HTTP request, so you can embed a map on a web page by using an `img` tag; no JavaScript or dynamic page loading is required.

## Maps Static API: key facts

- **Product:** Maps Static API
- **Also known as:** Static Maps, Static Maps API
- **Category:** Maps
- **Platform:** Web service (REST)
- **Runs on:** Server (backend code)
- **Launch stage:** GA
- **Lifecycle:** Active
- **Overview:** [Maps Static API overview](https://developers.google.com/maps/documentation/maps-static/overview.md.txt)

## Maps Static API: when to use it

**Use Maps Static API when:**

- You need to show a map image on a web page without JavaScript or dynamic page loading.
- You need a map image inside a web page or mobile application, or on a device where the Maps JavaScript API isn't suitable.
- You need a non-interactive map image with markers, paths, or polygons defined in URL parameters.
- You need a styled static map, using style parameters or a map ID with cloud-based maps styling.
**Don't use Maps Static API when:**

- You need an interactive map that users can pan, zoom, or click in a web page. Use [Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/quick-reference.md.txt) instead.
- You need an interactive map inside a native Android app. Use [Maps SDK for Android](https://developers.google.com/maps/documentation/android-sdk/quick-reference.md.txt) instead.
- You need an interactive map inside a native iOS app. Use [Maps SDK for iOS](https://developers.google.com/maps/documentation/ios-sdk/quick-reference.md.txt) instead.
- You need a static (non-interactive) Street View panorama image instead of a map. Use [Street View Static API](https://developers.google.com/maps/documentation/streetview/quick-reference.md.txt) instead.

## Maps Static API: setup

- **Service to enable:** `static-maps-backend.googleapis.com`
- **Authentication:** API key
- **Get started:** [Set up Maps Static API](https://developers.google.com/maps/documentation/maps-static/start.md.txt)
- **Reference:** [Maps Static API reference](https://developers.google.com/maps/documentation/maps-static/start.md.txt)
- **Pricing:** [Maps Static API usage and billing](https://developers.google.com/maps/documentation/maps-static/usage-and-billing.md.txt)
- **Policies:** [Maps Static API policies](https://developers.google.com/maps/documentation/maps-static/overview.md.txt#policies)

## Maps Static API: common mistakes

- **Problem:** Parameter values with separators such as the pipe character (`|`) aren't URL-encoded, so requests are malformed. **Fix:** URL-encode all parameters before sending the request (for example, encode `|` as `%7C`). See [/maps/documentation/maps-static/start](https://developers.google.com/maps/documentation/maps-static/start.md.txt).
- **Problem:** Depending on usage, requests with only an API key might need a digital signature; Google strongly recommends using both an API key and a signature. **Fix:** Sign requests with the URL signing secret from the Cloud console, and limit unsigned requests on the Quotas page. See [/maps/documentation/maps-static/digital-signature](https://developers.google.com/maps/documentation/maps-static/digital-signature.md.txt).
- **Problem:** Marker locations given as addresses, place IDs, or polylines need geocoding, and a request is limited to 15 such markers. **Fix:** Specify marker locations as latitude/longitude coordinates when you need more than 15 markers. See [/maps/documentation/maps-static/start](https://developers.google.com/maps/documentation/maps-static/start.md.txt).
- **Problem:** Downloading and serving copies of Maps Static API images from your own site instead of pointing directly to the Maps Static API URL. **Fix:** Point the `img src` (or CSS `background-image`) directly at the Maps Static API URL so Google serves the image. See [/maps/faq](https://developers.google.com/maps/faq.md.txt).

## What you can do with Maps Static API

See the guides linked below for each task, or compare across products in the
[Capabilities Explorer](https://developers.google.com/maps/documentation/capabilities-explorer.md.txt).

### Maps Static API: Maps

- [Create a reusable map identifier to store map configuration and styling settings.](https://developers.google.com/maps/documentation/maps-static/map-ids/get-map-id.md.txt)
- [Change the map type.](https://developers.google.com/maps/documentation/maps-static/start.md.txt#MapTypes)
- [Return a URL of a configurable, static map image.](https://developers.google.com/maps/documentation/maps-static/overview.md.txt)
- [Embed a configurable, static map image into a web page.](https://developers.google.com/maps/documentation/maps-static/start.md.txt)
- [Customize the size and scale of a static map image.](https://developers.google.com/maps/documentation/maps-static/start.md.txt#Imagesizes)
- [Customize the image format of a static map image.](https://developers.google.com/maps/documentation/maps-static/start.md.txt#ImageFormats)

### Maps Static API: Maps annotations

- [Add a shape or line to a map.](https://developers.google.com/maps/documentation/maps-static/start.md.txt#Paths)
- [Add a marker to a map.](https://developers.google.com/maps/documentation/maps-static/start.md.txt#Markers) **Note:** Navigation SDK for Android does not support AdvancedMarkerOptions; when using Navigation SDK for Android, add markers with GoogleMap.addMarker(MarkerOptions).
- [Customize a marker on a map.](https://developers.google.com/maps/documentation/maps-static/start.md.txt#MarkerStyles) **Note:** Navigation SDK for Android does not support AdvancedMarkerOptions; when using Navigation SDK for Android, customize markers with MarkerOptions.

### Maps Static API: Maps styling

- [Create a reusable, cross-platform map style.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/map-styles.md.txt)
- [Change the style of roads, polylines, and polygons on a map.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/taxonomy.md.txt#polygons_and_polylines)
- [Display or hide map features.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/taxonomy.md.txt#vis)
- [Change the style of icons and text labels on a map.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/taxonomy.md.txt#icons_and_text_labels)
- [Apply different map styles to different zoom levels.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/zoom-levels.md.txt)
- [Change the density of places on a map.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/poi-behavior-customization.md.txt) Experimental
- [Change the style of buildings on a map.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/building-style.md.txt) Experimental
- [Change the style of landmarks on a map.](https://developers.google.com/maps/documentation/maps-static/cloud-customization/landmarks.md.txt) Experimental