Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

keyapi-instagram-content-discoverykeyapi Instagram 内容发现

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

2,448

周安装

101

GitHub Stars

公开资料未说明

下载量

1,108
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:keyapi-instagram-content-discovery(keyapi Instagram 内容发现)
来源仓库:https://github.com/lycici/keyapi-instagram-content-discovery
安装命令:
openclaw skills install keyapi-instagram-content-discovery
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install keyapi-instagram-content-discovery

简介

探索 Instagram 热门内容、标签与音乐趋势发现工具。

  • 适用于营销创意灵感获取、KOL 合作对象挖掘与爆款预测。
  • 支持按地域、时段与互动量排序筛选高潜力内容样本。keyapi-instagram-content-discovery 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 数据来源于公开接口,不包含私密账户或非公开信息。
  • 过度频繁调用可能导致 IP 被封禁,建议间隔使用降低风险。

SKILL.md

name
keyapi-instagram-content-discovery
description
Explore and discover Instagram content at scale — search posts, Reels, hashtags, music, locations, and Explore sections to surface trends, audience signals, and high-engagement content opportunities.
metadata
{"openclaw":{"requires":{"env":["KEYAPI_TOKEN"],"bins":["node"]},"primaryEnv":"KEYAPI_TOKEN","emoji":"🔎"}}
author
KeyAPI
license
MIT
repository
https://github.com/EchoSell/keyapi-skills

keyapi-instagram-content-discovery

Explore and discover Instagram content at scale — search posts, Reels, hashtags, music, and locations to surface trends, audience signals, and content intelligence.

This skill enables deep content discovery on Instagram using the KeyAPI MCP service. It supports ID conversion between shortcodes and media IDs, detailed post inspection, comment and reply analysis, hashtag and music-based content search, Explore page browsing, and geo-targeted location discovery — all backed by real-time data.

Use this skill when you need to:

  • Fetch full post details including engagement metrics, caption, and media data
  • Analyze comments and nested replies for audience sentiment and topic signals
  • Discover trending or niche content by hashtag, music track, or keyword
  • Explore Instagram's Explore page to identify surfaced content categories
  • Search for related hashtags, places, music, and Reels by keyword
  • Identify content popularity signals for a specific song or audio track
  • Perform geo-based location searches for hyper-local content research

author: KeyAPI license: MIT repository: https://github.com/EchoSell/keyapi-skills


Prerequisites

RequirementDetails
KEYAPI_TOKENA valid API token from keyapi.ai. If you don't have one, register at the site to obtain your free token. Set it as an environment variable: export KEYAPI_TOKEN=your_token_here
Node.jsv18 or higher
DependenciesRun npm install in the skill directory to install @modelcontextprotocol/sdk

author: KeyAPI license: MIT repository: https://github.com/EchoSell/keyapi-skills


MCP Server Configuration

All tool calls in this skill target the KeyAPI Instagram MCP server:

Server URL : https://mcp.keyapi.ai/instagram/mcp
Auth Header: Authorization: Bearer $KEYAPI_TOKEN

Setup (one-time):

# 1. Install dependencies
npm install

# 2. Set your API token (get one free at https://keyapi.ai/)
export KEYAPI_TOKEN=your_token_here

# 3. List all available tools to verify the connection
node scripts/run.js --platform instagram --list-tools

author: KeyAPI license: MIT repository: https://github.com/EchoSell/keyapi-skills


Analysis Scenarios

Post & Comment Nodes

User NeedNode(s)Best For
Convert post shortcode → media IDconvert_shortcode_to_media_idID normalization; shortcode is the string in instagram.com/p/{shortcode}/
Convert media ID → shortcodeconvert_media_id_to_shortcodeReverse lookup; construct post URL from a numeric media ID
Full post details (metrics, caption, media)get_post_infoPost audit, engagement snapshot — accepts shortcode or full URL
Users who liked a postget_post_likesEngagement quality sampling, audience analysis
Top-level comments on a postget_post_commentsAudience sentiment, comment volume analysis — sortable by recent or popular
Replies to a specific commentget_comment_repliesConversation thread depth, nested engagement analysis

Explore & Hashtag Nodes

User NeedNode(s)Best For
List Explore page content sectionsget_explore_page_sectionsDiscover available content categories on the Explore page
Posts inside a specific Explore sectionget_posts_by_sectionBrowse curated Explore content by category — requires section_id from get_explore_page_sections
Posts under a hashtagget_posts_by_hashtagHashtag content research — pass hashtag name without #
Posts / Reels using a specific music trackget_posts_using_specific_musicMusic trend analysis, sound-to-content attribution

Search Nodes

