
Email clients, PDF generators and social networks don't run JavaScript, but they all show images. The new Static Maps API returns a map as a PNG from a single URL, in any of our twenty map styles.
https://static.expressmaps.com/static/linen/-0.1246,51.5007,14/600x400@2x.png?key=YOUR_API_KEY&marker=-0.1246,51.5007
Put it in an <img> tag and it works anywhere: order confirmations, delivery updates, invoices, job sheets, property reports and og:image link previews.
@2x for retina screens.auto in place of the centre and zoom to frame every marker automatically, with the padding you choose.Each image counts as one map load, the same as an interactive map, so the free plan's 100,000 loads a month include static images. Images are cached for a day, and cached repeats of the same URL are not counted.
If your key is restricted to your website, images only render when they're shown on that site. For emails and server-side code, create a second key in the console with no website restriction, or restrict it to your servers' IP addresses. That stops anyone copying your public key from a web page and using it elsewhere.
The Static Maps API page has a URL builder, and the documentation has examples in curl, JavaScript and PHP. If you don't have a key yet, sign up free: no card needed.