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

keyapi-threads-user-discoverykeyapi 线程用户发现

Agent Skill

keyapi-threads-user-discovery 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,895

周安装

116

GitHub Stars

公开资料未说明

下载量

937
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install keyapi-threads-user-discovery

简介

用于检索 Threads 用户发布的帖子、转发、回复及评论内容,执行关键词搜索操作。

  • 适合在 OpenClaw 中追踪社交动态、分析话题传播路径或发现潜在合作伙伴时使用。
  • 支持获取用户资料、帖子详情与互动数据,输出可导出的 JSON 格式结果。
  • 安装命令:openclaw skills install keyapi-threads-user-discovery。
  • 注意 Meta 平台对第三方访问的权限控制,确保仅用于授权用途。

SKILL.md

name
keyapi-threads-user-discovery
description
Discover and analyze Threads users and content — retrieve user profiles, posts, reposts, replies, post details, comments, and perform keyword-based search across top content, recent content, and user profiles.
metadata
{"openclaw":{"requires":{"env":["KEYAPI_TOKEN"],"bins":["node"]},"primaryEnv":"KEYAPI_TOKEN","emoji":"🧵"}}
author
KeyAPI
license
MIT
repository
https://github.com/EchoSell/keyapi-skills

keyapi-threads-user-discovery

Discover and analyze Threads users and content — from profile resolution and content inventory to comment thread exploration and keyword-based search across the platform.

This skill provides comprehensive Threads user and content intelligence using the KeyAPI MCP service. It enables retrieval of user profiles (by username or user ID), published posts, reposts, replies, individual post details (by shortcode or full URL), post comments, and keyword search across top content, recent content, and user profiles — all through a unified, cache-first workflow.

Use this skill when you need to:

  • Retrieve a Threads user's profile by username or numeric user ID
  • Inventory a user's published posts, reposts, and reply activity
  • Retrieve full details for a specific post using its shortcode or URL
  • Explore comments on a Threads post
  • Search for top or recent content by keyword
  • Discover user profiles matching a search query

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


Prerequisites

RequirementDetails
KEYAPI_TOKENA valid API token from keyapi.ai. 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 Threads MCP server:

Server URL : https://mcp.keyapi.ai/threads/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 threads --list-tools

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


Analysis Scenarios

User NeedNode(s)Best For
User profile by usernameget_user_infoProfile lookup, follower count, bio, verification
User profile by numeric user IDget_user_info_by_idID-to-profile resolution, data normalization
User's published postsget_user_postsContent inventory, posting cadence analysis
User's repostsget_user_repostsContent amplification patterns, sharing behavior
User's repliesget_user_repliesEngagement behavior, conversation participation
Post details by shortcode or URLget_post_detailPost audit, content analysis, media retrieval
Comments on a postget_post_commentsSentiment analysis, community reaction (requires numeric post ID from get_post_detail response)
Search top content by keywordsearch_top_contentViral content discovery, trending topic research
Search recent content by keywordsearch_recent_contentReal-time content monitoring, breaking topic tracking
Search user profiles by keywordsearch_profilesCreator discovery, influencer prospecting

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


Workflow

Step 1 — Identify Analysis Targets and Select Nodes

Clarify the research objective and map it to one or more nodes. Typical entry points:

  • Profile lookup by handle: Use get_user_info with username. Returns user_id needed for content endpoints.
  • Profile lookup by ID: Use get_user_info_by_id when only a numeric ID is available.
  • Content audit: Combine get_user_posts + get_user_reposts + get_user_replies for a full activity snapshot.
  • Post deep-dive: Use get_post_detail then get_post_comments for content + community reaction.
  • Content discovery: Use search_top_content for viral content or search_recent_content for latest posts.
  • Creator discovery: Use search_profiles to find users by keyword.
