Instagram post screenshot

Screenshot an Instagram post

With this example you can setup automation for generating screenshots of Instagram posts.
Swap out the link in the HTML to a public Instagram post and it will generate an image of the post.
Take notice of the params that are set, ms_delay is set to 1750 and selector is set to .instagram-media-rendered. This will give the image enough time to render, plus crop it properly for you.

Live Demo

Make changes to the code and click the Image button below

Quick start code
Select your favorite language or tool for some example code.
Quick start example code for Node.
Quick start example code for PHP.
Quick start example code for Ruby.
Quick start example code for C#.
Quick start example code for GoLang.
Quick start example code for Python.
Quick start example code for Zapier.
Quick start example code for cURL.
Quick start example code for VB.net.
Learn More
Dive into some more advanced topics with these tutorials.

How does HTML/CSS to Image work?

We run your HTML/CSS in a specialized instance of Google Chrome so that it renders exactly how you'd expect it to. Then we generate a screenshot from Chrome, crop it for you automatically and give you back a performance optimized URL to your image.

You can then use this URL anyway you'd like. You can download the image and host it somewhere else. Or directly use the URL in your apps and webpages.

We've spent years on this problem and our API generates millions of images each month. We continually improve it as people find new ways to use the API.

More Examples

Image for Example: Dog rates social card with SVG background
Dog rates social card with SVG background

Social card with a fun SVG background and highlighted text.

Image for Example: Dog rates social card
Dog rates social card

Simple social card example showing highlighted yellow text

Image for Example: Shareable Quote
Shareable Quote

A fancy blockquote for sharing.

Image for Example: Large text on an SVG background
Large text on an SVG background

Grab attention with large text on a classic background.

Image for Example: Birthday invite card
Birthday invite card

Autogenerated invite graphic for a party.

Image for Example: Simple job ad
Simple job ad

Advertise a job description with an image.

Image for Example: Facebook screenshot
Facebook screenshot

Create a screenshot of a Facebook post.

Image for Example: QR Code Badge
QR Code Badge

Simple, artistic badge with a QR code.

Image for Example: PNG with transparent background
PNG with transparent background

Generate images with a transparent backgound

Image for Example: Speech bubble card
Speech bubble card

Social card with text in a speech bubble.

Image for Example: Twitter Tweet Screenshot
Twitter Tweet Screenshot

Screenshot of a tweet

Image for Example: Quote with highlighted text
Quote with highlighted text

Share an article with highlighted text.