Agent skill

Instagram Post Comments

by browser-act in browser-act/skills

Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count.

MITAuto-check passedData & Analytics

Install Instagram Post Comments

skills CLI
$ npx skills add browser-act/skills --skill instagram-post-comments -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install browser-act/skills instagram-post-comments --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/browser-act/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/solutions/social-listening/instagram-post-comments .claude/skills/instagram-post-comments && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
instagram-post-comments
GitHub stars
6.1k
Token cost
~1.7k tokens
SKILL.md length
735 words
Files
3 (incl. scripts)
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count.

  • Works in 2 steps: Tool Readiness → Login Verification
  • User mentions Instagram comments scraping
  • SKILL.md covers Language, Objective, Prerequisites and Pre-execution Checks, plus 6 more sections
  • Runs Python scripts from its folder; calls python; reaches instagram.com

What it does

Instagram Post Comments is an agent skill from browser-act/skills. Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count. Use when user mentions Instagram comments scraping, get comments from Instagram post, Instagram comment list, pull Instagram comments, read Instagram comments, Instagram post discussion, extract Instagram comments, comment data from Instagram, IG post replies, who commented on Instagram.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/get-media-id.py` and `scripts/get-post-comments.py`).

It sits in Data & Analytics, covering Web scraping and Social media marketing. It works with Instagram and Python. The repository describes itself as: Browser automation CLI built for AI agents. Break through anti-bot walls, hand off to humans across platforms when stuck. Parallel multi-task execution, independent multi-session… The licence is MIT.

When your agent uses it

  • User mentions Instagram comments scraping
  • Get comments from Instagram post
  • Instagram comment list
  • Pull Instagram comments

Example prompts

  • “Use the instagram-post-comments skill to fetch comments from an Instagram post including comment text, username, timestamp, like count and reply count”
  • “/instagram-post-comments”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Tool Readiness
  2. Login Verification

What it can do on your machine

Read from SKILL.md and the folder at commit 11c057b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • instagram.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Instagram Post Comments loads about 1.7k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 735 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~106
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from browser-act/skills at commit 11c057b, republished under its MIT licence (© browser-act). 735 words, ~1,654 tokens.

Download SKILL.mdSave it as .claude/skills/instagram-post-comments/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
instagram-post-comments
description
Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count. Use when user mentions Instagram comments scraping, get comments from Instagram post, Instagram comment list, pull Instagram comments, read Instagram comments, Instagram post discussion, extract Instagram comments, comment data from Instagram, IG post replies, who commented on Instagram.

Instagram — Post Comments

post shortcode or media ID → paginated list of comments

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Fetch comments for a specific Instagram post using the internal comments API with cursor-based pagination.

Prerequisites

  • Browser is open on any Instagram page: https://www.instagram.com/
  • Logged into Instagram (user avatar or username visible in top-right corner)

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

2. Login Verification

If login status for Instagram has been confirmed in the current session → skip this step.

Otherwise: open https://www.instagram.com/ and observe the page login status:

  • Logout/sign-out entry, user avatar, or username exists → logged in, continue execution
  • Login/register entry exists with no logout entry → not logged in, inform the user that login is needed first, assist the user in completing the login flow

User refuses or cannot log in → terminate execution.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.

API: get media ID from shortcode

eval "$(python scripts/get-media-id.py '{shortcode}')"

Parameters:

  • shortcode: Post shortcode from the Instagram URL (e.g., from instagram.com/p/BwrsO1Bho2N/ → BwrsO1Bho2N)

Output example:

json
{
  "media_id": "3900557621921709539",
  "shortcode": "BwrsO1Bho2N",
  "media_type": 1,
  "username": "natgeo",
  "taken_at": 1779686199
}
API: get comments page

eval "$(python scripts/get-post-comments.py '{media_id}' --min-id '{cursor}')"

Parameters:

  • media_id: Numeric media ID / pk (from get-media-id output, or from profile-posts output)
  • --min-id: Pagination cursor; leave empty for first page, use next_min_id from previous response for subsequent pages

Output example:

json
{
  "comments": [
    {
      "pk": "17857015000000001",
      "text": "Amazing photo!",
      "username": "john_doe",
      "user_id": "123456789",
      "created_at": 1779686500,
      "like_count": 42,
      "reply_count": 3
    }
  ],
  "has_more_comments": true,
  "next_min_id": "17857015000000001"
}
Composite: fetch all comments for a post
  1. navigate https://www.instagram.com/ → wait stable
  2. If only shortcode is available: eval "$(python scripts/get-media-id.py '{shortcode}')" → extract media_id
  3. eval "$(python scripts/get-post-comments.py '{media_id}')" → collect comments, note has_more_comments and next_min_id
  4. While has_more_comments is true: a. eval "$(python scripts/get-post-comments.py '{media_id}' --min-id '{next_min_id}')" → accumulate comments
  5. Merge all collected comments

Pagination

API Pagination: min_id, type: cursor, start value: empty string. Next page value source: next_min_id field in response. Termination: has_more_comments is false or next_min_id is null.

Show full SKILL.md (288 more words)Show less

Success Criteria

result count >= 1 AND comments[0].text non-null AND comments[0].username non-null

Known Limitations

  • Login required: comments API returns require_login: true without authentication
  • Posts with comments disabled return empty comments array
  • Deleted comments or accounts may return partial data

Execution Efficiency

  • Batch orchestration: Write a bash script to loop through the command templates serially within a single session; do not parallelize within one browser (prone to triggering anti-scraping restrictions). Refer to rate information in "Known Limitations" above to add appropriate intervals. To increase throughput, open multiple stealth browser sessions and distribute work across them — each session has an independent fingerprint so rate limits apply per session
  • Test before batch execution: After writing a batch script, you must first test with 1-2 items to verify the script runs correctly; only then run the full batch. Never skip testing and execute in batch directly
  • Reduce redundant pre-operations: When multiple steps depend on the same prerequisite state, complete them in batch under that state to avoid repeatedly establishing the same state
  • Error resumption: Save results item by item during batch processing; on failure, resume from the breakpoint rather than starting over

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/instagram-scraper-instagram-post-comments.memory.md (working directory is determined by the Agent running the Skill, typically the project root or current working directory)

Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.

After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file. Do not record what keywords were used or how many results were returned — those are task outputs, not experience.

© browser-act, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in solutions/social-listening/instagram-post-comments of browser-act/skills.

  • SKILL.md
  • scripts/get-media-id.py
  • scripts/get-post-comments.py

Open the folder on GitHubat commit 11c057b

Compare with similar skills

Instagram Post Comments next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Instagram Post Comments compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Instagram Post Comments this skillbrowser-act/skills6.1k—~1.7kAutomated safety check: PassMIT
Google Maps ScraperMahanaicoach/google-maps-scraper-kit1.3k—~2.8kAutomated safety check: PassMIT
Brightdata SDKbrightdata/skills264—~5.2kAutomated safety check: PassMIT
Product Reel Generatorgooseworks-ai/goose-skills1.2k1 repos~2.3kAutomated safety check: NotesMIT
Crawl4AI Web Scrapingsmallnest/goclaw5981 repos~2.5kAutomated safety check: PassMIT
Boss Zhipin Scrapereatmoreduck/boss-zhipin-scraper1.5k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Google Maps Scraper

    Mahanaicoach/google-maps-scraper-kit

    Scrape Google Maps business listings (name, address, phone, website, rating, reviews, lat/lng, hours, emails) via the local gosom google-maps-scraper REST API.

    1.3k GitHub stars~2.8k tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • Brightdata SDK

    brightdata/skills

    Web data extraction and discovery using the Bright Data Python SDK.

    264 GitHub stars~5.2k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Product Reel Generator

    gooseworks-ai/goose-skills

    Generates Instagram-ready product reels from any e-commerce product page URL.

    1.2k GitHub starsUsed in 1 repo~2.3k tokens
    Sales & SupportAuto-check: notes
  • Crawl4AI Web Scraping

    smallnest/goclaw

    Scrapes sites, handles JavaScript-heavy pages and extracts structured data with Crawl4AI, through its crwl CLI or Python SDK, including schema-based extraction without an LLM.

    598 GitHub starsUsed in 1 repo~2.5k tokens
    Data & AnalyticsAuto-check passed
  • Boss Zhipin Scraper

    eatmoreduck/boss-zhipin-scraper

    Scrape BOSS直聘 (job listing site) via Chrome CDP. An agent skill from eatmoreduck/boss-zhipin-scraper.

    1.5k GitHub stars~2.6k tokensUpdated 8 days ago
    Data & AnalyticsAuto-check passed
  • Ax

    yusukebe/ax

    Use the ax CLI instead of curl + throwaway parsing scripts whenever you fetch a URL, explore an unknown web page, or extract structured data from HTML.

    719 GitHub starsUsed in 1 repo~918 tokens
    Data & AnalyticsAuto-check passed

More from browser-act/skills

All 87 skills in this repo
  • Amazon ASIN Lookup

    browser-act/skills

    Fetches structured Amazon product details such as title, price, ratings and availability for a given ASIN through BrowserAct's lookup API template.

    6.1k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Amazon Best Sellers Finder

    browser-act/skills

    Extracts structured Amazon product data for a keyword and marketplace through the BrowserAct API, including titles, prices, ratings, reviews, sales volume and promotions.

    6.1k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Amazon Buy Box Monitor

    browser-act/skills

    Pulls Amazon product details, competing seller prices and seller ratings for a given ASIN through the BrowserAct API, without browser automation.

    6.1k GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Analyzes a competitor's Amazon listing by ASIN with BrowserAct data extraction, then reports what it does well, where the market has gaps and opportunity points for your own listing.

    6.1k GitHub starsUsed in 2 repos~3.2k tokens
    Auto-check passed
  • Pulls structured Amazon search results (titles, ASINs, prices, ratings, specifications) for a keyword and brand through BrowserAct's Amazon Product API template.

    6.1k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Collects structured product data from Amazon search results for a keyword and optional brand, using a BrowserAct script, for market and competitor research.

    6.1k GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed

Works with

Questions about Instagram Post Comments

What does Instagram Post Comments do?

Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count. Instagram Post Comments is an agent skill from browser-act/skills. Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count.

When should I use Instagram Post Comments?

Instagram Post Comments fits situations like: user mentions Instagram comments scraping; get comments from Instagram post; instagram comment list; pull Instagram comments.

How do I install Instagram Post Comments in Claude Code?

Run `npx skills add browser-act/skills --skill instagram-post-comments -a claude-code`. Or copy the skill folder (solutions/social-listening/instagram-post-comments in browser-act/skills) into .claude/skills/instagram-post-comments in your project. Claude Code loads it when a task matches its description.

How do I install Instagram Post Comments in Codex?

Run `npx skills add browser-act/skills --skill instagram-post-comments -a codex`. Or copy the skill folder (solutions/social-listening/instagram-post-comments in browser-act/skills) into .agents/skills/instagram-post-comments in your project. Codex loads it when a task matches its description.

Can I use Instagram Post Comments in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add browser-act/skills --skill instagram-post-comments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/instagram-post-comments, .gemini/skills/instagram-post-comments, .github/skills/instagram-post-comments and .opencode/skills/instagram-post-comments in your project.

What does Instagram Post Comments need to run?

Going by SKILL.md and its folder, Instagram Post Comments needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Instagram Post Comments access the network?

SKILL.md names 1 domain. In commands or code: instagram.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Instagram Post Comments safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Instagram Post Comments use?

Instagram Post Comments is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Instagram Post Comments use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Instagram Post Comments?

Skills that share tags, products or a category with Instagram Post Comments: Google Maps Scraper (Mahanaicoach/google-maps-scraper-kit, 1.3k stars), Brightdata SDK (brightdata/skills, 264 stars), Product Reel Generator (gooseworks-ai/goose-skills, 1.2k stars) and Crawl4AI Web Scraping (smallnest/goclaw, 598 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Instagram Post Comments?

browser-act (a GitHub organization) maintains it in browser-act/skills, which has 6,108 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on August 24, 2026.

Source: browser-act/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.