xfetch is a Twitter/X data API that provides over 31 read endpoints for search, profiles, timelines, audience graph, and tweet context as normalized JSON, with a hosted MCP server for AI agents and real-time account monitoring via Discord or webhooks.
What is xfetch?
xfetch is a self-serve Twitter/X data API — an alternative to the official X API — that returns structured public data as normalized JSON over /v1 (with limited /2 compatibility). It takes an API key and a query (username, search term, user ID, or tweet ID) and outputs profile information, recent tweets, search results, follower/following lists, or tweet context with author, quotes, and thread data. The API runs on cloud infrastructure with predictable credit-based pricing; it is operated by xfetch.io.
Key Features
- 31 REST endpoints — Covering search (recent posts with enriched author dedup), profiles and user lookup, timelines (posts, replies, media with pagination), audience graph (followers/following as IDs or full profiles), tweet context (author, quotes, retweeters, thread), plus lists, communities, and trends. All endpoints →
- Hosted MCP server — Six read-only MCP tools (search, profile lookup, tweet context, user timeline, followers, following) for AI agents; point any remote-MCP-compatible client at
https://api.xfetch.io/mcp with a Bearer token. Set up MCP →
- Account monitoring — Watch any public account for new posts; push to Discord (no webhook URL needed) or a generic signed webhook with
x-xfetch-signature. Real-time delivery, not credit-metered. See details →
- Normalized JSON responses — Consistent shape across all endpoints; opaque pagination tokens;
meta.credits in every response showing charged and remaining credits.
- Failed calls not charged — Only successful responses consume credits; service-side errors cost nothing.
- Opaque pagination — Token-based (no page numbers), suitable for automated pipelines.
- OpenAPI contract — Machine-readable spec at
/openapi.json and /llms.txt. View contract →
Who is it for?
- AI/agent developers — Build pipelines that search recent posts, fetch profiles, or follow user timelines via MCP tools or REST; each call returns structured JSON without scraping.
- Market researchers & social intelligence analysts — Map audience relationships, analyze influence, and uncover community structures using audience graph endpoints (followers/following) combined with profile and timeline data.
- Discord community managers — Monitor competitor or founder accounts in real time; new tweets land in a chosen Discord channel with no coding required.
- Influencer discovery platforms — Use profile and audience data to verify follower counts, recent activity, and network connections.