Create Instagram Stories by API

Boost your Instagram reach and engagement with auto-generated stories by API. Produce various storytelling videos and images for e-commerce products, real estate listings, funny facts, educational tips, quotes, and more. Let's automate stories using a no-code tool like Zapier or coding languages such as Node.js, PHP, Ruby, or Python.

  • Create Instagram Stories by API
  • Automate storytelling videos
  • Scale Instagram Story creation

Tutorial: How to create Instagram Stories by API

Here's a brief overview of how to create Instagram Stories using Creatomate's API. First, we create a template, either static or animated, from which all our stories will be produced. Then, using an automation method, we can insert captions, photos, videos, and audio clips into that template to generate unique stories.

Create an Instagram Story template

Instagram Stories, whether it's a photo or video post, require a vertical format with a 9:16 aspect ratio. There are many pre-made templates available to choose from. But if you have something special in mind, you can create your own designs using the template editor, which supports emojis and text animations to perfectly align with Instagram's style.

The elements in your template can be marked as dynamic. As a result, you will be able to replace its content with other text captions, images, and video clips to create new and unique stories.

curl -s -X POST \
  -H 'Authorization: Bearer Your-API-Key' \
  -H 'Content-Type: application/json' \
  --data-binary @- << EOF
  "template_id": "Your Instagram Story Template ID",
  "modifications": {
    "Title": "3 facts on animals that live in the mountains.",
    "Fact-1": "1. Mountain goats have specialized hooves that help them grip rockey and uneven terrain.",
    "Fact-2": "2. Snow leopards 🐆 are formidable hunters and can leap up to 50 feet in one jump.",
    "Fact-3": "3. Golden eagles 🦅 are skilled hunters and can swoop down at speeds of up to 200 miles per hour.",
    "Video": "",

Set up the API integration

Now we can use the API to auto-generate stories for Instagram. The API can be invoked by programming languages such as Node.js, PHP, Ruby, and Python as well as by no-code tools like Zapier. As an example, we'll use the cURL bash program.

Using our story template from step 1 as a base, we simply call the API, specifying our template ID and any values we wish to add. Let's create a video that includes a title, multiple facts, as well as emojis, along with a background video. Sending this request will return a URL for the video.

Generate Instagram Stories automatically

With a script or no-code scenario, the above command can be completely automated. If you're a developer, or have one in your team, you can add Instagram Story creation capabilities to your application, so your customers and users can create their own. Another option is to use a no-code tool like Zapier, which lets you build custom workflows with over 5,000 apps to create Instagram Stories on autopilot.

And if you don't need a fully automated workflow, you can make Instagram Stories using a simple spreadsheet or form. These methods do not require API integration, so check them out as well.

Want to try it yourself? Get started for free in minutes:

Frequently asked questions

How can I create Instagram Stories by API?

The first step is to create a template as a foundation for your automated story videos. Once you have a template in place, you can use the API, either through a no-code tool or a programming language, to substitute various elements of that template with other text captions, images, and video clips.

What kind of Instagram Stories can I auto-generate by API?

As long as the design fits into a template, all kinds of Instagram Stories can be auto-generated, whether they are videos or images. The editor gives you the freedom to create a design that perfectly suits your needs and use case. For instance, automate Instagram Stories for e-commerce products, real estate listings, tips, facts, quotes, and more.

Can I use AI to auto-generate Instagram Stories by API?

Yes! You can incorporate AI technology, such as OpenAI's ChatGPT, into your automated workflows. For example, you can use AI to generate your stories' content. We've written two tutorials about how to do it using code and Zapier.

How long does it take to set up?

It only takes a few minutes to set up a Zapier workflow, and you don't need any coding knowledge at all. Follow one of our tutorials to get started right away. Developers and people familiar with APIs and programming languages, such as Node.js, PHP, Ruby or Python, can set up a code integration to create Instagram Stories in ten minutes. To get started using code, check out this guide.

What's the best API to create Instagram Stories?

In our opinion, Creatomate is the most suitable API for creating Instagram Stories. It provides all the tools you need to automatically generate these popular vertical visuals, such as text animations, emojis, and auto-sizing text. Also check out our comparison article on the best video generation APIs for more details.

Can I use Creatomate for more than just automating Instagram Stories?

Absolutely! Almost any kind of video content can be automated with Creatomate. Just to give you an idea, our customers use it for creating social media videos to promote real estate listings, automating prospecting videos for sales outreach, transforming products into engaging short videos, and many other purposes. Aside from the API and Zapier's fully automated workflows, you can also create videos using a simple spreadsheet or form.

Quickly get started

Learn how to automate your videos by following our practical tutorials.

Start automating today

Start with a full-featured trial with 50 credits, no credit card required.
Get started for free