# Instagram Like Bot (`dead00/instagram-like-bot`) Actor

Automatically like Instagram posts and reels in bulk. Just paste the post URLs, set a delay, and let the bot handle the rest — with built-in rate-limit protection to keep your account safe.

- **URL**: https://apify.com/dead00/instagram-like-bot.md
- **Developed by:** [Dead](https://apify.com/dead00) (community)
- **Categories:** Automation, Social media, Agents
- **Stats:** 2,979 total users, 49 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 3.10 out of 5 stars

## Pricing

from $0.10 / 1,000 task completeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## 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 Auto Liker Bot

An Actorthat automatically likes Instagram posts and reels. Built with Pay-Per-Event (PPE) charging support.

***

### ✨ Features

- ✅ Like Instagram posts and reels automatically
- 💳 Pay-Per-Event (PPE) billing — only pay for successful likes
- 🛡️ Built-in protection: stops early on rate limits or blocks
- 🔗 Deduplication — no URL is liked twice in a single run
- 🌐 Proxy support for reduced ban risk

***

### 🚀 Quick Start

#### 1. Get Your Instagram Cookies

The most reliable login method is exporting cookies directly from your browser:

1. Open [instagram.com](https://instagram.com) and log in
2. Install the [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) Chrome extension
3. Click the extension → **Export** → **Export as JSON**
4. Paste the JSON array into the **Instagram Cookies** input field

#### 2. Provide Post URLs

Add the Instagram post or reel URLs you want to like:

```
https://www.instagram.com/p/ABC123/
https://www.instagram.com/reel/XYZ456/
```

#### 3. Run the Actor

Set your delay and max like limits, then hit **Start**. Results are saved to the dataset in real time.

***

### 🔧 Input Configuration

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `cookies` | Array (JSON) | ✅ Yes | — | Browser cookie export from instagram.com. Use Cookie-Editor Chrome extension → Export as JSON |
| `postUrls` | Array (strings) | ✅ Yes | — | List of Instagram post or reel URLs to like |
| `delayBetweenLikes` | Integer | No | `20` | Seconds to wait between each like. Range: 10–300s |
| `maxLikesPerRun` | Integer | No | `30` | Max number of likes per run. Range: 1–100 |
| `proxyConfiguration` | Object | No | — | Optional proxy settings. Residential proxies recommended |

#### Example Input

```json
{
  "cookies": [
    { "name": "sessionid", "value": "YOUR_SESSION_ID" },
    { "name": "csrftoken", "value": "YOUR_CSRF_TOKEN" }
  ],
  "postUrls": [
    "https://www.instagram.com/p/ABC123/",
    "https://www.instagram.com/reel/XYZ456/"
  ],
  "delayBetweenLikes": 20,
  "maxLikesPerRun": 30
}
```

***

### 📊 Output Format

Each liked (or attempted) URL is pushed to the Apify dataset with the following structure:

```json
{
  "url": "https://www.instagram.com/p/ABC123/",
  "status": "success",
  "message": "✅ Liked: https://www.instagram.com/p/ABC123/",
  "timestamp": "2025-01-15T10:30:00.000000"
}
```

#### Status Values

| Status | Meaning |
|---|---|
| `success` | Post was liked successfully |
| `failed` | Could not like the post (not found or generic error) |
| `blocked` | Instagram blocked the action (FeedbackRequired) |
| `rate_limited` | Too many requests — actor stops early to protect account |
| `auth_error` | Session expired or challenge required |

***

### 💳 Pay-Per-Event (PPE) Pricing

This actor uses Apify's Pay-Per-Event model — you only pay for what actually happens:

| Event | Description |
|---|---|
| `login-success` | Charged once when login succeeds |
| `like-completed` | Charged once per successfully liked post |
| `task-completed` | Charged once when the run finishes |

### ⚠️ Important Notes

#### Authentication

- **Cookies expire** — If you get authentication errors, export fresh cookies from your browser

#### Rate Limits

- Instagram may rate limit aggressive scraping
- Use delays between (built-in 3s delay)

### 📞 Support

If you encounter issues or have questions:

- Check the actor's run log for detailed error messages
- Ensure your cookies are fresh and valid
- Try reducing the `amount` parameter
- Contact support with your run details

### 🔒 Privacy & Data

- Your cookies are used only for authentication during the run
- No credentials are stored after the actor finishes
- Respect Instagram's Terms of Service and users' privacy

***

# Actor input Schema

## `cookies` (type: `array`):

Export cookies from instagram.com using 'Cookie-Editor' Chrome extension → Export as JSON. Paste the JSON array here. Most reliable login method.

## `postUrls` (type: `array`):

List of Instagram post or reel URLs to like. Example: https://www.instagram.com/p/ABC123/ or https://www.instagram.com/reel/ABC123/

## `delayBetweenLikes` (type: `integer`):

Wait time between each like. Recommended: 15-30s to avoid bans. A random ±8s jitter is added automatically.

## `maxLikesPerRun` (type: `integer`):

Maximum number of likes per run. Keep under 50 for safety. Instagram daily like limit is ~300-500.

## `proxyConfiguration` (type: `object`):

Optional. Residential proxies recommended for best results and lower ban risk.

## Actor input object example

```json
{
  "cookies": [
    {
      "domain": ".instagram.com",
      "expirationDate": 1812479304.351636,
      "hostOnly": false,
      "httpOnly": true,
      "name": "ps_n",
      "path": "/",
      "sameSite": "no_restriction",
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "1"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1812479142.34707,
      "hostOnly": false,
      "httpOnly": true,
      "name": "datr",
      "path": "/",
      "sameSite": "no_restriction",
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "puT4aVbPFkAlE0xTrV67Y2s2"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1809455148.357805,
      "hostOnly": false,
      "httpOnly": false,
      "name": "ig_nrcb",
      "path": "/",
      "sameSite": null,
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "1"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1787499086.207922,
      "hostOnly": false,
      "httpOnly": false,
      "name": "ds_user_id",
      "path": "/",
      "sameSite": "no_restriction",
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "79639868129"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1814283086.207787,
      "hostOnly": false,
      "httpOnly": false,
      "name": "csrftoken",
      "path": "/",
      "sameSite": null,
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "oPWz74ERgDIaYAgjxu0teIWd1SwfUqur"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1809455149.587414,
      "hostOnly": false,
      "httpOnly": true,
      "name": "ig_did",
      "path": "/",
      "sameSite": null,
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "58B49B12-D0B8-49AD-8EB4-69B89996C33B"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1812479304.351395,
      "hostOnly": false,
      "httpOnly": true,
      "name": "ps_l",
      "path": "/",
      "sameSite": "lax",
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "1"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1780327882,
      "hostOnly": false,
      "httpOnly": false,
      "name": "wd",
      "path": "/",
      "sameSite": "lax",
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "1536x872"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1812479148,
      "hostOnly": false,
      "httpOnly": false,
      "name": "mid",
      "path": "/",
      "sameSite": null,
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "afjkpgALAAHPG__yXfsTHCnzNeMK"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1811259062.557864,
      "hostOnly": false,
      "httpOnly": true,
      "name": "sessionid",
      "path": "/",
      "sameSite": null,
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "79639868129%3ATjTxv47JdsmM9I%3A11%3AAYhSIYE6LygHMJ8sVHNr0Zs-UXEl54hceRBqjvpPzg"
    },
    {
      "domain": ".instagram.com",
      "expirationDate": 1780327882,
      "hostOnly": false,
      "httpOnly": false,
      "name": "dpr",
      "path": "/",
      "sameSite": "no_restriction",
      "secure": true,
      "session": false,
      "storeId": null,
      "value": "1.25"
    },
    {
      "domain": ".instagram.com",
      "hostOnly": false,
      "httpOnly": true,
      "name": "rur",
      "path": "/",
      "sameSite": "lax",
      "secure": true,
      "session": true,
      "storeId": null,
      "value": "\"CLN\\05479639868129\\0541811259084:01fe38f6b2d3adb3901f653daf25ae1f262f140674d6cffdd6106732b05e13cb77199502\""
    }
  ],
  "postUrls": [
    "https://www.instagram.com/reels/DV7C7gSDHpk/"
  ],
  "delayBetweenLikes": 20,
  "maxLikesPerRun": 30
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("dead00/instagram-like-bot").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("dead00/instagram-like-bot").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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 dead00/instagram-like-bot --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dead00/instagram-like-bot"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o5j4cXadhNFdJCEqv/builds/IJMluBbAdH9SuOkCr/openapi.json
