KeyAPI Twitter Content Analytics
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_2e47cd26/keyapi-twitter-content-analytics.
About this skill
What problem it addresses
When analyzing Twitter / X data, the hard part is not writing code but mapping a business question to the right API surface. A request like “check topic heat” may span search, profiles, replies, retweets, trends, lists, or communities. Listing endpoints and parameters directly can lead to wrong fields, missed pagination, or mistaking a docs URL for a /v1/... route. This skill turns the request into an executable workflow: confirm the goal, entity, scope, metrics, and output, choose a scenario, verify current KeyAPI docs, then call the REST API.
How it works
- Goal-to-scenario routing: route by tweet, profile, search, trend, community, list, or Spaces workflows instead of asking users to pick endpoints first.
- Docs-first execution: use
https://docs.keyapi.ai/llms.txtand endpoint pages as the source of truth for method, path, parameters, pagination, and response shape; if official docs conflict, follow official docs. - Script-backed calls: use
scripts/configure-keyapi-auth.mjs --statusfor auth checks,scripts/search-keyapi-docs.mjsfor doc resolution, andscripts/keyapi-api.mjsfor live requests; fall back to equivalent REST when scripts are unavailable. - Input compression: collect only
Goal,Entity,Scope,Metric or sort,Pagination depth, andOutput formatto avoid parameter overload.
Boundaries and notes
It is for KeyAPI REST data lookup, not platform web scraping. If credentials are missing, complete local KEYAPI_TOKEN setup before calling the API, and never print or restate the token. Prefer --body-file or --image-file for large request bodies, use --output-file for large responses, then extract, sort, and aggregate from data.data. For multi-endpoint reports, confirm sections and maximum scope first to avoid unbounded batch calls.
Use Cases
- Ops teams reviewing hot topics search tweets, replies, and media by keyword and date window.
- Analysts compare two creators’ followers, recent posts, and engagement metrics into a table.
- Researchers monitor regional trends by fetching trend ranks and relevant tweet samples for a date range.
- Support teams audit complaint-related posts, retweet chains, and community posts for violations.
Best For
- Social media ops: compile weekly reports from topic search, tweet engagement, and trend shifts.
- Competitive analysts: compare target accounts’ recent posts, follower changes, and top replies.
- Data engineers: turn natural-language queries into auditable KeyAPI REST calls.
- Market researchers: pull regional trend boards and select relevant tweets as evidence.
Related Skills
Analyzes smart customer-service chat logs with semantic clustering to generate word clouds, Top K frequent questions, and personalized guess-you-ask recommendations.
Maps natural-language Reddit requests to KeyAPI REST workflows, validates endpoint contracts against official docs, and executes search, detail, comment, ranking, and report tasks.
Schedules fetching from NEP and custom academic sites, filters and ranks papers by keywords, generates Chinese summaries, and pushes Feishu cards with local download archiving.
Browser-based CSV/TXT visualizer with multi-Y-axis curves, smoothing, and PNG/JSON/CSV export.