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:
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
Example: the code of this chart (https://localfocuswidgets.net/601c133f47d70) is
width integer Min:
height integer Min:
scale integer Min:
1 Use scale to increase image sharpness. Try
2 for retina optimized thumbnails.