> ## Documentation Index
> Fetch the complete documentation index at: https://brightdata-ipv6-release.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram API Scrapers

## Overview

The Instagram API Suite offers multiple types of APIs, each designed for specific data collection needs from Instagram. Below is an overview of how these APIs connect and interact, based on the available features:

<CardGroup cols="1">
  <Card title="Profiles API" icon="user" href="/api-reference/web-scraper-api/social-media-apis/instagram#profiles-api">
    This API allows users to collect profile details based on a single input: profile URL.

    <br />

    *   **Discovery functionality**:

    *   `N/A`

    <br />

    *   **Interesting Columns**:

    *   `followers`, `post_count`, `post_hashtags`, `profile_name`.
  </Card>

  <Card title="Posts API" icon="images" href="/api-reference/web-scraper-api/social-media-apis/instagram#posts-api">
    This API allows users to collect multiple posts based on a single input URL (such as an Instagram reels URL, search URL or profile URL).

    <br />

    *   **Discovery functionality**:

      *   - Direct URL of the Instagram reel

      *   - Direct URL of the search

      *   - Direct URL of the profile

    <br />

    *   **Interesting Columns**:

    *   `url`, `followers`, `hashtags`, `engagement_score_view`.
  </Card>

  <Card title="Comments API" icon="comments" href="/api-reference/web-scraper-api/social-media-apis/instagram#comments-api">
    This API allows users to collect multiple comments from a post using its URL.

    <br />

    *   **Discovery functionality**:

    *   `N/A`

    <br />

    *   **Interesting Columns**:

    *   `comment_user`, `comment`, `likes_number`, `replies_number`.
  </Card>
</CardGroup>

The suite of APIs is designed to offer flexibility for targeted data collection, where users can input specific URLs to gather detailed post and comment data, either in bulk or with precise filtering options.

## Profiles API

### Collect by URL

This API allows users to collect detailed data about an Instagram profile by providing the profile URL. It provides a comprehensive overview of an Instagram profile, including business and engagement information, posts, and user details.

**Input Parameters**

<ParamField path="URL" type="string" required="true">
  The Instagram profile URL.
</ParamField>

**Output Structure**
Includes comprehensive data points:

* **Page/Profile Details**:
  `account`, `id`, `followers`, `posts_count`, `is_business_account`, `is_professional_account`, `is_verified`, `avg_engagement`, `profile_name`, `profile_url`, `profile_image_link`, and more.

  > For all data points, [click here](https://brightdata.com/cp/data_api/gd_l1vikfch901nx3by4?id=all\&tab=overview).

## Posts API

### Collect by URL

This API enables users to collect detailed data from Instagram posts by providing a post URL.

**Input Parameters**

<ParamField path="URL" type="string" required="true">
  The Instagram post URL.
</ParamField>

**Output Structure**
Includes comprehensive data points:

* **Post Details**:
  `post_id`, `description`, `hashtags`, `date_posted`, `num_comments`, `likes`, `content_type`, `video_view_count`, `video_play_count`, and more.

  > For all data points, [click here](https://brightdata.com/cp/data_api/gd_lk5ns7kz21pck8jpis?id=all\&tab=overview).

* **Page/Profile Details**:
  `user_posted`, `followers`, `posts_count`, `profile_image_link`, `is_verified`, `profile_url`.

  > We provide a limited set of data points about the profile.

* **Attachments and Media**:
  `photos`, `videos`, `thumbnail`, `display_url` (link only, not the file itself), audio.

### Discover by URL

This API allows users to discover recent Instagram posts from a public profile by providing the profile URL and specifying additional parameters.

**Input Parameters**

<ParamField path="URL" type="string" required="true">
  The Instagram profile URL.
</ParamField>

<ParamField path="num_of_posts" type="number">
  The number of recent posts to collect. If omitted, there is no limit.
</ParamField>

<ParamField path="posts_to_not_include" type="array">
  Array of post IDs to exclude from the results.
</ParamField>

<ParamField path="start_date" type="string">
  Start date for filtering posts in MM-DD-YYYY format (should be earlier than end\_date).
</ParamField>

<ParamField path="end_date" type="string">
  End date for filtering posts in MM-DD-YYYY format (should be later than start\_date).
</ParamField>

<ParamField path="post_type" type="string">
  Specify the type of posts to collect (e.g., post, reel).
</ParamField>

**Output Structure**
Includes comprehensive data points:

* Post Details:
  `post_id`, `description`, `hashtags`, `date_posted`, `num_comments`, `likes`, `video_view_count`, `video_play_count`,and more.

  > For all data points, [click here](https://brightdata.com/cp/data_api/gd_lk5ns7kz21pck8jpis/url?id=all\&tab=overview).

* Page/Profile Details:
  `user_posted`, `followers`, `posts_count`, `profile_image_link`, `is_verified`, `profile_url`, `is_paid_partnership`, `partnership_details`, `user_posted_id`

* Attachments and Media:
  `photos`, `videos`, `thumbnail`, `audio`, `display_url`, `content_type`, `product_type`, `coauthor_producers`, `tagged_users`.

This API is designed to allow for filtering, exclusion of specific posts, and collecting posts by type (regular post or reel) within a defined time frame. It provides detailed post and profile information, making it ideal for data collection and analytics.

## Comments API

### Collect by URL

This API allows users to collect the latest comments from a specific Instagram post by providing the post URL.

<Note>
  This API retrieves the most recent 10 comments along with associated metadata.
</Note>

**Input Parameters**

<ParamField path="URL" type="string" required="true">
  The Instagram post URL.
</ParamField>

**Output Structure**
Includes comprehensive data points:

* **Comment Details**:
  `comment_id`, `comment_user`, `comment_user_url`, `comment_date`, `comment`, `likes_number`, `replies_number`, `replies`, `hashtag_comment`, `tagged_users_in_comment`, and more.

  > For all data points, [click here](https://brightdata.com/cp/data_api/gd_ltppn085pokosxh13?id=all\&tab=overview).

* **User Details**:
  `user_name`, `user_id`, `user_url`

  > We provide a limited set of data points about the profile.

* **Post Metadata**:
  `post_url`, `post_user`, `post_id`.

## Reels API

### Collect by URL

This API allows users to collect detailed data about Instagram reels from public profiles by providing the reel URL.

**Input Parameters**

<ParamField path="URL" type="string" required="true">
  The Instagram reel URL.
</ParamField>

**Output Structure**
Includes comprehensive data points:

* **Reel Details**:
  `post_id`, `description`, `hashtags`, `date_posted`, `tagged_users`, `num_comments`, `likes`, `views`, `video_play_count`, `length`, and more.

  > For all data points, [click here](https://brightdata.com/cp/data_api/gd_lyclm20il4r5helnj?id=all\&tab=overview).

* **Page/Profile Details**:
  `user_posted`, `followers`, `posts_count`, `profile_image_link`, `is_verified`, `profile_url`.

  > We provide a limited set of data points about the profile.

* **Attachments and Media**:
  `video_url`, `thumbnail`, `audio_url`.

### Discover by URL

This API allows users to discover Instagram Reels videos from a profile URL or direct search URL.

**Input Parameters**

<ParamField path="URL" type="string" required="true">
  The Instagram profile or direct search URL.
</ParamField>

<ParamField path="num_of_posts" type="number">
  The number of recent reels to collect. If omitted, there is no limit.
</ParamField>

<ParamField path="posts_to_not_include" type="array">
  Array of post IDs to exclude from the results.
</ParamField>

<ParamField path="start_date" type="string">
  Start date for filtering reels in MM-DD-YYYY format.
</ParamField>

<ParamField path="end_date" type="string">
  End date for filtering reels in MM-DD-YYYY format (should be later than `start_date`).
</ParamField>

**Output Structure**
Includes comprehensive data points:

* **Reel Details**:
  `post_id`, `description`, `hashtags`, `date_posted`, `num_comments`, `likes`, `views`, `video_play_count`, `top_comments`, `length`, `video_url`, `audio_url`, `content_id`, and more.

  > For all data points, [click here](https://brightdata.com/cp/data_api/gd_lyclm20il4r5helnj/url?id=all\&tab=overview).

* **Profile Details**:
  `user_posted`, `followers`, `posts_count`, `following`.

* **Attachments and Media**:
  `video_url`, `thumbnail`, `audio_url` (link only, not the file itself).

This API provides detailed information about Instagram Reels, with filtering options by date range, exclusion of specific posts, and a limit on the number of reels collected.
