Overview
Use this endpoint to generate an embeddable Earth view for your app.api.embed.earth returns an embedUrl and scene metadata you can render in an iframe.
Endpoint
POST https://api.embed.earth/v1/geospatial/embed
Authentication
Send your API key in theAuthorization header.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
location | object | Yes | The map center point. |
location.lat | number | Yes | Latitude in decimal degrees. |
location.lng | number | Yes | Longitude in decimal degrees. |
zoom | number | No | Zoom level from 1 to 20. |
pitch | number | No | Camera pitch in degrees from 0 to 85. |
bearing | number | No | Camera bearing in degrees from 0 to 360. |
layers | array[string] | No | Data layers to render, such as terrain, satellite, or roads. |
markers | array[object] | No | Marker objects shown on the map. |
markers[].id | string | Yes | Stable marker ID. |
markers[].lat | number | Yes | Marker latitude in decimal degrees. |
markers[].lng | number | Yes | Marker longitude in decimal degrees. |
markers[].label | string | No | Label displayed in the tooltip. |
expiresIn | string | No | Signed URL lifetime such as 15m or 1h. |