Skip to content
//Instagram Scraper example\\

Comments on a profile's latest posts

Comments from the 3 latest posts of a profile link.

Updated October 26, 2026

What this example returns

This example returns up to 5 results.

The dataset’s “Profiles” view shows 9 columns: Username, Full name, Followers, Following, Posts, Verified, Private, URL, and Input URL. See every output field.

What each setting does

The input this example runs Instagram Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Content to scrape resultsType

Comments

One results type per run. Posts returns a feed. Details returns the metadata object for the URL. Comments works with post and reel URLs, and with profile, hashtag, place or audio URLs: those return the comments of their latest posts (see Posts to read comments from). Stories is accepted but hidden in the console.

Default: Posts → this example uses Comments

Instagram URLs based on content type directUrls

https://www.instagram.com/natgeo/

Instagram URLs: profiles, posts, reels, hashtags (explore/tags), places (explore/locations) or audio pages. When this list is not empty, search is ignored.

Results limit per URL resultsLimit

5

How many posts, reels, comments, or mentions to return per URL. In Comments mode the limit is per post: a profile, hashtag, place or audio URL returns up to this many comments from each of its latest posts.

Default: 20 → this example uses 5

Posts to read comments from commentsPostsLimit

3

Comments mode with a profile, hashtag, place or audio URL: read the comments of this many of its latest posts (newest first, after the date filter and Skip pinned posts). Results limit per URL then applies to each post. Post and reel URLs ignore this field.

Default: 10 → this example uses 3

.json
{
  "resultsType": "comments",
  "directUrls": [
    "https://www.instagram.com/natgeo/"
  ],
  "commentsPostsLimit": 3,
  "resultsLimit": 5
}

What it costs

About $0.013 for 5 results

An estimate: 5 × $0.0026 per result (One saved Instagram result: a post, reel, comment, profile, hashtag or place). A run is charged for the events it reports, so one that finds fewer results costs less. Platform usage is included in the event price.

Full pricing

Other ways to run Instagram Scraper

All examples of Instagram Scraper

About Instagram Scraper

Scrape public Instagram profiles, posts, reels, comments, mentions, stories, hashtags, and places. Get captions, likes, comments, media URLs, and owner details without logging in.

Price:
from $2.05 / 1,000 results
Developer:
Echofield

Instagram Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.