Agent skill

Instagram Hashtag Posts

by browser-act in browser-act/skills

Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed.

MITAuto-check passedData & Analytics

Install Instagram Hashtag Posts

skills CLI
$ npx skills add browser-act/skills --skill instagram-hashtag-posts -a claude-code

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

GitHub CLI
$ gh skill install browser-act/skills instagram-hashtag-posts --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-hashtag-posts .claude/skills/instagram-hashtag-posts && 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-hashtag-posts
GitHub stars
6.1k
Token cost
~1.6k tokens
SKILL.md length
757 words
Files
3 (incl. scripts)
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed.

  • Works in 2 steps: Tool Readiness → Login Verification
  • User mentions Instagram hashtag 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 and scontent.cdninstagram.com

What it does

Instagram Hashtag Posts is an agent skill from browser-act/skills. Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed. Use when user mentions Instagram hashtag scraping, get posts by hashtag, IG hashtag feed, scrape Instagram by tag, hashtag posts Instagram, search Instagram hashtag, pull posts from hashtag, Instagram topic posts, trending hashtag content, Instagram tag posts.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/fetch-hashtag-posts.py` and `scripts/parse-hashtag-response.py`).

It sits in Data & Analytics, covering Web scraping. It works with Instagram. 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 hashtag scraping
  • Get posts by hashtag
  • IG hashtag feed
  • Scrape Instagram by tag

Example prompts

  • “Use the instagram-hashtag-posts skill to scrape Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and…”
  • “/instagram-hashtag-posts”

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
    • scontent.cdninstagram.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 Hashtag Posts loads about 1.6k tokens when it runs. Until then it costs about 109 tokens; SKILL.md has 757 words of instructions outside code blocks.

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

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). 757 words, ~1,631 tokens.

Download SKILL.mdSave it as .claude/skills/instagram-hashtag-posts/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
instagram-hashtag-posts
description
Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed. Use when user mentions Instagram hashtag scraping, get posts by hashtag, IG hashtag feed, scrape Instagram by tag, hashtag posts Instagram, search Instagram hashtag, pull posts from hashtag, Instagram topic posts, trending hashtag content, Instagram tag posts.

Instagram — Hashtag Posts

hashtag → list of posts (media, caption, counts, user info)

Language

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

Objective

Fetch posts tagged with a specific hashtag by navigating to Instagram's keyword search page and capturing the GraphQL API response.

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 hashtag posts (direct fetch from hashtag page)

Must be called while the browser is on the hashtag search page — navigate first, then call:

  1. navigate https://www.instagram.com/explore/search/keyword/?q=%23{hashtag} (e.g., %23travel for #travel)
  2. wait stable
  3. eval "$(python scripts/fetch-hashtag-posts.py '{hashtag}')"

The script replays the signed GraphQL request (PolarisKeywordSearchExplorePageRelayQuery, doc_id 36829937936605248) directly inside the browser, using session cookies and CSRF token already present on the page.

Error handling: If the result contains error: true, check whether the page loaded correctly (login prompt visible? rate-limit banner?). Re-navigate and retry once. If items is empty but no error, the hashtag may have no top posts at this time.

Output example:

json
{
  "items": [
    {
      "pk": "3900557621921709539",
      "code": "DYwOA07iPmB",
      "media_type": 1,
      "taken_at": 1779686199,
      "like_count": 45230,
      "comment_count": 312,
      "caption": "Beautiful sunset #travel",
      "thumbnail_url": "https://scontent.cdninstagram.com/...",
      "video_url": null,
      "username": "traveler_jane"
    }
  ],
  "count": 20
}

Pagination

API Pagination: end_cursor in data.xdt_fbsearch__top_serp_graphql.page_info. Check has_next_page; when true, the next page requires a separate GraphQL POST with the cursor value injected — this requires UI interaction (scroll to page bottom to trigger next page load) then re-reading traffic for the next PolarisKeywordSearchExplorePageRelayQuery request.

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

Success Criteria

items count >= 1 AND items[0].pk non-null AND items[0].username non-null

Known Limitations

  • Results are limited to Instagram's "top posts" selection for the hashtag; full chronological feed is not available
  • Login required: hashtag posts are not accessible without authentication
  • Rate limiting may occur with high-frequency hashtag searches across sessions

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-hashtag-posts.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-hashtag-posts of browser-act/skills.

  • SKILL.md
  • scripts/fetch-hashtag-posts.py
  • scripts/parse-hashtag-response.py

Open the folder on GitHubat commit 11c057b

Compare with similar skills

Instagram Hashtag Posts 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 Hashtag Posts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Instagram Hashtag Posts this skillbrowser-act/skills6.1k—~1.6kAutomated safety check: PassMIT
Google Maps ScraperMahanaicoach/google-maps-scraper-kit1.3k—~2.8kAutomated safety check: PassMIT
Content Ideasbradautomates/content-ideas130—~5.4kAutomated safety check: NotesMIT
Data Feedsbrightdata/skills264—~2.2kAutomated safety check: PassMIT
Ig Audience Insightssergebulaev/instagram-skills292—~1.3kAutomated safety check: PassMIT
Apify Google Maps Leadsapify/awesome-skills262—~3.8kAutomated safety check: PassApache-2.0

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
  • Content Ideas

    bradautomates/content-ideas

    Your For You page for content creators. An agent skill from bradautomates/content-ideas.

    130 GitHub stars~5.4k tokensUpdated 4 mo ago
    Data & AnalyticsAuto-check: notes
  • Data Feeds

    brightdata/skills

    Extract structured data from 40+ supported platforms (Amazon, LinkedIn, Instagram, TikTok, Facebook, YouTube, Reddit, and more) via the Bright Data CLI (bdata pipelines).

    264 GitHub stars~2.2k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Ig Audience Insights

    sergebulaev/instagram-skills

    Read your Instagram niche and profile from real data via Apify, no login.

    292 GitHub stars~1.3k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Apify Google Maps Leads

    apify/awesome-skills

    Official

    Build a local-business lead database from Google Maps in one Apify pipeline: search by target audience + geography, enrich each place with company contacts from its website, leads enrichment (names…

    262 GitHub stars~3.8k tokensUpdated 14 days ago
    Data & AnalyticsAuto-check passed
  • Deepapi

    davidondrej/skills

    Use DeepAPI for all web search, deep research, and web scraping (websites, LinkedIn, GitHub, X/Twitter, YouTube, Instagram) instead of built-in search, research, fetch, or browser tools.

    4.1k GitHub stars~2.5k tokensUpdated today
    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 Hashtag Posts

What does Instagram Hashtag Posts do?

Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed. Instagram Hashtag Posts is an agent skill from browser-act/skills. Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed.

When should I use Instagram Hashtag Posts?

Instagram Hashtag Posts fits situations like: user mentions Instagram hashtag scraping; get posts by hashtag; IG hashtag feed; scrape Instagram by tag.

How do I install Instagram Hashtag Posts in Claude Code?

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

How do I install Instagram Hashtag Posts in Codex?

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

Can I use Instagram Hashtag Posts 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-hashtag-posts -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-hashtag-posts, .gemini/skills/instagram-hashtag-posts, .github/skills/instagram-hashtag-posts and .opencode/skills/instagram-hashtag-posts in your project.

What does Instagram Hashtag Posts need to run?

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

Does Instagram Hashtag Posts access the network?

SKILL.md names 2 domains. In commands or code: instagram.com and scontent.cdninstagram.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Instagram Hashtag Posts 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 Hashtag Posts use?

Instagram Hashtag Posts 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 Hashtag Posts use?

About 1.6k tokens (SKILL.md is roughly 6.5k 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 Hashtag Posts?

Skills that share tags, products or a category with Instagram Hashtag Posts: Google Maps Scraper (Mahanaicoach/google-maps-scraper-kit, 1.3k stars), Content Ideas (bradautomates/content-ideas, 130 stars), Data Feeds (brightdata/skills, 264 stars) and Ig Audience Insights (sergebulaev/instagram-skills, 292 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Instagram Hashtag Posts?

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.