MapFramer API

Developer guide for converting ephemeral Google Maps links into permanent, high-performance iframes.

Authentication

Every request to the MapFramer API requires an Authorization token. This token is issued upon account creation and identifies your rate limits and plan.

Request Header

Authorization: Bearer mf_live_your_token_here

⚠️ Security: Never expose your API token in client-side code. Always call the API from your backend.

Resolve API

Converts a Google Maps short link into structured location data and a coordinate-precise embed URL.

Method

POST/api/v1/resolve

Body

{"url": "https://maps.app.goo.gl/..."}
curl -X POST https://mapframer.dev/api/v1/resolve \
  -H "Authorization: Bearer mf_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://maps.app.goo.gl/xxx"}'

The Rich Pin Format

MapFramer uses a unique Coordinate-First embedding strategy. We resolve the name of a place but force the pin to exact coordinates. This avoids the common "Multiple Results" list that often plagues generic name-based embeds.

Example Output URL:

https://www.google.com/maps?q=Nandan%2C%2022.544%2C88.347&z=17&output=embed

Result: Exact Red Pin in the center + Automatic Place Info card.

Integration (React)

function Map({ embedUrl }) {
  return (
    <iframe
      src={embedUrl}
      width="100%"
      height="450"
      style={{ border: 0, borderRadius: '16px' }}
      loading="lazy"
      allowFullScreen
    />
  );
}

Note: We recommend storing the `embedUrl` in your database during the admin save step instead of calling the API on every page view.

© 2026 MapFramer. Built for the modern web.