Start reading X
Turn a public X URL into Markdown. No API key, login, or SDK needed.
x.md turns a public X URL into Markdown your agent can read. The rule is one sentence: replace x.com with x.pcstyle.dev and keep the rest of the URL. Nothing to install, no key, no login.
Tell your agent the rule
Paste this into the chat, or into AGENTS.md, CLAUDE.md, or whatever instruction file your agent reads:
To read an X (Twitter) post, thread, or profile, swap x.com for
x.pcstyle.dev in the URL and fetch it. For search, fetch
https://x.pcstyle.dev/search?q=<query>. The response is Markdown.Any agent that can fetch a URL now reads X. No further setup.
Ask it something
Summarize https://x.com/trq212/status/2052809885763747935 and its replies.The agent fetches https://x.pcstyle.dev/trq212/status/2052809885763747935 and gets the post text, source links, and thread context back as Markdown. Add ?thread=off to that URL to read only the requested post.
Give it tools instead (optional)
If your agent speaks MCP, connect it once and skip the prompt entirely. Claude Code:
claude mcp add --transport http x-md https://x.pcstyle.dev/mcpCodex, Cursor, OpenCode, Antigravity, and Amp are on the MCP page. Skills-aware agents can install the browse-x skill instead.
Reading it yourself
The same host swap works in a browser or a script. The API is documented in full under Posts and threads, Search, and Profiles; the short version:
# A post, as Markdown
curl -sS 'https://x.pcstyle.dev/trq212/status/2052809885763747935'
# Search, as JSON with fields instead of prose
curl -sS 'https://x.pcstyle.dev/search?q=typescript&feed=latest&format=json'
Search returns up to 20 results; pick Latest, Top, Photos, Videos, or Users with feed. JSON responses include the rendered markdown too. See response formats.
When to use x.md
Reach for x.md when the job is reading one piece of public X content right now:
- An agent needs the text of a public X post, thread, or X Article and cannot run a browser or log into X.
- You are resolving an
x.com,twitter.com, ort.colink found in a document, issue, changelog, or chat log. - You want a public profile’s bio and latest original posts without holding X credentials.
- You are checking who a public account follows, or who follows it.
- You need X search results as structured data rather than a rendered timeline.
- You are saving a post into notes or a vault —
?format=obsidianemits YAML frontmatter.
One plain GET, no key, no OAuth. Send Accept: text/markdown for Markdown or Accept: application/json for JSON.
When not to use it
- Anything that writes. x.md never posts, replies, follows, likes, bookmarks, or sends direct messages, and it accepts no X credentials.
- Private, protected, suspended, or deleted content. Never available; no parameter unlocks it.
- X Lists, direct messages, notifications, the home timeline, analytics. Not supported.
- Bulk or firehose collection. The service is rate limited and cached for interactive use; a page walk stops at ten pages of twenty.
- Guaranteed completeness. Results come from public upstream providers and can be delayed or truncated. Check
warningsrather than inferring. - Anything needing an SLA. x.md is a free, best-effort, MIT-licensed project.
For agents
| Surface | Where |
|---|---|
| OpenAPI 3.1 description | /openapi.json |
| MCP server | https://x.pcstyle.dev/mcp — see the MCP page |
| Documentation index for LLMs | /llms.txt |
| Versioned machine routes | /api/v1/* |
| Error codes | Catalogue |
Any documentation page can be fetched as Markdown: append .md to its URL, or send Accept: text/markdown.
Next steps
Posts and threads
Read a post, follow a thread, or include the surrounding conversation.
Search
Find posts, photos, videos, or people with the same feeds as X.
Profiles
Read an account and its followers or following.
For agents
The MCP server, the skill, and what an unattended client should handle.
Pagination
Fetch the next page with a cursor.
Error catalogue
Every machine code, what it means, and how to recover.
Versioning
What /api/v1 promises and how a deprecation is announced.
Self-hosting
Run the service from your own Vercel project.