> Documentation index: https://developers.google.com/maps/documentation/llms.txt

The Aerial View API is a REST service that lets you look up, request rendering of, and display photorealistic 3D aerial videos of US postal addresses. The videos simulate drone footage circling a point of interest and are rendered from Google's 3D geospatial imagery.

## Aerial View API: key facts

- **Product:** Aerial View API
- **Also known as:** Google Maps Aerial View API
- **Category:** Maps
- **Platform:** Web service (REST)
- **Runs on:** Server (backend code)
- **Launch stage:** GA
- **Lifecycle:** Active
- **Overview:** [Aerial View API overview](https://developers.google.com/maps/documentation/aerial-view/overview.md.txt)
- **Regional availability:** Limited. US postal addresses only, where Google can render 3D video. ([coverage details](https://developers.google.com/maps/documentation/aerial-view/overview.md.txt#coverage_areas))

## Aerial View API: when to use it

**Use Aerial View API when:**

- You need a photorealistic 3D aerial video of a US postal address or landmark to embed in a web page or app.
- You want aerial context for a property without working with 3D Tiles or building a renderer.
- You need to check whether an aerial video exists for an address, and its capture date, duration, or state.
- You need Google to render a new aerial video for a supported US address that has no video yet.
**Don't use Aerial View API when:**

- You want to build your own interactive 3D scene from photorealistic 3D tiles with a renderer. Use [Map Tiles API](https://developers.google.com/maps/documentation/tile/quick-reference.md.txt) instead.
- You need aerial videos for addresses outside the United States.
- You need to download, store, or cache the video files; only video IDs may be stored.

## Aerial View API: setup

- **Service to enable:** `aerialview.googleapis.com`
- **Authentication:** API key, OAuth 2.0, Service account
- **Get started:** [Set up Aerial View API](https://developers.google.com/maps/documentation/aerial-view/get-api-key.md.txt)
- **Reference:** [Aerial View API reference](https://developers.google.com/maps/documentation/aerial-view/reference/rest.md.txt)
- **Pricing:** [Aerial View API usage and billing](https://developers.google.com/maps/documentation/aerial-view/usage-and-billing.md.txt)
- **Policies:** [Aerial View API policies](https://developers.google.com/maps/documentation/aerial-view/policies.md.txt)
- **Release notes:** [Aerial View API release notes](https://developers.google.com/maps/documentation/aerial-view/release-notes.md.txt)

## Aerial View API: common mistakes

- **Problem:** `lookupVideo` and `lookupVideoMetadata` return 404 `NOT_FOUND` when no video has been rendered for the address (or the area isn't supported); `lookupVideo` returns no URIs in that case. **Fix:** Check with `lookupVideoMetadata` first (free), then call `renderVideo` for supported US addresses, and poll until state is `ACTIVE`. See [/maps/documentation/aerial-view/how-to](https://developers.google.com/maps/documentation/aerial-view/how-to.md.txt).
- **Problem:** Video URIs returned by `lookupVideo` are short-lived and expire; videos can't be downloaded, stored, or cached. **Fix:** Call `lookupVideo` every time you display a video. Store only the `videoId`, which is exempt from caching restrictions. See [/maps/documentation/aerial-view/lookup-video](https://developers.google.com/maps/documentation/aerial-view/lookup-video.md.txt).
- **Problem:** Rendering a new video with `renderVideo` takes from an hour to several hours; the first response has state `PROCESSING`. **Fix:** Save the returned `videoId` and poll `lookupVideoMetadata` (free) with exponential backoff until the state is `ACTIVE` (or stop if it's `FAILED`). If the video already exists, `renderVideo` returns `ACTIVE` right away. See [/maps/documentation/aerial-view/generate-video](https://developers.google.com/maps/documentation/aerial-view/generate-video.md.txt).
- **Problem:** Addresses passed as query parameters must be URL-encoded. **Fix:** URL-encode the address before calling `lookupVideo` or `lookupVideoMetadata`. See [/maps/documentation/aerial-view/lookup-video](https://developers.google.com/maps/documentation/aerial-view/lookup-video.md.txt).

## What you can do with Aerial View 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).

- [Return a URL of a pre-rendered, photorealistic 3D flyover video.](https://developers.google.com/maps/documentation/aerial-view/lookup-video.md.txt)
- [Return metadata for a pre-rendered, photorealistic 3D flyover video.](https://developers.google.com/maps/documentation/aerial-view/lookup-video-metadata.md.txt)