AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Instagram

skill-agentproto-ts-instagram · by agentproto

>-

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-agentproto-ts-instagram

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-agentproto-ts-instagram)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
12d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Instagram? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Instagram — recon plan (web private API)

> ✅ Instagram adapterSOCIAL_PLATFORMS.instagram in > @agstudio/browser-social (instagram.adapter.ts): profile · authored · > connection (followers/following) · engagement-received (commenters — the only > IG edge; likers 403), as a SocialSourcePort. In-page igFetch > (x-ig-app-id + x-csrftoken) + re-focus drift defense. Graph ingest: > scripts/profile.ts instagram --graph-only → registry capture → > landFootprint graph sink (platform "instagram"): profile→SocialPerson, > posts→AUTHORED, commenters→COMMENTED, followers/following→FOLLOWS. Same domain > as LinkedIn → cross-platform queries just work. Likers stay 403.

> ✅ Validated live (logged in, read-only): headers > x-ig-app-id:936619743392459 > > - x-csrftoken(csrftoken) + x-requested-with:XMLHttpRequest. > web_profile_info?username=→200 (pk, fullname, follower/post counts). > feed/user//?count=N→200 (media: code, pk, likecount, commentcount, > caption). media//comments/→200 (commenters: @username + user pk + text > = engagement edge). ⚠️ media//likers/403 (IG hides likers). IG > graph = followers/following + commenters, not likers. webprofile_info > media edges are empty → use feed/user//.

Internal API: web private REST https://www.instagram.com/api/v1/... + GraphQL https://www.instagram.com/graphql/query (and /api/graphql) using doc_id. The web UI calls these directly.

Auth (from the page)

  • cookies (sessionid, csrftoken, ds_user_id) ride same-origin.
  • headers required:
  • x-ig-app-id: 936619743392459 (the web app id — stable; also in the page's

shared-data / a request header, capture to confirm),

  • x-csrftoken: ,
  • x-requested-with: XMLHttpRequest,
  • x-asbd-id (a small constant in requests — capture),
  • x-ig-www-claim (echoed from a prior response header x-ig-set-www-claim).

In-page fetch:

async path => {
  const csrf = (document.cookie.match(/csrftoken=([^;]+)/) || [])[1]
  const r = await fetch(path, {
    headers: {
      "x-ig-app-id": "936619743392459",
      "x-csrftoken": csrf,
      "x-requested-with": "XMLHttpRequest",
    },
  })
  return await r.json()
}

Endpoints to test

| Purpose | endpoint | | ------------------------- | ----------------------------------------------------------------------------- | | Feed / timeline | POST /api/v1/feed/timeline/ | | Profile by username | GET /api/v1/users/web_profile_info/?username= → user pk + recent media | | User media | GET /api/v1/feed/user// | | Followers / following | GET /api/v1/friendships//followers/ · /following/ (max_id paginate) | | Who liked a post | GET /api/v1/media//likers/ | | Comments | GET /api/v1/media//comments/ | | Search users | GET /api/v1/web/search/topsearch/?query= (or GraphQL) | | WRITE: like | POST /api/v1/web/likes//like/ | | WRITE: comment | POST /api/v1/web/comments//add/ | | WRITE: follow | POST /api/v1/friendships/create// | | WRITE: DM | POST /api/v1/direct_v2/threads/broadcast/text/ |

Entity model

User{pk, username, full_name, follower_count, is_private} · Media{id, code(shortcode), caption, like_count, comment_count, owner:User} · Comment{user, text}.

Capture method

Open instagram.com → list_network_requests for /api/v1/ + /graphql/ → read endpoint + x-ig-app-id / x-asbd-id / x-ig-www-claim from a request header, and doc_id for GraphQL ops.

Actions to test (read-first; writes gated)

  1. web_profile_info?username= → pk + recent media + counts.
  2. media//likers/ + /comments/who engaged (→ persona/graph).
  3. friendships//followers/ → network sample.
  4. topsearch?query= → discover users → score → dossier.
  5. (gated) like / comment / follow / DM — explicit confirm, **heavily

rate-limited**.

Gotchas

  • doc_id (GraphQL) + endpoints drift; private accounts gate most reads.
  • IG is aggressive on automation — space requests, low volume, expect

challenges/checkpoints on bursts. Writes especially risky → minimal + gated.

  • Some POSTs need a signed_body / additional params — capture the real

request.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.