X Twitter logo

X Twitter

Organization
unifapi-agent
x-twitter

When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends. Also use on "read this X handle," "pull tweets for," "X follower count," "search X for," "Twitter engagement," "X trends," or when another skill (KOL pricing, creator shortlist, buying signals, competitor/listening) needs the deterministic X read path. Connect via the `unifapi` skill first. Read-only research, never posts.

Overview

Publisherunifapi-agent
Repositoryagents
Skill namex-twitter
Stars
590
Forks
115
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by unifapi-agent on GitHub. Read the source before you install it.

Installation

Install the X Twitter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/unifapi-agent/agents/tree/main/skills/x-twitter-agent/x-twitter
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/unifapi-agent/agents.git /tmp/agents
mkdir -p .claude/skills
cp -r /tmp/agents/skills/x-twitter-agent/x-twitter .claude/skills/x-twitter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable X Twitter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads X Twitter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so X Twitter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

x-twitter

The deterministic read path for public X (Twitter) data through UnifAPI. This is a Data Skill: it does not run a marketing job on its own — it names the concrete x/... operations, response shapes, and gotchas so any X-first workflow (KOL pricing, creator vetting, buying signals, competitor and listening work) reads from one known recipe instead of rediscovering the surface each time.

Read-only — eyes, not hands. It researches public X data and returns cited records; it never posts, replies, follows, or DMs, and UnifAPI never holds X credentials.

Use the unifapi skill for live evidence

Connect once through the shared unifapi skill (OAuth MCP), then call the operations below. The X integration is backed by RapidAPI SocialLab but the public contract uses X-style /x/... paths — do not use legacy /twitter/... paths. Keep any billing metadata so the output can state record cost.

Response contract

Single-entity endpoints return the object in data:

json
{
  "request_id": "unif_...",
  "data": {},
  "billing": { "records_charged": 1, "balance_remaining": 99 }
}

List endpoints return an array in data plus pagination:

json
{
  "request_id": "unif_...",
  "data": [],
  "pagination": { "has_more": false, "next_cursor": null },
  "billing": { "records_charged": 1 }
}

When pagination.has_more is true, pass pagination.next_cursor as the next request's pagination_token (next_token is also accepted). Always preserve billing when reporting cost.

Core operations

NeedOperation
Profile by handlex/users/by/username/{username}
Profiles by handlesx/users/by (?usernames=a,b)
Profile by idx/users/{id}
Profiles by idsx/users (?ids=123,456)
Recent authored postsx/users/{id}/tweets (?max_results=10&exclude=replies)
Search recent postsx/tweets/search/recent (?query=...&max_results=10)
Autocomplete users/topicsx/autocomplete (?query=...)
Post by id / posts by idsx/tweets/{id} · x/tweets (?ids=123,456)
Who amplified a postx/tweets/{id}/retweeted_by · x/tweets/{id}/quote_tweets
Who liked a postx/tweets/{id}/liking_users
What a user likesx/users/{id}/liked_tweets
Followers / followingx/users/{id}/followers · x/users/{id}/following
Verified followersx/users/{id}/verified_followers
Regional trendsx/trends/by/woeid/{woeid}

Need a field not listed here? Use the unifapi skill's get_operation to read the exact schema before calling — but pick the operation from this table, don't discover blind.

Workflow

The deterministic recipes. Pick the one that matches the job; each names exactly what to call.

  1. Resolve a handle to a profile. Strip the leading @, then call x/users/by/username/{username}. Read data.id (needed for every per-user call below) and data.public_metrics.followers_count.
  2. Read recent engagement. With the id from step 1, call x/users/{id}/tweets?max_results=10&exclude=replies. Compute engagement from each tweet's public_metrics (like_count, retweet_count, reply_count, quote_count, impression_count). Page with x/users/{id}/tweets?pagination_token={next_cursor} when has_more.
  3. Trace who amplified a post. With a tweet id from step 2, call x/tweets/{id}/retweeted_by, x/tweets/{id}/quote_tweets, or x/tweets/{id}/liking_users to see who reposted, quoted, or liked it — the amplification and intent signal behind buying-signal, listening, and competitor work. Use x/users/{id}/liked_tweets for what a user engages with. Page via next_cursor.
  4. Gauge audience quality. Call x/users/{id}/verified_followers; it returns the verified followers as a paginated list, not a ready figure. Measure its size against data.public_metrics.followers_count from step 1 — that verified share is the real-vs-inflated signal that feeds confidence and warnings in downstream pricing/vetting skills. Page via next_cursor for a fuller count.
  5. Discover from a topic (no handles yet). Call x/tweets/search/recent?query=... for recent matching posts, or x/autocomplete?query=... for user/topic suggestions, then resolve the surfaced handles with step 1.
  6. Map a network. Call x/users/{id}/followers or x/users/{id}/following for audience-overlap or reach work; page via next_cursor.
  7. Read regional trends. Call x/trends/by/woeid/{woeid} for what's trending in a location (WOEID), e.g. for listening or content-timing.
  8. Cite everything. Every figure ties back to the post or profile it came from; report billing.records_charged (or estimate when billing metadata is absent).

Shape notes

  • XUser — metrics nested under public_metrics: followers_count, following_count, tweet_count, listed_count. Profile flags at top level: protected, verified, verified_type. Read public_metrics, not legacy flat fields.
  • XTweet — metrics nested under public_metrics: like_count, retweet_count, reply_count, quote_count, bookmark_count, impression_count. May include author and media when available.

Gotchas

  • Use /x/... paths, never /twitter/... (legacy). Old /twitter/users/{screen_name} → x/users/by/username/{username}; old /twitter/search → x/tweets/search/recent (use x/autocomplete for user/topic discovery).
  • A protected, too-old, or too-thin timeline lowers confidence — surface it, don't paper over it.
  • Resolve the handle to data.id before any x/users/{id}/... call.
  • A low balance can silently truncate list pages: check billing.truncated_due_to_balance — when true the page is partial, so top up before trusting any count or share computed from it.

Output

Return the records the calling workflow needs, each cited to its post/profile, plus a one-line cost note (records_charged). When this skill is used directly, a compact profile + engagement summary per handle is the default:

markdown
**@handle** — followers {N}, verified {yes/no}. Recent 10 posts: avg engagement {x}% ({likes}/{reposts}/{replies}). Evidence: {post URLs}. Records: ~{N}.

Related skills

  • kol-pricing, creator-shortlist, audience-fit-check (Influencer Marketing) — price and vet X creators on top of this read path.
  • buying-signal-monitor (Social Selling), competitor-profiling (Competitive Intelligence), social-listening-brief (Social Listening) — X-first intent, competitor, and listening work.
  • unifapi — the shared data skill: connect MCP and look up exact schemas with get_operation.

Frequently asked questions

What does the X Twitter AI skill do?

When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends. Also use on "read this X handle," "pull tweets for," "X follower count," "search X for," "Twitter engagement," "X trends," or when another skill (KOL pricing, creator shortlist, buying signals, competitor/listening) needs the deterministic X read path. Connect via the `unifapi` skill first. Read-only research, never posts.

Why use X Twitter on TypingMind?

Because you install it once and use it with any model. X Twitter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install X Twitter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/unifapi-agent/agents/tree/main/skills/x-twitter-agent/x-twitter. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use X Twitter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with X Twitter?

As many as you like. As long as a model supports skills, you can use X Twitter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the X Twitter AI skill free?

Yes. It is published on GitHub by unifapi-agent under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