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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for instagram-api

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 54
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 146
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.5 $0.00036 $0.01327
Sonnet 5.5 $0.00018 $0.00664
Haiku 4.5 $0.00009 $0.00332

Measured 1mo ago against content hash ff484359527f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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. 1mo 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 (239 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 3,318 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other skills, from other repositories

agent-operated-software

Use when designing, building, operating, or diagnosing an ongoing application whose live backend or control loop includes OpenRig agents, including applications with a Markdown, YAML, or JSON agent control plane or a thin surface over specialist agent roles.

mvschwarz/openrig · 51 tokens

opensrc

Fetch dependency source code to give AI agents deeper implementation context. Use when the agent needs to understand how a library works internally, read source code for a package, fetch implementation details for a dependency, or explore how an npm/PyPI/crates.io package is built. Triggers include "fetch source for"…

vercel-labs/opensrc · 103 tokens

huawei-cloud-apig-instance-management

Manage Huawei Cloud APIG (API Gateway, dedicated instances) via hcloud CLI: instance lifecycle (create/list/delete), API groups, API create/update/delete, publish/offline, request throttling policies, signature keys, access control (ACL) policies, and public ingress EIP binding, plus read-only diagnosis of public…

huaweicloud/huaweicloud-devkit · 206 tokens

huawei-cloud-smn-dms-message

Manage Huawei Cloud SMN (Simple Message Notification) topics, subscriptions, message templates and message publishing, and manage DMS (Distributed Message Service) Kafka/RabbitMQ/RocketMQ instances and Kafka topics. 15 built-in actions cover query (list topics/subscriptions/message templates/DMS instances/Kafka…

huaweicloud/huaweicloud-devkit · 317 tokens

huaweicloud-api-and-sdk

Huawei Cloud API and SDK guidance for application development. Use when writing code that calls Huawei Cloud services, choosing SDKs, building API requests, handling projectid, endpoint, auth, pagination, retries, error codes, or request IDs.

huaweicloud/huaweicloud-devkit · 54 tokens

build-mcp-server

This skill should be used when the user asks to "build an MCP server", "create an MCP", "make an MCP integration", "wrap an API for FuXi", "expose tools to FuXi", "make an MCP app", or discusses building something with the Model Context Protocol. It is the entry point for MCP server development — it interrogates the…

fuxicodex/Fuxi · 113 tokens