Use the HTML/CSS to Image API to generate images from LinkedIn embed’s.
To generate a screenshot of a post on LinkedIn, we can make use of the LinkedIn embed API.
For the image to work, make sure you set the
selector param to
2500. This gives the embed extra time to load and nicely crops the post.
First, you need to grab the LinkedIn embed code. This is available by clicking the 3 dots on the top right of a LinkedIn post and then clicking “embed this post”.
If you’re automating this, notice in the embed code that the ID for the post is in the URL. You can swap that ID out to load a different post.
<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:6846990735720361984" height="610" width="504" frameborder="0" allowfullscreen="" title="Embedded post"></iframe>
Important: set these parameters when creating the image.
Talk to a human. Please email us email@example.com with any questions and we’ll gladly help you get started.