# Instagram & TikTok Scraper (`novashieldai/instagram-tiktok-scraper`) Actor

Scrape Instagram and TikTok profiles, followers, posts, videos, engagement metrics, and more.

- **URL**: https://apify.com/novashieldai/instagram-tiktok-scraper.md
- **Developed by:** [Ali haydar Karadaş](https://apify.com/novashieldai) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 16.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 & TikTok Scraper

Scrape public profile data and recent posts from Instagram and TikTok by username. This is the fastest way to pull follower counts, engagement metrics, bio info, contact details, and recent content data from both platforms in a single actor.

### What does Instagram & TikTok Scraper do?

This actor takes a username and a platform choice, then returns the full public profile along with recent posts or videos.

**Instagram mode** pulls the complete public profile -- username, full name, bio, follower and following counts, post count, verified and business account flags, profile picture, external URL, business category, and contact info (phone and email when available). It also grabs recent posts with likes, comments, timestamps, media URLs, thumbnails, post type (image, video, carousel), video views, and direct post links.

**TikTok mode** does the same for TikTok profiles -- username, display name, bio, followers, following, total likes received, video count, verified status, avatar, and the link in bio. Recent videos come with full engagement data: likes, comments, shares, views, duration, upload time, thumbnail, music/sound info, hashtags used, and direct video URLs.

Both platforms return structured, clean data ready for analysis or export. No login required -- it works with publicly accessible profiles only.

### What data do you get?

**Instagram profiles:**
- Username, full name, and biography
- Follower count, following count, and total posts
- Verified, private, and business account flags
- Profile picture URL and external link
- Business category, contact phone, and contact email
- Recent posts with post ID, shortcode, caption, likes, comments, timestamp, media URL, thumbnail, type, video views, and post URL

**TikTok profiles:**
- Username, nickname, and biography
- Follower count, following count, and total likes received
- Video count and verified status
- Avatar URL and link in bio
- Recent videos with video ID, description, likes, comments, shares, views, duration, timestamp, thumbnail, music title, music author, hashtags, and video URL

### Who is this for?

- **Influencer marketing agencies** evaluating creator reach and engagement before partnerships
- **Brand managers** monitoring their own social presence and competitor accounts
- **Market researchers** analyzing content trends and audience sizes across platforms
- **Journalists** verifying public figures' social media claims and follower growth
- **Sales teams** building prospect lists from business accounts with contact info

### How to use it

1. Choose your platform: Instagram or TikTok.
2. Enter the username you want to scrape (without the @ symbol).
3. Run the actor.
4. Get the full profile data and recent posts/videos in your preferred format.
5. Export as JSON, CSV, or Excel.

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| platform | string | instagram | Platform to scrape: instagram or tiktok |
| username | string | - | Public username to scrape (e.g., "nike"). Required |

### Sample output

```json
{
  "username": "nike",
  "full_name": "Nike",
  "biography": "Just Do It.",
  "followers": 306000000,
  "following": 198,
  "posts_count": 1243,
  "is_verified": true,
  "is_private": false,
  "is_business": true,
  "profile_pic": "https://instagram.com/p/nike_avatar.jpg",
  "external_url": "https://www.nike.com",
  "category": "Sportswear",
  "contact_phone": null,
  "contact_email": "social@nike.com",
  "recent_posts": [
    {
      "post_id": "3412789012345678",
      "shortcode": "CxYzAbCdEf",
      "caption": "Speed has a new look.",
      "likes": 482000,
      "comments": 3200,
      "timestamp": "2026-06-08T14:30:00Z",
      "media_url": "https://instagram.com/p/CxYzAbCdEf/media",
      "type": "image",
      "is_video": false,
      "url": "https://www.instagram.com/p/CxYzAbCdEf/"
    }
  ],
  "url": "https://www.instagram.com/nike/"
}
````

### How much does it cost?

This actor charges **$0.003 per result** (per profile scraped). That means 1,000 profiles cost $3.

Every Apify account includes $5 in free monthly credits -- enough to scrape over 1,600 profiles for free.

### Common questions

**Can I scrape private accounts?**
No. This actor only works with publicly accessible profiles. Private accounts will return an error indicating the profile is not accessible.

**Does it return all posts or just recent ones?**
It returns recent posts/videos attached to the profile. For full historical post data, you would need multiple runs or a custom solution -- reach out if that's what you need.

**How often can I scrape the same profile?**
As often as you want. Each run pulls live data, so you can track follower growth or engagement changes over time by scheduling regular runs.

### Contact & Custom Solutions

Need a custom scraper, higher volume, or a specific integration? We're here to help.

If anything isn't working right or you need support, don't hesitate to reach out.

- Telegram: [t.me/novashield\_dev](https://t.me/novashield_dev)
- Email: novashield.dev@gmail.com

# Actor input Schema

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

Target platform: 'instagram' or 'tiktok'.

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

Username to scrape (without @). Example: 'cristiano', 'charlidamelio'.

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

Select proxies to be used. Residential proxies are recommended for this actor to avoid blocking.

## Actor input object example

```json
{
  "platform": "instagram",
  "username": "nike"
}
```

# 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 = {
    "username": "nike"
};

// Run the Actor and wait for it to finish
const run = await client.actor("novashieldai/instagram-tiktok-scraper").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 = { "username": "nike" }

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

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram & TikTok Scraper",
        "description": "Scrape Instagram and TikTok profiles, followers, posts, videos, engagement metrics, and more.",
        "version": "1.0",
        "x-build-id": "y1OqsWVJz02PsGdfN"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/novashieldai~instagram-tiktok-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-novashieldai-instagram-tiktok-scraper",
                "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/novashieldai~instagram-tiktok-scraper/runs": {
            "post": {
                "operationId": "runs-sync-novashieldai-instagram-tiktok-scraper",
                "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/novashieldai~instagram-tiktok-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-novashieldai-instagram-tiktok-scraper",
                "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": [
                    "username"
                ],
                "properties": {
                    "platform": {
                        "title": "Platform",
                        "enum": [
                            "instagram",
                            "tiktok"
                        ],
                        "type": "string",
                        "description": "Target platform: 'instagram' or 'tiktok'.",
                        "default": "instagram"
                    },
                    "username": {
                        "title": "Username",
                        "type": "string",
                        "description": "Username to scrape (without @). Example: 'cristiano', 'charlidamelio'."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used. Residential proxies are recommended for this actor to avoid blocking."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