User NeedNode(s)Best For
General keyword search (users, hashtags, places)general_searchBroad multi-category discovery from a single query
Search hashtags by keywordsearch_hashtagsHashtag discovery, volume and relevance ranking
Search places / locations by keywordsearch_placesLocation-based content strategy, venue discovery
Search Reels by keywordsearch_reelsReels trend research — keyword must be passed as a JSON array
Search music by keywordsearch_musicAudio trend discovery, sound sourcing for content creation
Search locations near GPS coordinatessearch_locations_by_coordinatesHyperlocal content strategy, geo-targeted discovery
Get cities / regions for a countryget_cities_by_countryGeographic market mapping, city-level targeting

author: KeyAPI license: MIT repository: https://github.com/EchoSell/keyapi-skills


Workflow

Step 1 — Identify the Discovery Objective and Select Nodes

Clarify the user's goal and map it to one or more nodes. Common research patterns:

  • Post analysis: Resolve identifiers with convert_shortcode_to_media_id if needed → get_post_info → deepen with get_post_likes + get_post_comments.
  • Comment thread analysis: get_post_commentsget_comment_replies for top comment threads.
  • Hashtag content research: search_hashtags to discover relevant tags → get_posts_by_hashtag for content within each tag.
  • Music content attribution: search_music to find a track → get_posts_using_specific_music with the returned music_id.
  • Explore page research: get_explore_page_sections to list sections → get_posts_by_section to browse content in target sections.
  • Geo-local discovery: search_locations_by_coordinates with latitude/longitude → search_places for city-level context.
  • Reels keyword research: search_reels with keyword array → cross-reference with get_posts_by_hashtag for hashtag overlap.

Step 2 — Retrieve API Schema

Before calling any node, inspect its input schema to confirm required parameters, data types, and valid options:

node scripts/run.js --platform instagram --schema <tool_name>

# Examples
node scripts/run.js --platform instagram --schema get_post_comments
node scripts/run.js --platform instagram --schema search_reels

Step 3 — Call APIs and Cache Results Locally

Execute tool calls and persist responses to the local cache.

Calling a tool:

node scripts/run.js --platform instagram --tool <tool_name> \
  --params '<json_args>' --pretty

# Skip cache for fresh results
node scripts/run.js --platform instagram --tool <tool_name> \
  --params '<json_args>' --no-cache --pretty

Example — get post details:

node scripts/run.js --platform instagram --tool get_post_info \
  --params '{"code_or_url":"DRhvwVLAHAG"}' --pretty

Example — get comments (sorted by most popular):

node scripts/run.js --platform instagram --tool get_post_comments \
  --params '{"code_or_url":"DRhvwVLAHAG","sort_by":"popular"}' --pretty

Example — get replies to a specific comment:

node scripts/run.js --platform instagram --tool get_comment_replies \
  --params '{"code_or_url":"DRhvwVLAHAG","comment_id":"18067775592012345"}' --pretty

Example — get posts under a hashtag:

node scripts/run.js --platform instagram --tool get_posts_by_hashtag \
  --params '{"hashtag":"travel"}' --pretty

Example — search Reels (keyword as array):

node scripts/run.js --platform instagram --tool search_reels \
  --params '{"keyword":["fitness"]}' --pretty

Example — find posts using a music track:

# First: search for the music to get music_id
node scripts/run.js --platform instagram --tool search_music \
  --params '{"keyword":"happy"}' --pretty

# Then: get posts using that track
node scripts/run.js --platform instagram --tool get_posts_using_specific_music \
  --params '{"music_id":"564058920086577"}' --pretty

Pagination:

Instagram content endpoints use token- or cursor-based pagination — not numeric page numbers.

EndpointPagination parameterNotes
get_post_comments, get_comment_replies, search_reels, general_searchpagination_tokenPass token from previous response
get_post_likes, get_posts_by_hashtagend_cursorPass cursor from previous response
get_posts_using_specific_music, get_posts_by_sectionmax_idPass cursor from previous response; leave empty for first call
get_cities_by_countrypage (integer)Numeric, starts at 1
convert_*, get_post_info, get_explore_page_sections, search_hashtags, search_places, search_music, search_locations_by_coordinatesSingle-call or non-paginated
search_reels keyword type: The keyword parameter is a JSON array, not a plain string. Always pass it as an array: ["keyword"].

Explore page workflow:

# Step 1: list available sections
node scripts/run.js --platform instagram --tool get_explore_page_sections \
  --params '{}' --pretty

# Step 2: browse posts in a specific section (use section_id from Step 1)
node scripts/run.js --platform instagram --tool get_posts_by_section \
  --params '{"section_id":"10156104410190727","count":20}' --pretty

Cache directory structure:

