# Instagram Video Downloader API (`kjernekode/instagram-video-downloader-api`) Actor

Scalable Instagram Video Downloader API to programmatically download videos in HD. Fast, secure, and easy-to-integrate REST API for developers.

- **URL**: https://apify.com/kjernekode/instagram-video-downloader-api.md
- **Developed by:** [Kjerne Kode](https://apify.com/kjernekode) (community)
- **Categories:** Social media, Integrations, Videos
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Instagram Scraper: Reels & Video Downloader API with Proxy Rotation 🪓

### Loot Instagram Videos Like a Viking Raid!

Stop struggling with restricted access and hidden data. **Instagram Scraper** by **KjerneKode** is the ultimate longship built to **scrape** and **extract** high-quality media treasures from the digital fjords. Whether you need to **download Reels**, IGTV, or feed videos, our **no-code API** allows you to **export to JSON/CSV** with the precision of a master navigator.

This is the *Ekte* (genuine) solution for developers and marketers who need a **Scalable** way to fetch Instagram content without the overhead of the official API. Our **Instagram Video Downloader** leverages advanced **Anti-bot bypass** technology and **Proxy rotation** to ensure your data-gathering sagas are never interrupted by the digital guards.

#### Why KjerneKode is the Jarl of Downloaders:

- **High-Speed Raids:** Optimized to **scrape Instagram** posts faster than a Berserker’s strike.
- **Stealth Mode:** Built-in **Proxy rotation** and support for **Residential proxies** to keep your raid undetected.
- **Instant Looting:** Videos are captured directly to memory and uploaded to KVS, ensuring a fast, **no-code** experience.
- **Scalable Extraction:** Built on the robust Apify SDK to handle massive datasets for any high-intent **API** project.
- **Date Filtering:** Set your horizons! Raid only the videos within your chosen time range using ISO format.

***

### 🛡️ The Raid Strategy (Features)

Our longship is equipped with the finest technical gear for a successful extraction:

- **Proxy Rotation & Residential Support:** Shield your IP from detection with seamless proxy integration.
- **Anti-Bot Bypass:** Sail right past Instagram's most advanced defenses.
- **High-Quality Extraction:** Get the raw video URLs and high-resolution metadata.
- **Flexible Data Export:** Extract and **export to JSON/CSV**, Excel, or XML in seconds.
- **No-Code Interface:** Simple enough for a Viking, powerful enough for a God.
- **Scalable Performance:** Designed to handle thousands of URLs in a single run.

***

### 📜 Technical Saga (Input Parameters)

To start your raid, provide the following JSON configuration. Don't worry, it's simpler than navigating by the stars!

| Field            | Type   | Description                                                                            |
| :--------------- | :----- | :------------------------------------------------------------------------------------- |
| **`start_urls`** | Array  | **Required**. List of Profile or Reel URLs (e.g., `https://www.instagram.com/khivju`). |
| **`start_date`** | String | **Optional**. ISO format `YYYY-MM-DD`. Scrape posts created AFTER this date.           |
| **`end_date`**   | String | **Optional**. ISO format `YYYY-MM-DD`. Scrape posts created BEFORE this date.          |
| **`proxy`**      | Object | **Required**. Use **Apify Proxy** (Residential recommended) or your own.               |

#### Battle Plan (Input Example)

```json
{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  },
  "start_urls": [
    "https://www.instagram.com/khivju",
    "https://www.instagram.com/p/DSNR6_ADETP/"
  ],
  "start_date": "2025-01-01",
  "end_date": "2025-12-31"
}
```

***

### 🎁 Gifts from the Gods (Data Output)

Once the raid is complete, your treasures are stored in a dataset. Each item contains rich metadata and direct download links.

#### Sample Output Fields

| Field        | Description                               |
| :----------- | :---------------------------------------- |
| `username`   | The owner of the post.                    |
| `postUrl`    | Original Instagram link.                  |
| `videoUrl`   | **Direct download link** (stored in KVS). |
| `caption`    | The full caption of the post.             |
| `viewCount`  | Number of views at the time of the raid.  |
| `likesCount` | Total hearts/likes captured.              |

#### Loot Detail Example (JSON)

```json
{
  "username": "khivju",
  "postUrl": "https://www.instagram.com/p/DSNR6_ADETP/",
  "videoUrl": "https://api.apify.com/v2/key-value-stores/example-id/records/DSNR6_ADETP.mp4",
  "filename": "DSNR6_ADETP.mp4",
  "date": "2025-12-13 14:52:49",
  "shortcode": "DSNR6_ADETP",
  "caption": "🎬 Masterclass with Kristofer Hivju 🎬...",
  "viewCount": 19594,
  "likesCount": 558,
  "commentsCount": 34
}
```

***

### 🔗 Related Viking Tools

Enhance your raiding party with these other **Kjernekode** specialized scrapers:

- [**YouTube Viral Video Scraper**](https://apify.com/kjernecode/youtube-downloader-api) - Download and trim viral clips.
- [**TikTok Shop Product Scraper**](https://apify.com/kjernecode/tiktok-shop-scraper) - Extract trending products and prices.
- [**SoundCloud Playlist Extractor**](https://apify.com/kjernecode/soundcloud-scraper) - Harvest tracks and metadata.

***

#### Bugs, Fixes, and Skål! 🍻

Even the best longships need maintenance. This scraper is under active development by the KjerneKode clan. If you encounter a Ragnarök (error) or have a feature request, please open an issue in our hall of records.

**Contact Us:**
📧 <kjernecode@gmail.com>
🌐 [Kjernekode.com](https://kjernekode.com)

Lykke til (Good luck) with your data hunting!

# Actor input Schema

## `start_urls` (type: `array`):

Enter Instagram Profile or Reel URLs to extract data (e.g., https://www.instagram.com/khivju/)

## `start_date` (type: `string`):

Optional: Download data created after this date (ISO format: YYYY-MM-DD)

## `end_date` (type: `string`):

Optional: Download data created before this date (ISO format: YYYY-MM-DD)

## `proxy` (type: `object`):

Select proxies to bypass Instagram detection. Residential proxies are recommended for scraping.

## Actor input object example

```json
{
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kjernekode/instagram-video-downloader-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "proxy": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("kjernekode/instagram-video-downloader-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call kjernekode/instagram-video-downloader-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=kjernekode/instagram-video-downloader-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/F3ngMdhlUda60I0UN/builds/4NqSuz8yHsO73QbMR/openapi.json
