# TwitterViewer AI: reference for agents > TwitterViewer AI is an X (Twitter) data platform for AI agents: it returns public posts, threads, profiles and replies as Markdown or JSON through a REST API, a remote MCP server and a CLI, and has a browser viewer for people. Every page is also available as Markdown: append `.md` to its URL (home page: `/index.md`), or request the page with the header `Accept: text/markdown`. ## What it does Give it an X post, thread or profile link or an @handle, and it returns the public posts as structured data or a document. It complements X: it reads public content and never writes to an X account. ## How to connect 1. Subscribe to Plus (https://twitterviewer.ai/pricing), then create an API key (starts with `tv_live_`) at https://twitterviewer.ai/account/api. MCP clients may use browser sign-in with the same Plus account instead of a key. 2. REST API under https://twitterviewer.ai/api/v1: POST or GET /api/v1/convert (url; scope thread, post or conversation; format json, markdown, obsidian, text or pdf; stats; max), GET /api/v1/replies?url=, GET /api/v1/credits. Requires Plus. Authenticate with "Authorization: Bearer tv_live_..." (create a key at https://twitterviewer.ai/account/api); a free account gets 402 PLUS_REQUIRED. Responses carry x-credits-charged, x-credits-remaining and x-ratelimit-remaining headers. Full reference: https://twitterviewer.ai/docs/api 3. Domain swap: GET /{handle}/status/{id} or /{handle} on twitterviewer.ai (replace x.com in the link) with "Authorization: Bearer " and an Accept header that does not include text/html returns Markdown; ?scope=post|thread|conversation, ?format=obsidian|text|json and ?max= work as in convert. Without a key the call returns 401 and nothing is fetched from X; browsers get the normal page. 4. MCP server: https://twitterviewer.ai/mcp (Streamable HTTP, Plus accounts; OAuth sign-in in the browser, or send "Authorization: Bearer "; OAuth metadata at https://twitterviewer.ai/.well-known/oauth-protected-resource). Claude Code: claude mcp add --transport http twitterviewer https://twitterviewer.ai/mcp; Cursor: {"mcpServers":{"twitterviewer":{"url":"https://twitterviewer.ai/mcp"}}}; Codex: [mcp_servers.twitterviewer] url = "https://twitterviewer.ai/mcp". Read-only tools: convert_x_url, get_x_replies, get_credits. Setup for Claude Code, Claude, Cursor and Codex: https://twitterviewer.ai/twitterviewer-mcp-server 5. Command-line tool: `npx twitterviewer ` (options --scope, --format md|obsidian|json|text|pdf, --stats, -o file), `twitterviewer login`, `twitterviewer credits`; reads the TWITTERVIEWER_API_KEY environment variable and requires Plus. The CLI converts links only; replies are on REST and MCP. 6. Agent Skill: https://twitterviewer.ai/.well-known/agent-skills/twitterviewer/SKILL.md (index: https://twitterviewer.ai/.well-known/agent-skills/index.json) tells an agent what to do when it meets an X link. 7. OpenAPI 3.1 description of every REST operation, schema and error code: https://twitterviewer.ai/openapi.json ## Endpoints - POST, GET /api/v1/convert: Renders any supported X link in the format you name, PDF included - GET /{handle}/status/{id}: Domain swap form of convert: keep the post path and call this host - GET /api/v1/replies: Answers left under one post - GET /api/v1/credits: Current balance, never billed - POST /mcp: MCP over Streamable HTTP, hosted here ## MCP tools - convert_x_url (url, scope, format, stats, max): Accepts a link and answers in Markdown, Obsidian, text or JSON. - get_x_replies (url, max): Fetches answers to a single post. - get_credits (none): Reports what is left to spend. ## Capabilities and limits - Convert formats: json, markdown, obsidian, text, and pdf over REST or the CLI. MCP returns text and JSON only. - Convert scopes: thread (default), post, conversation (thread plus the first page of replies). Profile links return 20 recent posts by default, up to 200. - Replies: 20 by default, up to 100. Fewer results can come back than requested. - There is no search: start from a post link, a profile link or an @handle. - The CLI converts posts, threads and profiles; replies are available over REST and MCP. - Freshness: posts, threads and replies are cached for about 2 minutes, profile timelines 3, account details 10. - Not available: protected accounts, direct messages, deleted posts, suspended accounts and any write action. ## Pricing and credit rules - Free: every viewer is free with no daily limits, also without an account (posts, threads, profiles, media and replies); a per-minute limit applies and guests pass an automatic human check; 1 Markdown or PDF conversion a day on the website (up to 25 posts); a new account gets 50 one-time credits for website conversions; no API key, MCP or CLI access. - Plus: $10 per month, or $5 per month billed yearly ($60 per year); the only paid plan; the API, MCP server and CLI require it, and viewing stays free; 3,000 credits a month for Markdown, PDF, the API and MCP (yearly plans get 36,000 at once, valid for the year); API, MCP and CLI access with 2 API keys and 30 requests a minute; PDF files straight from the API (format=pdf). - Credits: 1 credit = 1 post returned as Markdown, PDF or JSON (author details free, failed conversions free); more credits come only with Plus, there are no one-time credit purchases. A quoted post counts as one more post. - The same account repeating a request with the same parameters within 10 minutes (convert or replies) gets the same result without a new charge; changing a conversion to PDF counts separately. A repeat sent while the first is still running waits for it. - Errors and empty results are free. With a zero balance, billable calls get 402 before anything is fetched. Replies are shortened to what the balance covers; a conversion that costs more than the balance gets 402 and nothing is deducted. - On the website everyone gets 1 free conversion a day (guests are also capped at 10 a day per IP address). API, MCP and CLI calls require Plus and always use credits. - Rate limits are counted per account. API, MCP and CLI access is part of Plus: 30 requests a minute and 2 API keys per account, 3,000 credits a month (yearly plans get 12 months of credits at once). The 50 sign-up credits of a free account work on website conversions only. A free account calling the API or MCP gets 402 LIMIT_REACHED with details.reason PLUS_REQUIRED. - Payment: bank card through Stripe (checkout is hosted by Stripe; the site never sees card numbers); subscriptions renew automatically each month or year until canceled; switch between monthly and yearly, cancel, update the card and download invoices in the Stripe billing portal; if a renewal payment fails, the plan continues for a 3-day grace period while Stripe retries. ## Errors - 400 INVALID_INPUT: Something in the request cannot be used: a bad value, a gap, or an address that is neither post nor account. - 401 UNAUTHORIZED: Key absent, mistyped or removed. X is never contacted and your balance stays as it was. - 402 LIMIT_REACHED: Check `details.reason`. `PLUS_REQUIRED` means no Plus plan on the account. `INSUFFICIENT_CREDITS` comes with `details.required` and `details.balance`. - 403 PROTECTED: The owner locked the account, so its entries cannot be read. - 404 NOT_FOUND: Nothing exists at that address, perhaps because it was removed. - 410 SUSPENDED: X has suspended this account. - 429 RATE_LIMITED: The per-minute quota is spent. Pause for `retryAfterSec` seconds, a value repeated in Retry-After. - 502 UPSTREAM: Fetching from X broke down. The attempt is not billed, so try again shortly. - 503 SERVICE_UNAVAILABLE: PDF rendering or another component is offline. With `details.reason` `IN_PROGRESS`, an identical call has not finished: wait `retryAfterSec`. No credits move. ## Notes for agents - Use the API, MCP server or CLI. The browser result pages are for people and ask guests to pass a human check. - On 402 with details.reason PLUS_REQUIRED, tell the user their account needs Plus; retrying will not help. - Never ask a user for X credentials. Keep the API key in an environment variable and send it only to this site. - Reuse what you already fetched, choose the narrowest scope and set a small max to save credits. - Cite the post link included in each result, and respect the rights of the people who wrote the posts. - Independent service that complements X: not the official X API and not affiliated with X Corp. No X developer account or X OAuth is needed; it reads public posts only and cannot post, like, follow or message. ## Pages - [Twitter Viewer](https://twitterviewer.ai): Twitter Viewer for AI agents: read public X posts, threads, profiles and replies as Markdown or JSON via API, MCP or CLI. Browse free without an account. ([Markdown](https://twitterviewer.ai/index.md)) - [X to Markdown](https://twitterviewer.ai/x-to-markdown): X to Markdown turns public posts, threads and profiles into clean text for ChatGPT, Claude or Obsidian. 1 free conversion a day, up to 25 posts. ([Markdown](https://twitterviewer.ai/x-to-markdown.md)) - [Twitter Thread Reader](https://twitterviewer.ai/twitter-thread-reader): Twitter Thread Reader that unrolls an author's thread into numbered posts with media and quotes. Copy it as Markdown or save it as PDF. ([Markdown](https://twitterviewer.ai/twitter-thread-reader.md)) - [Twitter Thread to PDF](https://twitterviewer.ai/twitter-thread-to-pdf): Twitter Thread to PDF: preview a public thread, choose A4 or Letter, toggle images, links and stats, then print it to a file from your browser. ([Markdown](https://twitterviewer.ai/twitter-thread-to-pdf.md)) - [TwitterViewer API](https://twitterviewer.ai/twitterviewer-api): TwitterViewer API for public X data: convert post, thread and profile links and read replies as Markdown or JSON. No X developer account. 1 credit per post. ([Markdown](https://twitterviewer.ai/twitterviewer-api.md)) - [TwitterViewer MCP Server](https://twitterviewer.ai/twitterviewer-mcp-server): TwitterViewer MCP Server has three read-only tools for Claude, Cursor and Codex: convert X links to Markdown, read replies and check credits. ([Markdown](https://twitterviewer.ai/twitterviewer-mcp-server.md)) - [API Docs](https://twitterviewer.ai/docs/api): API Docs for TwitterViewer AI: authentication, convert, replies and credits endpoints, errors, rate limits, MCP tools and the command line. ([Markdown](https://twitterviewer.ai/docs/api.md)) - [Pricing](https://twitterviewer.ai/pricing): Browse public X content free. Plus is $10 a month or $60 a year for 3,000 monthly credits over API, MCP and CLI. 1 credit is 1 post returned. ([Markdown](https://twitterviewer.ai/pricing.md)) - [About](https://twitterviewer.ai/about): About TwitterViewer AI: an independent X data platform for AI agents with a browser viewer. What it reads, what it stores and how to reach the team. ([Markdown](https://twitterviewer.ai/about.md)) - [Contact](https://twitterviewer.ai/contact): Contact TwitterViewer AI by email at support@twitterviewer.ai about the API, the MCP server, the viewer, your plan, billing or your account. ([Markdown](https://twitterviewer.ai/contact.md)) ## Discovery - [llms.txt](https://twitterviewer.ai/llms.txt) - [llms-full.txt](https://twitterviewer.ai/llms-full.txt) - [OpenAPI specification](https://twitterviewer.ai/openapi.json) - [sitemap.xml](https://twitterviewer.ai/sitemap.xml): all indexable pages - [robots.txt](https://twitterviewer.ai/robots.txt) - [Agent Skills index](https://twitterviewer.ai/.well-known/agent-skills/index.json), [Agent Skill](https://twitterviewer.ai/.well-known/agent-skills/twitterviewer/SKILL.md) - [MCP server](https://twitterviewer.ai/mcp), [MCP OAuth metadata](https://twitterviewer.ai/.well-known/oauth-protected-resource)