Link Preview endpoint

To get a preview of a link (a blog post etc), this takes in the URL, and returns with the title, description and if available, the image.

Here’s the source with instructions on how to set it up for your cockpit.

Code used was yanked from https://www.webslake.com/article/generating-link-preview-using-php/

See an example here:
Preview blog.khophi.co

1 Like