# Instagram Scraper (`bhansalisoft/instagram-scraper`) Actor

Extract Instagram posts, reels, profiles, places, hashtags, carousels, and comments. Get data from Instagram using one or more Instagram URLs or search queries: content, context, metrics, metadata. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

- **URL**: https://apify.com/bhansalisoft/instagram-scraper.md
- **Developed by:** [bhansalisoft](https://apify.com/bhansalisoft) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 – Extract Instagram Profiles, Posts, Reels, Comments & More

The **Instagram Scraper** is a powerful Instagram data extraction tool designed to collect publicly available information from Instagram profiles, posts, Reels, hashtags, and other Instagram content.

Looking for an efficient **Instagram Scraper** to automate social media data collection? This tool helps you extract Instagram data in bulk without manually visiting individual profiles, posts, or pages.

Whether you want to scrape Instagram profiles, collect post information, extract Reels, analyze comments, discover hashtags, or research Instagram audiences, this Instagram Scraper simplifies the entire data collection process.

Enter your Instagram URLs, profile usernames, hashtags, or supported search queries to start extracting structured Instagram data. Collect useful information such as usernames, profile details, captions, hashtags, post URLs, engagement metrics, comments, and media information, depending on the selected extraction type.

With automated scraping, structured datasets, and Apify integration, this Instagram Scraper is suitable for digital marketers, developers, researchers, agencies, businesses, and social media professionals.

### What Can You Extract Using Instagram Scraper?

This Instagram Scraper helps collect different types of publicly available Instagram information.

#### 1. Instagram Profile Scraper

Extract useful information from Instagram profiles, including:

- Instagram username
- Full name
- Profile biography (Bio)
- Profile URL
- Profile picture URL
- Followers count
- Following count
- Total posts count
- Business or professional account information, where available
- Public website information, where available
- Verification status, where available

Use Instagram Profile Scraper functionality to research creators, influencers, businesses, and public Instagram accounts.

#### 2. Instagram Posts Scraper

Collect Instagram post information for content research and social media analysis.

Extract information such as:

- Instagram post URL
- Post ID
- Post caption
- Username
- Hashtags
- Mentions
- Publication date
- Likes count
- Comments count
- Media URLs
- Image and video information
- Location information, where available

Analyze Instagram content, discover trending topics, and research competitor publishing strategies.

#### 3. Instagram Reels Scraper

Collect publicly available Instagram Reels information for video research and content analysis.

Potential data fields include:

- Reel URL
- Reel ID
- Reel caption
- Creator username
- Hashtags
- Video URL, where available
- Thumbnail URL
- Video duration
- Views count, where available
- Likes count
- Comments count
- Publication date

Discover popular video content and analyze Instagram Reels performance.

#### 4. Instagram Comments Scraper

Extract publicly accessible comments from supported Instagram posts and Reels.

Collect information such as:

- Comment ID
- Comment text
- Comment author username
- Comment author profile URL, where available
- Comment publication date
- Likes count, where available
- Reply information, where available
- Related post URL

Useful for customer feedback research, audience engagement analysis, and sentiment research.

#### 5. Instagram Hashtag Scraper

Discover Instagram content associated with specific hashtags.

Use hashtag-based research to:

- Discover posts related to specific topics.
- Identify popular hashtags.
- Research industry trends.
- Analyze niche content.
- Discover relevant creators and businesses.
- Monitor content around selected topics.

#### 6. Instagram Influencer Research

Discover public Instagram creator information and analyze audience engagement.

Use extracted profile and post information to research:

- Influencers
- Content creators
- Bloggers
- Artists
- Public business accounts
- Industry-specific Instagram accounts

Useful for influencer marketing, brand research, and collaboration discovery.

### Main Features of Instagram Scraper

- **Instagram Profile Extraction:** Collect publicly available Instagram profile information.
- **Instagram Post Scraping:** Extract post captions, URLs, hashtags, and engagement information.
- **Instagram Reels Extraction:** Collect Instagram Reels information and available video metadata.
- **Instagram Comments Extraction:** Retrieve publicly available comments and related information.
- **Hashtag-Based Scraping:** Discover Instagram content using targeted hashtags.
- **Bulk Instagram Scraping:** Process multiple supported Instagram URLs in one scraping task.
- **Structured Data Extraction:** Organize extracted information into structured datasets.
- **Duplicate Filtering:** Avoid duplicate records where supported.
- **Cloud-Based Scraping:** Run scraping tasks through Apify infrastructure.
- **Data Export:** Download extracted information in JSON, CSV, Excel, and other supported formats.
- **API Integration:** Integrate Instagram data extraction into your applications and automated workflows.
- **Automation Support:** Schedule and automate scraping workflows through Apify.

### Why Use an Instagram Scraper?

Manually collecting Instagram information can be time-consuming, especially when researching hundreds or thousands of profiles, posts, and other social media content.

An Instagram Scraper automates the data collection process and helps you organize publicly available information into structured datasets.

Instead of manually opening individual Instagram pages, you can automate data extraction and spend more time analyzing the collected information.

Whether you are conducting market research, discovering influencers, monitoring competitors, or analyzing social media engagement, an Instagram Scraper can make your research workflow more efficient.

### Instagram Scraper Use Cases

#### 1. Social Media Marketing

Collect Instagram posts, profiles, and engagement information to understand social media trends and improve marketing strategies.

#### 2. Influencer Marketing

Research public creator profiles, follower counts, content categories, and engagement information to identify potential influencer collaborations.

#### 3. Competitor Analysis

Monitor publicly available competitor content, posting activity, hashtags, and engagement metrics.

#### 4. Market Research

Discover relevant Instagram content, businesses, creators, and audience interests within specific industries.

#### 5. Brand Monitoring

Research publicly available mentions, hashtags, and posts related to brands, products, and services.

#### 6. Content Research

Analyze Instagram posts, Reels, captions, and hashtags to discover popular content topics and creative trends.

#### 7. Data Analytics

Export structured Instagram datasets for further analysis using Excel, Python, business intelligence tools, and other applications.

#### 8. Lead Research

Research public business profiles and professional accounts to identify potential business prospects. Use contact information only where publicly available and appropriate.

#### 9. AI and Machine Learning

Use structured Instagram datasets for social media analytics, content classification, trend detection, and other data analysis applications.

### How to Use Instagram Scraper

Getting started with this Instagram Scraper is simple.

**Step 1: Open the Instagram Scraper**

Open this Actor in Apify Console.

**Step 2: Configure Input Parameters**

Enter your target Instagram profile URLs, post URLs, Reel URLs, hashtags, or other supported input values.

**Step 3: Select Scraping Options**

Choose the extraction type and configure the available scraping settings.

**Step 4: Configure Result Limits**

Set the maximum number of results you want to collect.

**Step 5: Start Scraping**

Click the Start button to execute your Instagram scraping task.

**Step 6: Download Extracted Data**

Once the scraping task is complete, open the Apify dataset and export your results in your preferred supported format.

### Supported Data Export Formats

Export your extracted Instagram information for further processing and analysis.

- JSON
- CSV
- Excel
- XML
- Other formats supported by Apify datasets

### Who Should Use This Instagram Scraper?

This Instagram Scraper is suitable for:

- Digital Marketing Agencies
- Social Media Marketing Professionals
- Influencer Marketing Agencies
- Market Research Companies
- SEO Professionals
- Business Analysts
- Data Scientists
- Developers
- Content Creators
- Social Media Researchers
- Startups and Entrepreneurs
- AI and Machine Learning Developers

### Frequently Asked Questions

**1. What is an Instagram Scraper?**

An Instagram Scraper is a data extraction tool that automates the collection of publicly available information from Instagram. Depending on its supported features, it can collect profile details, posts, Reels, comments, hashtags, and engagement information.

**2. What information can I extract using Instagram Scraper?**

You can extract different types of Instagram information, including profile details, post captions, usernames, hashtags, media URLs, engagement metrics, comments, and other available metadata.

**3. Can I scrape Instagram profiles in bulk?**

You can submit multiple supported Instagram profile URLs for bulk extraction, subject to the Actor's input configuration and result limits.

**4. Can I extract Instagram posts and Reels?**

Yes, the scraper supports extracting Instagram posts and Reels when the corresponding extraction options are available.

**5. Can I scrape Instagram comments?**

The comments extraction functionality can collect publicly accessible comments from supported Instagram posts or Reels.

**6. Can I scrape Instagram data using hashtags?**

If hashtag-based scraping is enabled, you can use specific hashtags to discover related Instagram content.

**7. Can I export Instagram data to Excel?**

Yes. You can export your Apify dataset in CSV, Excel, JSON, and other supported formats.

**8. Can I integrate Instagram Scraper with my application?**

Yes. Apify provides API access that allows you to execute Actor runs, monitor execution status, and retrieve extracted datasets programmatically.

**9. Is this Instagram Scraper useful for market research?**

Yes. Public Instagram data can help researchers analyze content trends, creator activity, hashtags, engagement, and industry-related information.

**10. Can I automate Instagram scraping?**

Yes. You can integrate the Actor with Apify API and automated workflows to run data extraction tasks programmatically or on a schedule.

### Start Scraping Instagram Data Today

Automate your Instagram data collection with a powerful Instagram Scraper.

Extract publicly available Instagram profiles, posts, Reels, comments, hashtags, and engagement information. Discover social media trends, research influencers, analyze competitors, and collect structured datasets for your business and research projects.

Whether you need an **Instagram Profile Scraper, Instagram Posts Scraper, Instagram Reels Scraper, Instagram Comments Scraper, or Bulk Instagram Scraper**, this tool helps simplify your Instagram data extraction workflow.

Start your Instagram scraping task today and turn publicly available social media information into useful, structured data.

**Important:** This tool is intended for responsible collection of publicly available information. Follow Instagram's applicable terms, privacy requirements, and relevant data protection laws. Extraction availability may depend on content accessibility and platform restrictions.

Related instagram tools

[Instagram email scraper](https://apify.com/bhansalisoft/instagram-email-scraper?fpr=pjv8t)
[Instagram follower scraper](https://apify.com/bhansalisoft/instagram-follower-scraper?fpr=pjv8t)

if any query write us at telegram : bhansalisoftware

# Actor input Schema

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

Posts returns a feed of content. Profile, hashtag, or place details returns metadata about the page: follower count, bio, post count, and profile picture.
Comments only work with post URLs, e.g. instagram.com/p/ABC123xyz/ not instagram.com/username/.

## `directUrls` (type: `array`):

Add one or more Instagram URLs to scrape.
URL format must match your content type:
/p/ for posts and comments
/reel/ for reels
/username/ for profile details
Leave blank if using the search query instead.

## `resultsLimit` (type: `integer`):

Set how many posts or comments to scrape per Instagram URL. Higher values increase compute usage and cost.
sorted by newest, and around 21 mentions. Upgrade to Starter plan for full access.
Use 1 to retrieve a single post per page.

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

Search for Instagram hashtags, profiles, or places.Use # for hashtags, e.g. #travel.

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

Hashtag search returns posts tagged with that term. Profile search returns matching accounts. Place search returns matching locations.

## `searchLimit` (type: `integer`):

Set how many profiles, places, or hashtags to find.To limit posts per result, use Results limit per URL.Higher values increase compute usage and cost.

## Actor input object example

```json
{
  "resultsType": "posts",
  "directUrls": [
    "https://www.instagram.com/humansofny/"
  ],
  "resultsLimit": 100,
  "searchType": "hashtag",
  "searchLimit": 100
}
```

# Actor output Schema

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

No description

## `summary` (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("bhansalisoft/instagram-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("bhansalisoft/instagram-scraper").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 bhansalisoft/instagram-scraper --silent --output-dataset

```

## MCP server setup

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

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/rXznCWKSfHiVb7ER3/builds/kTpv1GOKR8sNERhju/openapi.json
