# Instagram Scraper & Competitor Analysis (AI) (`ironlabs/instagram-competitor-analysis`) Actor

Analyse any Instagram competitor in minutes: engagement rate, best formats and posting times, content pillars, hooks, strengths, weaknesses and 10 content ideas. Compare up to 10 accounts side by side with a 30-day plan.

- **URL**: https://apify.com/ironlabs/instagram-competitor-analysis.md
- **Developed by:** [Iron Labs](https://apify.com/ironlabs) (community)
- **Categories:** Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $300.00 / 1,000 competitor analyses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram Scraper & Competitor Analysis (AI)

**Drop in your competitors' Instagram usernames. Get back a strategist-grade report in about 3 minutes:** what they post, what actually works for them, where they are weak, and 10 content ideas you can use to beat them.

No login, no Instagram account and no coding needed. Works on any **public** account.

### What you get for each competitor

| | |
|---|---|
| 📊 **Hard numbers** | Followers, engagement rate, average likes, comments and reel plays, posts per week, engagement trend |
| 🎬 **Format breakdown** | Reels vs carousels vs images: share of posts and engagement for each, and which one wins |
| ⏰ **Timing** | Best days and hours to post, based on their own results |
| 🧱 **Content pillars** | Their 3–6 recurring themes, how much they post each one and how each performs |
| 🪝 **Hooks that work** | The opening-line patterns behind their best posts, with real examples |
| ✍️ **Caption, CTA and hashtag strategy** | Caption length and style, calls to action, top hashtags and mentions |
| 💪 **Strengths and weaknesses** | Each backed by numbers or examples, not guesses |
| 🎯 **How to beat them** | 4–6 specific openings you can exploit |
| 💡 **10 content ideas** | Title, format, hook and why it should work, tailored to your business if you describe it |
| ⭐ **Scores** | Content, engagement, consistency and overall, out of 10 |

### Plus a side-by-side comparison (2+ accounts)

- A ranking of all accounts, with a one-line verdict each
- **Who leads where:** engagement, reels, carousels, consistency, community, momentum
- Market patterns, and the **white space nobody owns yet**
- Add **your own account** to get your gaps, quick wins and a **4-week action plan**

### 📄 A report you can send to a client

Every run saves a polished one-page **HTML report**: open the **Report** tab in the Output, then print or save it as a PDF for a client or your team. All data is also available as **JSON, CSV or Excel**, or through the API.

### How to use it

1. Enter 1–10 competitor usernames, for example `gymshark`, `@alphalete` or `https://www.instagram.com/youngla/`.
2. *Optional:* add your own account, plus one sentence about your business (e.g. *"Small activewear brand in India, we want more reel reach"*).
3. Click **Start**. Open the **Report** tab when it finishes.

### 💰 Pricing

You only pay for analyses that succeed:

| Event | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| Competitor analysis (per account) | **$0.40** | $0.37 | $0.33 | $0.30 |
| Side-by-side comparison report (per run, 2+ accounts) | **$1.00** | $0.90 | $0.80 | $0.70 |

Higher Apify plans get the lower price automatically.

The Instagram data itself is collected by Apify's official [Instagram Scraper](https://apify.com/apify/instagram-scraper), which runs inside your run and is billed at its own price (about **$0.08 for 30 posts**).

**Example:** 3 competitors plus your account, 30 posts each: 4 × $0.40 + $1.00 + about $0.35 of data ≈ **$2.95** for a complete competitor report. That's less than one minute of an agency's time.

Private or missing accounts, or any analysis that fails, are **not charged**. Set a maximum cost per run in Run options if you want a hard cap.

### Example output (one row, shortened)

```json
{
  "type": "account",
  "username": "gymshark",
  "followers": 8806177,
  "engagementRatePct": 0.554,
  "postsPerWeek": 7.9,
  "bestFormat": "carousel",
  "overallScore": 7,
  "executiveSummary": "Gymshark is in a full Black Friday countdown: all 8 posts push the sale. Carousels beat reels on likes (58,452 vs 18,918 average)...",
  "analysis": {
    "whatWorks": ["Relatable gym-life captions: 'That first workout in your new gym fit >>>' reached 118,639 likes, 2.4x the average"],
    "hookPatterns": [{"pattern": "Identity/inside-joke line before the offer", "example": "That first workout in your new gym fit >>>"}],
    "contentIdeas": [{"title": "...", "format": "carousel", "hook": "...", "whyItWillWork": "..."}]
  }
}
```

### Who it's for

- **Social media managers and agencies:** competitor audits and client pitches in minutes instead of hours
- **Brands and founders:** see exactly what works in your niche before you spend on content
- **Creators:** learn the hooks and formats your peers win with
- **Marketers:** monitor competitors monthly. Schedule the run and compare reports over time.

### FAQ

**Does it need my Instagram login?** No. It only reads public profiles and posts.

**Can it analyse private accounts?** No. Private accounts are skipped and not charged.

**How fresh is the data?** Collected live at the moment you run it.

**How is the AI analysis made?** A leading AI model (Anthropic's Claude) reads the collected numbers and captions and is instructed to back every claim with evidence from the data. As with any AI, review the insights before acting on them.

**What data is sent to the AI?** Only public Instagram data and the optional business sentence you type. Nothing else.

**Is it legal?** It collects only publicly available data. You are responsible for using the results in line with the laws and platform terms that apply to you.

**Need more?** More posts, other platforms (TikTok and YouTube are coming) or a custom report? Open an issue on the **Issues** tab and we'll reply quickly.

# Actor input Schema

## `competitors` (type: `array`):

Usernames (nike), handles (@nike) or profile URLs (https://www.instagram.com/nike/). Up to 10 per run. Public accounts only.

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

Add your account to be benchmarked against the competitors. The comparison then shows your gaps, quick wins and a 30-day plan written for you.

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

One or two sentences, e.g. 'Small activewear brand in India, we want more reel reach'. Used to tailor opportunities and content ideas. Do not include personal data.

## `postsPerAccount` (type: `integer`):

Most recent posts and reels per account (6-100). 30 gives a solid picture of the last few weeks.

## `includeComparison` (type: `boolean`):

With 2 or more accounts, add a ranking, who-leads-where, market white space and a 30-day action plan.

## Actor input object example

```json
{
  "competitors": [
    "gymshark",
    "alphalete",
    "youngla"
  ],
  "postsPerAccount": 30,
  "includeComparison": true
}
```

# Actor output Schema

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

No description

## `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 = {
    "competitors": [
        "gymshark",
        "alphalete"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ironlabs/instagram-competitor-analysis").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 = { "competitors": [
        "gymshark",
        "alphalete",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ironlabs/instagram-competitor-analysis").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 '{
  "competitors": [
    "gymshark",
    "alphalete"
  ]
}' |
apify call ironlabs/instagram-competitor-analysis --silent --output-dataset

```

## MCP server setup

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

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/hcl7pAPN9evEo13l6/builds/bv5lRYRPZF1Xzlx05/openapi.json
