An automated browser-driven skill to extract comments, user handles, timestamps, and reaction metrics from any Instagram post using cursor-based pagination.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install instagram-post-comments-skill
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install instagram-post-comments-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Instagram Post Comments skill is a powerful automation utility designed for AI agents to gather community interaction data directly from Instagram posts. By utilizing authenticated browser sessions via the browser-act tool, this capability extracts critical information such as comment text, username, timestamp, like counts, and reply counts.
As part of the wider ecosystem of Openclaw Skills, this tool acts as a local assistant that automates manual copy-pasting. It operates safely within the user's manual boundaries, utilizing local Python scripts to interact with internal APIs and handle pagination seamlessly without triggering automated blocklists.
BwrsO1Bho2N) into a numeric media_id using a dedicated helper script.next_min_id token while has_more_comments is true.https://www.instagram.com/ and logged into your account.browser-act tool is configured and ready in your execution environment.Use the following Python commands via your terminal or agent bash environment to extract comments:
# Step 1: Resolve post shortcode to Media ID
eval \"$(python scripts/get-media-id.py 'BwrsO1Bho2N')\"
# Step 2: Fetch the first page of comments
eval \"$(python scripts/get-post-comments.py '3900557621921709539')\"
# Step 3: Fetch subsequent pages using the cursor
eval \"$(python scripts/get-post-comments.py '3900557621921709539' --min-id '17857015000000001')\"
To optimize future executions, the skill updates an execution-memory file located at:
{working-directory}/browser-act-skill-forge-memories/instagram-scraper-instagram-post-comments.memory.md
| Field | Type | Description |
|---|---|---|
media_id |
String | Unique numeric identifier for the post |
shortcode |
String | Alphanumeric shortcode from post URL |
media_type |
Integer | Internal media type category |
username |
String | Username of the post author |
taken_at |
Integer | Epoch timestamp when the post was published |
| Field | Type | Description |
|---|---|---|
comments |
Array | Array of comment objects (including text, username, user_id, created_at timestamp, like_count, and reply_count) |
has_more_comments |
Boolean | Pagination flag indicating more pages are available |
next_min_id |
String | The pagination cursor token for the next query |
Loading
An automated search and intelligence tool designed to scan Google and locate social media profiles across dozens of platforms for any individual or brand.

A vital agent behavior that forces AI coding assistants to consult official, live documentation before answering queries about libraries, frameworks, or APIs.

An expert automotive advisory skill designed to guide buyers through evaluating, pricing, and selecting new energy vehicles.

An automated AI agent skill that fetches real-time global market data and generates interactive, beautifully styled HTML financial daily reports.

Automate fetching YouTube transcripts to generate timestamped chapters, blog posts, X/Twitter threads, or summaries instantly.

An AI agent utility that transforms interactive browser-based web exploration, scraping, and action sequences into permanently reusable Openclaw Skills.








































