# Instagram Content Downloader (`freecamp008/instagram-content-downloader`)

Download Instagram videos, reels, photos, and stories in original quality. High-performance Apify Actor for social media content extraction, archiving, and analysis. Fast, reliable, structured data output.

- **URL**: https://beta-securitybyobscurity.apify.com/freecamp008/instagram-content-downloader.md
- **Developed by:** [Camp8 fr0](https://beta-securitybyobscurity.apify.com/freecamp008) (community)
- **Categories:** Social media, Videos
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$12.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

# README

## **🎥 Instagram Content Downloader**

High-performance Apify Actor for downloading Instagram videos, reels, photos, carousels, and stories in original quality. Perfect for data extraction, content archiving, and social media analysis workflows.

### **✨ Features**

- 🚀 High-speed content extraction
- 📱 Support for all Instagram content types (videos, reels, photos, stories)
- 🎬 Original quality preservation
- 📊 Structured data output
- 🔒 Reliable and secure downloads
- ⚡ Fast processing
- 📋 Clean JSON output format

### **🛠️ Usage**

#### **Input Schema**

```json
{
  "url": "https://www.instagram.com/reel/DOmEBI8iNiu/",
  "type": "reel"
}
```

#### **Input Parameters**

| **Parameter** | **Type** | **Required** | **Description** |
|---------------|----------|--------------|-----------------|
| `url` | string | Yes | Instagram content URL to download |
| `type` | string | Yes | Content type: `video`, `reel`, `photo`, `story` |

#### **Supported Content Types**

| **Type** | **Description** | **URL Format** |
|----------|-----------------|----------------|
| `reel` | Instagram Reels | `https://www.instagram.com/reel/{id}/` |
| `video` | Video Posts | `https://www.instagram.com/p/{id}/` |
| `photo` | Photos & Carousels | `https://www.instagram.com/p/{id}/` |
| `story` | Stories | `https://www.instagram.com/stories/{username}/{id}/` |

### **📊 Output**

#### **Single Video/Reel Output**

```json
[
  {
    "id": "3721679812579350702",
    "mediaFormat": "video",
    "url": "https://scontent-vie1-1.cdninstagram.com/o1/v/t2/f2/m86/AQMDmtWAwg8GK0i8FySNNYCh_AFkLZm-Z9eIzokzuzlixN8rj-bDw2Gi-fQbHup472JuWia9bcswct4GMd3jYo3lJyUoXp4z3H602N8.mp4",
    "cover": "https://scontent-vie1-1.cdninstagram.com/v/t51.82787-15/548886249_17877732441402949_4771253608746852840_n.jpg"
  }
]
```

#### **Carousel/Multi-Photo Output**

```json
[
  {
    "id": "3720869123124416584",
    "mediaFormat": "image",
    "url": "https://scontent-vie1-1.cdninstagram.com/v/t51.2885-15/548192146_17884227705365636_5397880566923149703_n.jpg",
    "cover": null
  },
  {
    "id": "3720869123132755861",
    "mediaFormat": "image",
    "url": "https://scontent-vie1-1.cdninstagram.com/v/t51.2885-15/548735535_17884227714365636_5746101486625897946_n.jpg",
    "cover": null
  },
  {
    "id": "3720869123132807715",
    "mediaFormat": "image",
    "url": "https://scontent-vie1-1.cdninstagram.com/v/t51.2885-15/545119837_17884227726365636_7781063765333631788_n.jpg",
    "cover": null
  }
]
```

#### **Story Output**

```json
[
  {
    "id": "3721433029210675875",
    "mediaFormat": "image",
    "url": "https://scontent-vie1-1.cdninstagram.com/v/t51.2885-15/548846834_18529639822056452_5480773202733340514_n.jpg",
    "cover": null
  }
]
```

# Actor input Schema

## `url` (type: `string`):

Full Instagram link (post, reel, photo, or story)

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

Choose the Instagram content type to fetch

## Actor input object example

```json
{}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("freecamp008/instagram-content-downloader").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("freecamp008/instagram-content-downloader").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 '{}' |
apify call freecamp008/instagram-content-downloader --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Content Downloader",
        "description": "Download Instagram videos, reels, photos, and stories in original quality. High-performance Apify Actor for social media content extraction, archiving, and analysis. Fast, reliable, structured data output.",
        "version": "0.1",
        "x-build-id": "cUY5cnF31FryFyNCw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/freecamp008~instagram-content-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-freecamp008-instagram-content-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/freecamp008~instagram-content-downloader/runs": {
            "post": {
                "operationId": "runs-sync-freecamp008-instagram-content-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/freecamp008~instagram-content-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-freecamp008-instagram-content-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "url",
                    "type"
                ],
                "properties": {
                    "url": {
                        "title": "Instagram URL",
                        "type": "string",
                        "description": "Full Instagram link (post, reel, photo, or story)"
                    },
                    "type": {
                        "title": "Content type",
                        "enum": [
                            "video",
                            "reel",
                            "photo",
                            "story"
                        ],
                        "type": "string",
                        "description": "Choose the Instagram content type to fetch"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
