Instagram 数据 Skill
通过 UnifAPI MCP 读取 Instagram 公开数据:用于达人研究的 instagram/... 操作、响应结构与注意事项。绝不发帖或私信。
Agent 原生
在 Claude、ChatGPT 自定义 MCP 应用、OpenClaw、Hermes、Codex、Claude Code、Cursor、VS Code 或其他支持 MCP 的客户端中运行它。无需专门的 GUI 流程,也无需单独的 LLM API 密钥。
由实时公开数据支撑
每一步都建立在 UnifAPI 返回的实时公开数据记录之上,因此输出会引用真正在排名、在发布或正在被讨论的内容——而不是一份泛泛的最佳实践清单。
可组合且开源
Skills 相互交叉引用,并存放在一个公开的、MIT 风格的仓库中。在 GitHub 上阅读完整的 SKILL.md、fork 它,或原样在你的 Agent 中运行它。
把它粘贴进 Codex 或 Claude Code
这段提示词有意可自由编辑。替换其中的用户名、市场、预算与活动目标,然后让 Agent 在需要实时公开数据时调用 UnifAPI MCP。
Using the Instagram Data Skill, research these IG creators: pull profiles and follower size, recent posts and reels with engagement, and the comments on their top posts; flag paid-partnership posts. Return a cited audience-fit brief. Read-only.
由 SKILL.md 渲染出的完整 skill
通过 UnifAPI 读取公开 Instagram 数据的确定性读取路径。这是一个 Data Skill:它本身不运行某个营销任务——它点明具体的 instagram/... 操作、响应形态和坑,让任何以创作者为先的工作流(入围、受众契合、定价上下文)从一份已知配方读取,而非每次重新发现这个面。
只读——眼睛,而非双手。它研究公开的 Instagram 数据并返回带引证的记录;它绝不发帖、评论或发 DM,UnifAPI 也绝不持有 Instagram 凭证。
用 unifapi skill 获取实时证据
通过共享的 unifapi skill 连接一次(OAuth MCP),然后调用下面的操作。画像以 {username} 为键,帖子以其 {shortcode}(URL 片段)为键——instagram/resolve/* 在你需要时映射 username↔user-id 和 shortcode↔media-id。保留任何 billing 元数据,以便输出能陈述记录成本。
响应契约
单实体端点在 data 中返回对象:
{
"request_id": "unif_...",
"data": {},
"billing": { "records_charged": 1, "balance_remaining": 99 }
}
列表端点在 data 中返回数组,外加 pagination:
{
"request_id": "unif_...",
"data": [],
"pagination": { "has_more": false, "next_cursor": null },
"billing": { "records_charged": 1 }
}
当 pagination.has_more 为 true 时,把 pagination.next_cursor 作为下一个请求的 cursor。报告成本时始终保留 billing。
核心操作
| Need | Operation |
|---|---|
| Profile by handle | instagram/users/{username} |
| Posts / reels | instagram/users/{username}/posts · .../reels |
| Stories / highlights | instagram/users/{username}/stories · .../highlights |
| Followers / following | instagram/users/{username}/followers · .../following |
| Tagged posts | instagram/users/{username}/tagged-posts |
| Post by shortcode | instagram/posts/{shortcode} |
| Post comments / replies | instagram/posts/{shortcode}/comments |
| Discover | instagram/search (?q=...) · instagram/explore |
| Location page + posts | instagram/locations/{id} · instagram/locations/{id}/posts |
| Resolve handle/shortcode | instagram/resolve/user-id · instagram/resolve/shortcode |
需要这里未列出的字段?调用前用 unifapi skill 的 get_operation 读取确切的 schema——但从这张表里挑操作,不要盲目发现。
工作流
确定性配方。挑选与任务匹配的那个;每个都精确点明要调用什么。
- 解析一个画像。 调用
instagram/users/{username}取follower_count、media_count、is_private和is_verified。 - 读取内容和互动。 调用
instagram/users/{username}/posts和.../reels;每个InstagramPost携带like_count、comment_count和 视频的play_count/view_count——以及is_paid_partnership用于标出 赞助内容。经由next_cursor翻页。 - 读取反应。 调用
instagram/posts/{shortcode}/comments(以及回复 端点)取某个头部帖子上的情绪。 - 发掘新 handle。 调用
instagram/search?q=...、instagram/explore或instagram/locations/{id}/posts,然后解析 浮现的 handle 并循环回第 1 步。 - 绘制一个网络或受众。 调用
instagram/users/{username}/followers、.../following或.../tagged-posts(谁带上他们)做触达工作。 - 引证一切。 每个数字都回溯到它来自的帖子或画像;报告
billing.records_charged(或在 billing 元数据缺失时估算)。
形态说明
InstagramUser—— 以{username}为键。follower_count、following_count、media_count、is_verified、is_private。InstagramPost—— 以{shortcode}为键。caption、like_count、comment_count、play_count、view_count、taken_at、media_type、is_paid_partnership、user、location、carousel。InstagramComment——text、like_count、child_comment_count。InstagramLocation——name、lat、lng、media_count。
坑
- 画像以
{username}为键,帖子以{shortcode}为键——两者都从公开的 IG URL 读取。仅当你需要数字型的 user-id 或 media-id 时才用instagram/resolve/*。 - 私密账户(
is_private)暴露画像但限制媒体——把它浮现出来, 不要掩盖单薄的覆盖。 is_paid_partnership标记已披露的赞助帖——对定价和品牌安全是 有用的证据,报告它。- 余额低会悄悄截断列表页:检查
billing.truncated_due_to_balance——当为 true 时该页是部分的。
输出
返回调用方工作流所需的记录,每个都引证到它的帖子或画像,外加一行成本说明(records_charged)。当这个 skill 被直接使用时,默认是一份紧凑的创作者摘要:
**@handle** — {followers} followers, {media} posts, verified {yes/no}. Recent posts: avg {likes} likes / {comments} comments. Paid partnerships: {N}. Evidence: {post URLs}. Records: ~{N}.
相关 skills
- kol-pricing、creator-shortlist、audience-fit-check(Influencer Marketing)—— 在这条读取路径之上为 Instagram 创作者定价并甄别。
- unifapi —— 共享的数据 skill:连接 MCP 并用
get_operation查找确切的 schema。
源码:GitHub 上的 instagram/SKILL.md——可在那里提交 PR 来改进它。
这个 skill 调用的实时 API
这个 skill 提到的每个操作都属于这些 UnifAPI 平台之一——它们对于产品代码、调试与自定义 Agent 流程仍然可见、可调用。
- 针对每个常见创作者读取任务的具体 `instagram/...` 操作
- 面向用户、帖子、reels、评论的响应契约与结构说明
- 确定性配方:主页、互动、评论、发现
- 平台注意事项(username 与 shortcode 键、私密账号、分页)