Use the Mosaic API
Mosaic provides a simple API for on-demand OG images. Send a GET
request to:
https://mosaicimg.com/use?url=YOUR_URL
Replace YOUR_URL
with the page you want a screenshot of. If the site is added to your account, the API will return the image or redirect to a cached copy. Use demo=true
to test without storing images.
Example using curl
:
curl "https://mosaicimg.com/use?url=https://example.com"
The response will be a direct link to the generated OG image.