Critical: Two Identifier Types Threads endpoints use two distinct identifiers: - username — the @handle from the profile URL (e.g., https://www.threads.net/@lilbieberlilbieber). Used by get_user_info and search_profiles. - user_id — the numeric internal user ID (e.g., 63625256886). Required by get_user_posts, get_user_reposts, get_user_replies, and get_user_info_by_id. Always call get_user_info first with the username to obtain the user_id before calling content endpoints.
get_post_detail vs. get_post_comments — Different post_id Formats These two endpoints both use a post_id parameter but expect different formats: - get_post_detail: post_id = the shortcode from the URL (e.g., DPVUglOjOUu from https://www.threads.com/@taylorswift/post/DPVUglOjOUu) - get_post_comments: post_id = the numeric post ID (e.g., 3390920896561588969) The numeric post ID is returned inside the get_post_detail response. The workflow is: call get_post_detail with the shortcode → extract the numeric id from the response → pass it to get_post_comments.
get_post_detail — Shortcode vs. Full URL get_post_detail accepts either: - post_id — the shortcode extracted from the post URL (e.g., https://www.threads.com/@taylorswift/post/DPVUglOjOUu → shortcode is DPVUglOjOUu) - url — the full post URL Pass one, not both. The shortcode is preferred for caching consistency.

Step 2 — Retrieve API Schema

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

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

# Examples
node scripts/run.js --platform threads --schema get_user_info
node scripts/run.js --platform threads --schema get_post_detail
node scripts/run.js --platform threads --schema search_top_content

Step 3 — Call APIs and Cache Results Locally

Execute tool calls and persist responses to the local cache to avoid redundant API calls.

Calling a tool:

# Single call with pretty output
node scripts/run.js --platform threads --tool <tool_name> \
  --params '<json_args>' --pretty

# Force fresh data, skip cache
node scripts/run.js --platform threads --tool <tool_name> \
  --params '<json_args>' --no-cache --pretty

Example — get user profile by username:

node scripts/run.js --platform threads --tool get_user_info \
  --params '{"username":"zuck"}' --pretty

Example — get user posts (first page):

node scripts/run.js --platform threads --tool get_user_posts \
  --params '{"user_id":"63625256886"}' --pretty

Example — get next page using end_cursor:

node scripts/run.js --platform threads --tool get_user_posts \
  --params '{"user_id":"63625256886","end_cursor":"<cursor_from_previous_response>"}' --pretty

Example — get post detail by shortcode (step 1 of comment workflow):

node scripts/run.js --platform threads --tool get_post_detail \
  --params '{"post_id":"DPVUglOjOUu"}' --pretty
# Response contains numeric "id" field — use it for get_post_comments

Example — get post comments using numeric post ID (step 2):

node scripts/run.js --platform threads --tool get_post_comments \
  --params '{"post_id":"3390920896561588969"}' --pretty

Example — get post detail by full URL:

node scripts/run.js --platform threads --tool get_post_detail \
  --params '{"url":"https://www.threads.com/@taylorswift/post/DPVUglOjOUu"}' --pretty

Example — search top content:

node scripts/run.js --platform threads --tool search_top_content \
  --params '{"query":"AI"}' --pretty

Example — search user profiles:

node scripts/run.js --platform threads --tool search_profiles \
  --params '{"query":"mark"}' --pretty

Pagination:

Threads uses cursor-based pagination via end_cursor:

EndpointPagination parameterNotes
get_user_posts, get_user_reposts, get_user_repliesend_cursorPass cursor from previous response; omit for first call
get_post_commentsend_cursorPass cursor from previous response; omit for first call
search_top_content, search_recent_contentend_cursorPass cursor from previous response; omit for first call
get_user_info, get_user_info_by_id, get_post_detailSingle-call response
search_profilesNo pagination; single-call response

Cache directory structure:

.keyapi-cache/
└── YYYY-MM-DD/
    ├── get_user_info/
    │   └── {params_hash}.json
    ├── get_user_info_by_id/
    │   └── {params_hash}.json
    ├── get_user_posts/
    │   └── {params_hash}.json
    ├── get_user_reposts/
    │   └── {params_hash}.json
    ├── get_user_replies/
    │   └── {params_hash}.json
    ├── get_post_detail/
    │   └── {params_hash}.json
    ├── get_post_comments/
    │   └── {params_hash}.json
    ├── search_top_content/
    │   └── {params_hash}.json
    ├── search_recent_content/
    │   └── {params_hash}.json
    └── search_profiles/
        └── {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 user and content intelligence report:

For individual user analysis:

  1. Profile Overview — Username, display name, user ID, bio, follower count, following count, verification status, account type.
  2. Content Inventory — Post count, repost frequency, reply activity, posting cadence.
  3. Engagement Patterns — Like counts, reply counts, repost counts on published content.
  4. Content Themes — Recurring topics, hashtag usage, media type distribution.

For post analysis:

  1. Post Details — Author, text content, media attachments, like count, reply count, repost count, timestamp.
  2. Comment Sentiment — Top comment themes, community reaction, notable replies.
  3. Engagement Quality — Like-to-reply ratio, repost amplification signals.

For search and discovery:

  1. Top Content Results — Highest-engagement posts matching the query, author profiles.
  2. Recent Content Results — Latest posts for real-time topic monitoring.
  3. Profile Discovery — Matched user profiles with follower counts and verification status.

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


Common Rules

RuleDetail
Identifier resolutionget_user_posts, get_user_reposts, get_user_replies require user_id. Always call get_user_info first with username to obtain it.
get_post_comments post_idRequires the numeric post ID (e.g., 3390920896561588969), NOT the shortcode. Call get_post_detail first with the shortcode and extract the id field from the response.
get_post_detail inputPass either post_id (shortcode) or url (full URL) — not both. Prefer post_id for caching consistency.
Shortcode extractionExtract shortcode from post URL: https://www.threads.com/@{username}/post/{shortcode}
Cursor paginationUse end_cursor from the previous response to fetch the next page. Omit for the first call.
search_profiles paginationsearch_profiles does not support pagination — returns results in a single call.
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; ensure user_id is provided for content endpoints; check shortcode format
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 — user or post may not exist or account is privateVerify the username or post shortcode; private accounts may have restricted data
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

72.01%
按下载量换算675

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills