Link Search Menu Expand Document

Convert an Instagram post into an image

Learn how to use the API to generate an image from an Instagram post.


How it works

To generate a screenshot of an Instagram post, you can make use of the Instagram embed API.

Instagram embed instructions

You can generate this code yourself by viewing an Instagram post in a web browser. Clicking the top right hamburger menu, and then “Embed”.

Example code

Copy this example, and swap out the href to create an image of any post you’d like.

Instagram post to image.

HTML

<script src="https://platform.instagram.com/en_US/embeds.js"></script>
<blockquote style="width:600px;" class="instagram-media" data-instgrm-version="7" >

<!-- replace this href with the link to the post -->
<a href="https://www.instagram.com/p/B2EkgKalrO6/"></a> 

</blockquote>

Try it yourself


Need help?

Talk to a human. Please email us support@htmlcsstoimage.com with any questions and we’ll gladly help you get started.


Back to top

Built with extensive integration tests and serious care for developer happiness.
© 2018-2020 Code Happy, LLC.

Page last modified: Oct 29 2020 at 02:54 PM.

Edit this page on GitHub.