instagram-api — instagram-api install instagram-api, olivenet-social-bot, community, instagram-api install, ide skills, instagram-api media publishing, instagram-api insights retrieval, instagram-api two-phase publishing, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Social Media Agents requiring Instagram Graph API integration for automated content publishing and insights retrieval. instagram-api is a skill that provides access to Instagram's Graph API, enabling developers to create, publish, and manage media, as well as retrieve engagement insights.

Features

Creates containers using the `{user_id}/media` endpoint with a POST method
Publishes media using the `{user_id}/media_publish` endpoint with a POST method
Retrieves media status using the `{container_id}` endpoint with a GET method
Gets insights using the `{media_id}/insights` endpoint with a GET method
Supports two-phase publishing for video content
Polls until FINISHED for video content

# Core Topics

olivenet-iot olivenet-iot
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The instagram-api skill by olivenet-iot is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for instagram-api install, instagram-api media publishing, instagram-api insights retrieval.

Ideal Agent Persona

Ideal for Social Media Agents requiring Instagram Graph API integration for automated content publishing and insights retrieval.

Core Value

Empowers agents to create containers, publish media, and retrieve insights using Instagram's Graph API v21.0, enabling seamless interaction with the platform via endpoints like `{/user_id}/media` and `{/media_id}/insights` using HTTP methods such as POST and GET.

Capabilities Granted for instagram-api

Automating Instagram content publishing using the two-phase publishing process
Generating media insights reports by retrieving data from `{/media_id}/insights`
Creating custom containers for media using the `{/user_id}/media` endpoint
Polling container status for video uploads until FINISHED

! Prerequisites & Limits

  • Requires Instagram Graph API access token
  • Limited to Instagram's Graph API v21.0
  • Needs user ID and media ID for specific actions
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

instagram-api

Install instagram-api, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Instagram Graph API

Version: v21.0 | Base: https://graph.instagram.com/v21.0

Quick Reference

ActionEndpointMethod
Create Container/{user_id}/mediaPOST
Publish/{user_id}/media_publishPOST
Check Status/{container_id}GET
Get Insights/{media_id}/insightsGET

Two-Phase Publishing

1. Create Container → container_id
2. (Video only) Poll until FINISHED
3. Publish Container → post_id

Publishing Functions

python
1from app.instagram_helper import ( 2 post_photo_to_instagram, 3 post_video_to_instagram, 4 post_carousel_to_instagram 5) 6 7# Image 8result = await post_photo_to_instagram(image_url, caption) 9 10# Reels 11result = await post_video_to_instagram(video_url, caption) 12 13# Carousel (2-10 images) 14result = await post_carousel_to_instagram(image_urls, caption)

Video Requirements

SpecValue
Resolution720x1280 (9:16)
CodecH.264 video, AAC audio
FPS30
Max90 seconds
python
1# Auto-convert 2from app.instagram_helper import convert_video_for_instagram 3result = await convert_video_for_instagram(input_path) 4# Returns: {success, output_path, converted, file_size_mb}

Insights

python
1from app.insights_helper import get_instagram_media_insights 2 3insights = await get_instagram_media_insights(media_id) 4# Returns: {plays, reach, saves, shares, likes, comments, engagement_rate}

Reels metrics: plays, reach, saved, shares, comments, likes Image metrics: impressions, reach, saved

Rate Limiting

  • Container creation: 2s delay
  • Video polling: 10s interval, max 30 attempts
  • Insights fetch: 0.3s delay between calls

Environment Variables

bash
1INSTAGRAM_ACCESS_TOKEN=... 2INSTAGRAM_USER_ID=... 3INSTAGRAM_BUSINESS_ID=... # Optional

Return Format

python
1# Success 2{"success": True, "id": "17901234567890123", "platform": "instagram"} 3 4# Error 5{"success": False, "error": "Error message"}

Common Errors

ErrorSolution
OAuthExceptionToken expired - refresh
MediaTypeNotSupportedWrong format - convert
RateLimitErrorToo many calls - add delay
  • app/instagram_helper.py - Publishing
  • app/insights_helper.py - Metrics
  • app/cloudinary_helper.py - Video CDN

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is instagram-api?

Ideal for Social Media Agents requiring Instagram Graph API integration for automated content publishing and insights retrieval. instagram-api is a skill that provides access to Instagram's Graph API, enabling developers to create, publish, and manage media, as well as retrieve engagement insights.

How do I install instagram-api?

Run the command: npx killer-skills add olivenet-iot/olivenet-social-bot/instagram-api. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for instagram-api?

Key use cases include: Automating Instagram content publishing using the two-phase publishing process, Generating media insights reports by retrieving data from `{/media_id}/insights`, Creating custom containers for media using the `{/user_id}/media` endpoint, Polling container status for video uploads until FINISHED.

Which IDEs are compatible with instagram-api?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for instagram-api?

Requires Instagram Graph API access token. Limited to Instagram's Graph API v21.0. Needs user ID and media ID for specific actions.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add olivenet-iot/olivenet-social-bot/instagram-api. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use instagram-api immediately in the current project.

Related Skills

Looking for an alternative to instagram-api or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI