x-api

x-api is a skill for Claude Code from fetcher-sh/fetcher-skills. It costs 164 tokens per session (2,542 once invoked), scanned A, original, MIT.

An HTTP service for retrieving public X (formerly Twitter) data as JSON, including posts, profiles, timelines, followers, Lists, and trends.

In plain words
What is it for?
Use it to search posts with keywords, hashtags, or operators, look up accounts and posts, read Lists, and retrieve timelines, followers, or trends.
Why use it?
It removes the need for an X developer account, application approval, and OAuth setup when an agent needs X data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the fetcher-skills plugin — 13 skills, 4 commands shipped together

Good fit Use it to search posts with keywords, hashtags, or operators, look up accounts and posts, read Lists, and retrieve timelines, followers, or trends.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fetcher-sh/fetcher-skills/x-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fetcher-sh/fetcher-skills --skill x-api
Clone the repo
git clone --depth 1 https://github.com/fetcher-sh/fetcher-skills

Made for: Claude Code.

Or install fetcher-skills, the plugin that ships this one along with the rest of its 13 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/fetcher-sh/fetcher-skills/x-api/github.svg)](https://agentmods.dev/skills/fetcher-sh/fetcher-skills/x-api)
Your own site
<a href="https://agentmods.dev/skills/fetcher-sh/fetcher-skills/x-api"><img src="https://agentmods.dev/badge/skills/fetcher-sh/fetcher-skills/x-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for x-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/fetcher-sh/fetcher-skills/x-api"><img src="https://agentmods.dev/badge/skills/fetcher-sh/fetcher-skills/x-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,542 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Aug 2026
  • Snyk warn 12 Aug 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.02542
Opus 5 $0.00082 $0.01271
Sonnet 5 $0.00033 $0.00508
Haiku 4.5 $0.00016 $0.00254

Measured 8d ago against content hash 2da57b350ec1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

x-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
skills/x-api/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X (Twitter) Data API

A drop-in X data source for agents: search posts, resolve profiles, pull timelines and followers, read Lists, and check trends — all as one plain HTTP GET, paid per call. No developer account, no app review, no OAuth handshake, and no waiting on X's own API tiers or rate-limit approvals. If your task mentions an X search query, a handle, a post/tweet ID, or a list ID, this is the skill.

Base URL: https://twitter.fetcher.sh — the API host is still named twitter (it predates the rebrand and matches what agents already search for); everything below is current X data.

Also published as twitter-api — identical endpoints, indexed under the "Twitter" name too since both are still in everyday use.

Quick reference

Base URL https://twitter.fetcher.sh
Auth Authorization: Bearer bby_live_... or x402 (USDC)
Price $0.002–$0.005/call
Endpoints 15, all GET
MCP https://twitter.fetcher.sh/mcp
Machine-readable /openapi.json · /llms.txt · /skill.md

Which endpoint do I need?

I want to... Call
Search posts by keyword or operator (from:, since:, min_faves:, ...) GET /api/search
Search accounts by name GET /api/search/users
Look up a profile by @handle GET /api/handle/{handle}
Get a user's followers or followings GET /api/user/{id}/followers or /followings
Get a single post by ID GET /api/tweet/{id}
See who reposted a post GET /api/tweet/{id}/retweeters
Read an X List's posts or members GET /api/list/{id}/tweets or /members
Check trending topics for a country GET /api/trends

Full param details for every row: references/endpoints.md.

Authentication

Two ways to pay, same data — full mechanics in the fetcher skill:

# 1. Prepaid credits (recommended — get a key at https://fetcher.sh/topup
#    or via POST /api/credits/topup, see the fetcher skill)
export FETCHER_API_KEY="bby_live_xxxxxxxxxxxx"
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://twitter.fetcher.sh/api/search?query=hello"

# 2. x402 pay-per-call — omit the header; a GET with no payment returns 402
#    with machine-readable payment requirements (USDC on Base, Polygon,
#    Arbitrum, Monad, or Solana). @x402/fetch signs and retries automatically.

Read the full file on GitHub · 248 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 248 lines · 164 tokens per session scan A 2da57b350ec1

Subscribe to this mod's changes

x-api is a skill published in the GitHub repository fetcher-sh/fetcher-skills (0 stars, last pushed 3d ago), licensed MIT. It adds 164 tokens to every session and 2,542 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

twitter-api-alternative

Twitter API Alternative: search a massive tweet index with natural language queries, boolean filters, and one-click CSV exports (up to 64K rows). Look up profiles, find users by topic, and track conversations. No developer account needed, no complex OAuth setup — 2-minute setup via Xpoz MCP.

XPOZpublic/xpoz-clawhub-skills · 67 tokens

twitter-cli

Use twitter-cli for ALL Twitter/X operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.

public-clis/twitter-cli · 43 tokens

hermes-tweet

Use Xquik in Hermes Agent for public X research, monitoring, thread summaries, creator discovery & approved actions. Not affiliated with X Corp. Use when the user requests X data or a named action. Trigger with "search X", "monitor X", "post tweet", or "X trends".

Xquik-dev/hermes-tweet · 65 tokens

x_intel

Read X (Twitter) posts, search, timelines and user profiles via the official xurl CLI.

mateaix/mateclaw · 24 tokens

xquik

Xquik X data automation API - Use REST or MCP for tweet search, user lookup, follower exports, media downloads, monitors, webhooks, giveaway draws, and confirmation-gated X actions.

bobmatnyc/claude-mpm-skills · 44 tokens

X Content Advisor

Use when a user asks how to grow or make better content on X/Twitter, wants an account or post audit, asks why a post underperformed, needs a weekly content plan, or wants a draft rewritten, a posting-time experiment, or a recommendation-risk review of sensitive media using evidence from their own timeline. Works with…

howdeploy/deploychan_mcp · 88 tokens