Version 1.0
Do you want to automatically create thumbnails of LocalFocus charts and maps? This is the place to start!
The LocalFocus Thumbnail API uses HTTP requests. The results are PNG images, with optional retina support. To use this API, you need an API key. Please request one here. We encourage you to cache generated thumbnails, to reduce API calls.
Get a thumbnail of this chart that was created with go.localfocus.nl
curl -o image.png 'https://go.localfocus.nl/services/thumbnail/?api_key=YOUR_API_KEY&code=601c133f47d70&width=500&height=550&scale=4'
Depending on the LocalFocus platform your editors use:
https://go.localfocus.nl/services/thumbnail/
https://platform.localfocus.nl/services/thumbnail/
GET
api_key string A valid API key that was given to you by LocalFocus
code string Hyperlinks to charts and maps end with this code, and matches /[a-f0-9]{13}$/
.
Example: the code of this chart (https://localfocuswidgets.net/601c133f47d70) is 601c133f47d70
width integer Min: 300
, max: 1000
, default: 600
height integer Min: 300
, max: 1000
, default: 550
scale integer Min: 1
, max: 4
, default: 1
Use scale to increase image sharpness. Try 2
for retina optimized thumbnails.