instagram-api

instagram-api is a skill for Claude Code, Codex from ericrisco/rsc-harness. It costs 91 tokens per session (3,318 once invoked), scanned A, original, MIT.

A technical guide for connecting software to Instagram's Graph API, the web interface used to publish Reels and retrieve account metrics.

In plain words
What is it for?
It is for publishing Reels, checking media insights, monitoring the publishing limit, and saving Reel metrics for later use.
Why use it?
It removes the uncertainty around Instagram authentication, publishing steps, account requirements, and available Reel statistics.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for publishing Reels, checking media insights, monitoring the publishing limit, and saving Reel metrics for later use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ericrisco/rsc-harness/instagram-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ericrisco/rsc-harness --skill instagram-api
Clone the repo
git clone --depth 1 https://github.com/ericrisco/rsc-harness

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for instagram-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/ericrisco/rsc-harness/instagram-api.svg)](https://agentmods.dev/skills/ericrisco/rsc-harness/instagram-api)
Your own site
<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/instagram-api"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/instagram-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,318 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.03318
Opus 5 $0.00046 $0.01659
Sonnet 5 $0.00018 $0.00664
Haiku 4.5 $0.00009 $0.00332

Measured 3d ago against content hash ff484359527f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

instagram-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/verify.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "https://$GRAPH_HOST/$GRAPH_VERSION/$IG_USER_ID/media" \
skills/instagram-api/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

instagram-api

The wire between an agent and Instagram's Graph API: publish Reels, pull the metrics that still exist, and write them to the wiki. You speak HTTP, OAuth scopes, container IDs, and metric names. You do not decide what to post, write the caption's voice, or cut the video — route those out.

All facts below are pinned to Graph API v25.0 (current as of 2026-06-02). When you generate code, pin the version explicitly; Meta breaks metrics on version boundaries.

Route out

The ask Skill
Post the same clip to TikTok tiktok-api
Upload to YouTube / pull YouTube stats youtube-api
Cadence, best-time, multi-platform calendar social-publisher
What to make / shortform content strategy shortform-strategy
Hook, cuts, on-screen captions video-shorts
Generic OAuth/webhook plumbing not IG-specific api-connector-builder

Prereqs & auth

You cannot publish from a personal account. Confirm these before writing any call.

  • IG professional account (Business or Creator). Why: the publishing and insights endpoints reject personal accounts outright.
  • Auth path + host — pick one and stay on it:
    • Facebook Login for Business → IG account linked to a FB Page → host graph.facebook.com.
    • Instagram Login (direct) → host graph.instagram.com. Why: the host is not interchangeable per call; mixing tokens and hosts throws auth errors.
  • Scopes (current names): instagram_business_content_publish to publish, instagram_business_manage_insights to read metrics. Why: the old instagram_basic / instagram_content_publish were deprecated 2025-01-27 and silently grant nothing now.
  • Long-lived token = 60 days, refreshable before expiry. A short-lived user token lasts ~1h. Why: anything in a script needs the long-lived token or it dies within the hour.

Env block — generate code that reads these, never hard-code the token:

Read the full file on GitHub · 239 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 239 lines · 91 tokens per session scan A ff484359527f

Subscribe to this mod's changes

instagram-api is a skill published in the GitHub repository ericrisco/rsc-harness (65 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 3,318 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.