Instagram Story Scraper

Instagram Story Scraper

by codenest

Download Instagram Stories with full metadata. Get direct URLs for images/videos, perfect for marketers, researchers, and developers automating data collection.

66 runs
11 users
Try This Actor

Opens on Apify.com

About Instagram Story Scraper

Need to pull down Instagram Stories for a project? I've been there. This Instagram Story Scraper is what I use to grab Stories reliably. It downloads the images and videos at their original quality and pulls out all the metadata—things like timestamps, view counts, and media type—so you get the full context, not just the files. It hands you secure, direct URLs for everything, and the best part is it handles the cleanup automatically, so you're not left managing temporary data. I find it super useful for a few things. If you're in marketing, you can track campaign Stories from competitors or influencers. For research, it's perfect for gathering social media trends or public content analysis. And as a developer, you can plug it into your own apps or dashboards to automate data collection. It just works, giving you clean, structured data without the headache of building and maintaining your own scraper. Honestly, it saves me a ton of time.

What does this actor do?

Instagram Story Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Instagram Story Scraper

An Apify actor that downloads Instagram Stories and extracts their metadata. It processes story URLs, downloads images and videos to Apify storage, and returns detailed information about each media item.

Overview

This actor is designed for programmatic access to Instagram Stories. You provide one or more story URLs (like https://www.instagram.com/stories/nba/), and it fetches all available stories from that source. It downloads the media files (JPG images and MP4 videos) to Apify's key-value store and returns a dataset containing secure CDN URLs for the files along with comprehensive technical metadata.

Use cases include content archiving, media analysis, and batch processing of ephemeral story content.

Key Features

  • Media Download: Downloads both images and videos from public Instagram Stories.
  • Metadata Extraction: Returns technical details for each file, including:
    • Resolution, file size, and format.
    • For videos: codec, duration, and bitrate.
    • For images: dimensions and color space.
  • Bulk Processing: Handles multiple story URLs in a single run.
  • Proxy Support: Configurable proxy settings (using Apify Proxy) to help avoid geo-restrictions or IP blocks.
  • Structured Output: Returns a clear JSON array with success status, media counts, and organized media items.

How to Use

  1. Configure the actor's input with your target Instagram story URLs and any proxy settings.
  2. Run the actor.
  3. Retrieve the results from the actor's dataset, which will contain the list of media items with their Apify storage URLs and metadata.

Input

Configure the actor using a JSON input object. The story_urls array is required.

{
  "story_urls": [
    { "url": "https://www.instagram.com/stories/username/" }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
Parameter Type Required Description
story_urls Array Yes List of objects, each containing a url key with a valid Instagram story URL.
proxy Object No Proxy configuration object.
proxy.useApifyProxy Boolean No Set to true to enable Apify Proxy (recommended).
proxy.apifyProxyGroups Array No Specify proxy groups, e.g., ["RESIDENTIAL"].
proxy.apifyProxyCountry String No Country code for proxy exit location (e.g., "US").

Output

The actor outputs an array of objects, one for each processed input URL. Each object contains the original URL, a success flag, arrays of media items and their metadata, and total counts.

[
  {
    "url": "https://www.instagram.com/stories/nba/",
    "success": true,
    "media_items": [
      {
        "Story No": 1,
        "type": "image",
        "Media URL": "https://api.apify.com/v2/key-value-stores/.../nba_story_1.jpg"
      }
    ],
    "total_count": 29,
    "video_count": 17,
    "image_count": 12,
    "image_story_metadata": [
      {
        "Story No": 1,
        "Media URL": "https://api.apify.com/v2/key-value-stores/NQt1UcMJlR2cwCmFJ/records/nba_story_1.jpg?token=apify_actor_run_api_vqbWq4SWvcMS8kRGUQVa28psLVmLvS3X84SJ",
        "metadata": {
          "filename": "/tmp/tmppzqxwc2f.jpg",
          "width": 1170,
          "height": 2080,
          "size": "420239"
        }
      }
    ],
    "video_story_metadata": [
      {
        "metadata": {
          "codec": "h264",
          "duration": "15.360000",
          "bit_rate": "1211164"
        }
      }
    ]
  }
]
  • media_items: A summary list of all stories with type and direct download URL.
  • image_story_metadata / video_story_metadata: Detailed arrays containing the full Apify storage URL (with access token) and the complete technical metadata for each file.
  • The Media URL in media_items and the Media URL in the metadata arrays point to the same file. The metadata URL includes the access token required for download.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Instagram Story Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
codenest
Pricing
Paid
Total Runs
66
Active Users
11
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support