.keyapi-cache/
└── YYYY-MM-DD/
    ├── convert_shortcode_to_media_id/
    │   └── {params_hash}.json
    ├── convert_media_id_to_shortcode/
    │   └── {params_hash}.json
    ├── get_post_info/
    │   └── {params_hash}.json
    ├── get_post_likes/
    │   └── {params_hash}.json
    ├── get_post_comments/
    │   └── {params_hash}.json
    ├── get_comment_replies/
    │   └── {params_hash}.json
    ├── get_explore_page_sections/
    │   └── {params_hash}.json
    ├── get_posts_by_section/
    │   └── {params_hash}.json
    ├── get_posts_by_hashtag/
    │   └── {params_hash}.json
    ├── get_posts_using_specific_music/
    │   └── {params_hash}.json
    ├── general_search/
    │   └── {params_hash}.json
    ├── search_hashtags/
    │   └── {params_hash}.json
    ├── search_places/
    │   └── {params_hash}.json
    ├── search_reels/
    │   └── {params_hash}.json
    ├── search_music/
    │   └── {params_hash}.json
    ├── search_locations_by_coordinates/
    │   └── {params_hash}.json
    └── get_cities_by_country/
        └── {params_hash}.json

Cache-first policy:

Before every API call, check whether a cached result already exists for the given parameters. If a valid cache file exists, load from disk and skip the API call.

Step 4 — Synthesize and Report Findings

After collecting all API responses, produce a structured content intelligence report:

For post analysis:

  1. Post Overview — Shortcode, media type (photo/video/carousel), caption, publish date, like count, comment count, views (if video).
  2. Engagement Analysis — Like-to-comment ratio, top commenters, sentiment signals from comment keywords.
  3. Comment Thread Insights — Most replied-to comments, key discussion themes, brand or product mentions.
  4. Audience Signals — Who is engaging, public account patterns where available.

For hashtag / topic research:

  1. Hashtag Profile — Name, post volume, top recent posts.
  2. Content Patterns — Common media types, caption styles, co-occurring hashtags.
  3. Music Attribution — Tracks driving Reels content within the hashtag.
  4. Opportunity Assessment — Saturation vs. engagement quality, optimal posting windows.

For music research:

  1. Track Overview — Title, artist, music ID, total usage count.
  2. Content Fit — Types of posts using this track, associated hashtags, creator tier distribution.
  3. Trend Direction — Growth or decline in adoption by comparing page depths.

For location / geo research:

  1. Location Index — Place names, IDs, coverage radius.
  2. Local Content — Top posts geotagged to target area, thematic clusters.
  3. City / Region Map — Available cities per country for campaign geo-targeting.

author: KeyAPI license: MIT repository: https://github.com/EchoSell/keyapi-skills


Common Rules

RuleDetail
search_reels keywordThe keyword parameter is an array type — always pass as a JSON array: ["your_keyword"]. Passing a plain string will cause a schema validation error.
Post identificationget_post_info, get_post_likes, get_post_comments, and get_comment_replies all accept either a shortcode (e.g., DRhvwVLAHAG) or a full post URL as code_or_url.
Comment replies workflowAlways call get_post_comments first to obtain comment_id values before calling get_comment_replies.
Explore sections workflowAlways call get_explore_page_sections first to obtain section_id values before calling get_posts_by_section.
Hashtag formatPass hashtag names without the # symbol to get_posts_by_hashtag and search_hashtags.
Music identificationget_posts_using_specific_music accepts either music_id or music_url — pass one, not both.
Pagination diversityDifferent endpoints use different pagination tokens (pagination_token, end_cursor, max_id). Always use the correct parameter for each endpoint.
Success checkcode = 0 → success. Any other value → failure. Always check the response code before processing data.
Retry on 500If code = 500, retry the identical request up to 3 times with a 2–3 second pause between attempts before reporting the error.
Cache firstAlways check the local .keyapi-cache/ directory before issuing a live API call.

author: KeyAPI license: MIT repository: https://github.com/EchoSell/keyapi-skills


Error Handling

CodeMeaningAction
0SuccessContinue workflow normally
400Bad request — invalid or missing parametersValidate input against the tool schema; check keyword array type for search_reels, code_or_url format, and required IDs
401Unauthorized — token missing or expiredConfirm KEYAPI_TOKEN is set correctly; visit keyapi.ai to renew
403Forbidden — plan quota exceeded or feature restrictedReview plan limits at keyapi.ai
404Resource not found — post or hashtag may have been deleted or made privateVerify the shortcode/URL or hashtag name; the content may no longer be public
429Rate limit exceededWait 60 seconds, then retry
500Internal server errorRetry up to 3 times with a 2–3 second pause; if it persists, log the full request and response and skip this node
Other non-0Unexpected errorLog the full response body and surface the error message to the user

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.25%
按下载量换算967

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills