Instagram Related Profiles Scraper avatar

Instagram Related Profiles Scraper

Pricing

from $0.60 / 1,000 results

Go to Apify Store
Instagram Related Profiles Scraper

Instagram Related Profiles Scraper

Scrape Instagram profile data, profile statistics, and recursive related-profile discovery from public Instagram pages

Pricing

from $0.60 / 1,000 results

Rating

0.0

(0)

Developer

Instagram Scraper

Instagram Scraper

Maintained by Community

Actor stats

4

Bookmarked

1.4K

Total users

167

Monthly active users

16 days ago

Last modified

Features

Limited permissions

Share

Actor Stats

A powerful scraper built for recursive profile discovery and data mining. Start with a single Instagram username or URL and automatically traverse "related profiles" to map out interconnected networks, discover influencers, and find niche communities.

Focused exclusively on profiles, this actor traverses up to your desired scrapeDepth and extracts comprehensive profile data—returning normalized profile fields (identity, stats, and account flags), raw metadata, and optional previews like latest_posts and related_profiles for every discovered account.


What this actor can do

  • Scrape Instagram profile stats: followers, following, number of posts
  • Get key profile attributes: verified/private/business flags, profile pictures, bio, external links (if available)
  • Keep additional raw profile metadata from Instagram, including viewer/account capability flags and business/category fields when available
  • Optionally scrape a linked Facebook profile into fb_profile when scrapeFacebookProfile is enabled
  • Optionally return post counts and latest post previews (caption, image, media type, basic author, and carousel count when available) when skipAdditionalData is turned off
  • Return a list of related profiles (useful for discovery and recursive expansion)
  • Expand related profiles up to a configurable scrapeDepth
  • Accept both usernames and profile URLs

Want to get other details from Instagram?

This actor is optimized for profiles (not full post feeds). If you want to scrape other Instagram data, use a dedicated scraper for that specific data type.

Related actors:

ActorDescriptionStats
Instagram Profile FinderFind relevant Instagram profiles by keyword or topicInstagram Profile Finder Actor Stats
Instagram Profile ScraperScrape Instagram profile data and profile statistics from public Instagram pagesInstagram Profile Scraper Actor Stats
Fast Instagram Profile Posts ScraperScrape post data from Instagram profile pagesFast Instagram Profile Posts Scraper Actor Stats
Instagram Profile Posts ScraperExtract profile post details such as hashtags, counts, media, and shortcodeInstagram Profile Posts Scraper Actor Stats
Fast Instagram Profile Reels ScraperScrape public Instagram Reels from profile pagesFast Instagram Profile Reels Scraper Actor Stats
Instagram Posts & Reels ScraperScrape Instagram posts and Reels dataInstagram Posts & Reels Scraper Actor Stats
Instagram Hashtags Posts ScraperScrape public Instagram hashtag pagesInstagram Hashtags Posts Scraper Actor Stats

What data can I scrape from Instagram profiles?

Using this Instagram Related Profiles API, you can extract both normalized fields and additional Instagram profile metadata (when available on the public profile):

CategoryFieldsWhat you get
Core profile IDspk, pk_id, id, username, full_name, urlInstagram profile identifiers plus the canonical profile URL.
Profile media & linksprofile_pic_url, profile_pic_url_hd, profile_pic_id, profile_pic_genai_tool_info[], has_profile_pic, biography, contact_email, bio_links[], external_url, external_url_linkshimmed, pronouns[]Profile pictures, bio text, extracted contact email, bio links, and Instagram link-wrapper URLs when present. bio_links[] keeps Instagram's current nested link shape, including keys such as image_url, is_pinned, link_type, lynx_url, media_type, and creation_source.
Facebook enrichmentfb_profile, linked_fb_infoOptional Facebook lookup output from one detected profile URL when scrapeFacebookProfile is enabled, plus raw Instagram-linked Facebook metadata when Instagram exposes it.
Counts & activityfollowers, following, post_count, total_clips_count, latest_reel_mediaHigh-level profile counts and reel activity metadata when available. post_count may be approximate because Instagram displays abbreviated counts such as 14K or 1.2M. If the count is unavailable, post_count is emitted as null.
Account state & flagsaccount_type, category, is_verified, is_private, is_business, is_professional_account, is_memorialized, is_unpublished, is_embeds_disabled, has_any_clips, has_story_archive, is_active_on_text_post_app, hide_creator_marketplace_badge, is_regulated_c18, is_coppa_enforced, is_cannesVisibility, category, and account-state flags from Instagram's current profile payload.
Transparency & contextshould_show_category, show_account_transparency_details, show_text_post_app_badge, text_post_app_badge_label, transparency_label, transparency_product, live_broadcast_visibility, live_broadcast_id, supervision_info, mutual_followers_count, profile_context_links_with_user_ids, profile_context_facepile_users, show_ring_award, is_ring_creator, account_badges[]Additional transparency, broadcast, supervision, and context metadata when Instagram includes it.
Public location hintsaddress_street, city_name, zipPublic location/contact-adjacent profile metadata when exposed by Instagram.
Latest posts (preview)latest_posts[]First-page previews from the public profile page when enabled. Each item has the 17 fields documented below; unavailable engagement statistics, publication times, video details, and carousel children are not included.
Related profilesrelated_profiles[]Suggested accounts used for discovery and recursive expansion. Each item currently includes id, username, full_name, profile_pic_url, is_private, and is_verified when present in Instagram's response.
Traversal & scrape metadatadepth, source_username, ig_status, message (not-found items), crawled_atdepth is 0 for an input username and increases by one for each related-profile hop. source_username is null at the root and otherwise points to the parent username. ig_status is ok, not_found, or invalid_input.

Notes:

  • Field availability depends on what Instagram returns for a given profile (especially for private accounts).
  • Some fields are normalized by the actor (followers, following), while others are passed through from Instagram's profile payload.
  • Raw Instagram metadata can change over time, so downstream consumers should treat optional pass-through fields as non-guaranteed.
  • post_count is available to all users. Instagram may display abbreviated counts (for example, 14K Posts), so values should be treated as approximate. If the count is unavailable, post_count is emitted as null.
  • If an input username or profile URL is invalid, the actor emits a dataset row with ig_status = "invalid_input" instead of silently dropping that value.
  • contact_email is extracted from biography or full_name when an email address is present on a found profile, and is null otherwise.
  • fb_profile is null when the toggle is disabled or no Facebook profile URL is found. If Facebook profile parsing still fails after retries, the actor keeps fb_profile as null instead of throwing. Other lookup failures can still surface as fb_profile.status = "error" or fb_profile.status = "not_found".
  • latest_posts provides the available first-page public previews for all users and keeps every valid item available in that batch, without an output cap or automatic pagination. related_profiles contains Instagram's suggested accounts for the profile.
  • For stable downstream parsing, missing optional scalars remain null and known list fields remain arrays. For example, profile pronouns and preview hashtags and mentions are emitted as [] when no values are present.
  • The filter fields only decide whether a profile is written to the dataset. They do not stop related profiles from being fetched.

Typical use cases

  • Influencer discovery and enrichment (profile stats, verification, business account)
  • Competitor monitoring (track follower growth over time)
  • Lead enrichment for sales/marketing (public business profiles)
  • Content research (quick look at latest post captions and preview images)

Input

Configure these fields in the Actor’s Input tab in the Apify Console:

instagramUsernames (required)

A list of Instagram usernames or profile URLs you want to scrape.

Examples:

  • google
  • https://www.instagram.com/google/

scrapeFacebookProfile (optional)

When enabled, the actor looks for one Facebook profile URL in this order: external_url, bio_links, biography, then full_name.

The nested fb_profile payload includes url, status, message, bio, profile_name, page_id, counts, and category/profile-type fields when available.

skipAdditionalData (optional)

Controls whether the actor collects additional post data: latest_posts previews and post_count. These optional details are available to all users.

  • Default: true
  • true: skip both and return latest_posts: [] and post_count: null
  • false: collect the available previews and post count

The minPosts and maxPosts filters still require collecting post_count even when skipAdditionalData is true; previews remain skipped in that case.

This replaces skipLatestPosts and skipPostCount. The old input fields are ignored. Update saved inputs to use skipAdditionalData: false if you need post counts or previews; post counts are now skipped by default.

Latest-post preview fields

Each item contains exactly these 17 fields:

FieldsMeaning
pk, idOriginal media identifiers and types, or null when unavailable.
code, shortcode, urlMedia shortcode and a link to the post or Reel. A valid shortcode takes precedence over code; both output fields use that value.
media_type, product_type, is_videoAvailable media classification and a boolean indicating whether the preview identifies a video.
caption, hashtags, mentionsCaption text and deduplicated hashtags/mentions in their original order, without # or @. An empty caption stays an empty string.
accessibility_caption, display_uri, imageAvailable accessibility text and preview image URL.
userBasic media author object with id and username. A collaborator can differ from the profile being scraped.
carousel_media_countReported carousel size, or null when unavailable. Carousel children are not included.
crawled_atCollection time in UTC ISO 8601, shared by the preview batch.

Missing supported scalar or object values use null; hashtags and mentions use []. These previews do not include engagement counts, publication times, video URLs or durations, dimensions, music, tagged users, or carousel children. These unavailable details are omitted instead of adding placeholder keys.

Latest-post scope and limits

  • Previews come from the first page of the public profile. The actor keeps every valid preview in the returned order, without a fixed item count, output cap, or automatic pagination. Pinned or ranked posts can affect the order.
  • skipAdditionalData defaults to true. Collect previews and post counts together with skipAdditionalData: false.
  • Private, restricted, unavailable, or partially visible profiles can produce an empty or incomplete preview. latest_posts: [] does not prove that the profile has no posts.
  • If the optional preview lookup or parsing fails, the actor still saves the profile with an empty preview. It does not fetch extra post details to fill gaps.
  • Preview image URLs come from Instagram and may expire. Download or process images promptly if your workflow needs durable copies.

scrapeDepth (optional)

Controls how many additional related-profile layers are expanded.

  • 0: store the input profile and its direct related profiles
  • 1: also expand the related profiles of those related profiles
  • 10 is the maximum accepted value

maxResultsPerProfile (optional)

Limits the number of saved profiles per input account, including the input account itself and related profiles discovered at any depth.

  • Minimum value: 10
  • Default: no limit (omit the field or set it to null)
  • Each input account has its own limit; duplicate profiles are saved only once.
  • Actual results may be lower depending on profile availability, filters, and the run's maximum charge.

Filter fields (optional)

These fields are grouped under a Filters section in the Apify Console and are top-level JSON inputs. In the console they render as Yes / No dropdowns. In raw JSON, use lowercase yes / no; leave a field empty or set it to null to disable that filter.

{
"minFollowers": 1000,
"maxFollowers": 1000000,
"minPosts": 10,
"maxPosts": 5000,
"isVerified": "yes",
"isPrivate": "no",
"isBusinessAccount": "yes"
}

Leave any field empty or null to disable that specific filter.

Profiles that are filtered out still count as processed work and may trigger the filtered-out billing event even though they do not appear in the dataset.

Quick start (Apify Console)

  1. Add one or more values to instagramUsernames (either usernames like nypost or URLs like https://www.instagram.com/google/).
  2. Adjust scrapeDepth, the filter fields, or maxResultsPerProfile only if you need a deeper crawl or tighter result limits.
  3. Click Run → open the Dataset tab to view/export results (JSON, CSV, Excel, etc.).

This makes the actor usable as an Instagram profile scraping API, because datasets can be consumed programmatically via Apify’s API.


Example input

{
"instagramUsernames": ["kevinhart4real"],
"scrapeFacebookProfile": true,
"skipAdditionalData": false,
"scrapeDepth": 1,
"maxResultsPerProfile": 100,
"isVerified": "yes",
"isPrivate": "no"
}

Example output

This synthetic example shows one preview item so the output shape remains readable. Production runs keep all valid items available in the recent post preview; they are not limited to the one item shown below. Optional pass-through fields may differ between profiles and as Instagram changes its response.

{
"pk": "123",
"username": "sampleprofile",
"full_name": "Example Business",
"biography": "Contact hello@example.com",
"profile_pic_url": "https://example.com/profile.jpg",
"profile_pic_url_hd": "https://example.com/profile-hd.jpg",
"requested_by_viewer": null,
"business_email": null,
"is_private": false,
"is_verified": false,
"post_count": 42,
"id": "123",
"url": "https://www.instagram.com/sampleprofile/",
"contact_email": "hello@example.com",
"followers": 321,
"following": 12,
"latest_posts": [
{
"pk": "media-0",
"id": "opaque-media-0",
"code": "SHORT0",
"shortcode": "SHORT0",
"url": "https://www.instagram.com/p/SHORT0/",
"media_type": 8,
"product_type": "carousel_container",
"caption": "Example post 0 #sample @collaborator",
"hashtags": [
"sample"
],
"mentions": [
"collaborator"
],
"accessibility_caption": "Example preview",
"display_uri": "https://example.com/preview-0.jpg",
"image": "https://example.com/preview-0.jpg",
"is_video": false,
"user": {
"id": "author-0",
"username": "sampleprofile"
},
"carousel_media_count": 7,
"crawled_at": "2026-10-31T00:00:00Z"
}
],
"related_profiles": [],
"fb_profile": null,
"ig_status": "ok",
"crawled_at": "2026-10-31T00:00:00Z",
"is_business": null,
"is_professional_account": null,
"category": null,
"should_show_category": null,
"depth": 0,
"source_username": null
}

Example dataset item when a profile is not found:

{
"username": "11",
"depth": 0,
"source_username": null,
"ig_status": "not_found",
"message": "Profile not found or restricted",
"url": "https://www.instagram.com/11/",
"crawled_at": "2026-02-06T08:03:20.522Z"
}

Here, ig_status: "not_found" means Instagram did not return profile data for that username because the profile does not exist or access to it is restricted.


Tips & troubleshooting

Don’t overload the actor. If you need to scrape large lists, split inputs into batches.


You are responsible for ensuring your use of this actor complies with:

  • Instagram’s Terms of Service
  • Applicable laws and regulations (privacy, data protection, etc.)

Only scrape data you have the right to access, and avoid collecting personal data without a lawful basis.