by pc-style
Turn public X posts, profiles, and search into compact Markdown or JSON for agents. Hosted at x.pcstyle.dev.
# Add to your Claude Code skills
git clone https://github.com/pc-style/x-mdx-md is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by pc-style. Turn public X posts, profiles, and search into compact Markdown or JSON for agents. Hosted at x.pcstyle.dev. It has 205 GitHub stars.
x-md's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/pc-style/x-md" and add it to your Claude Code skills directory (see the Installation section above).
x-md is primarily written in TypeScript. It is open-source under pc-style on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh x-md against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Turn public X posts, conversations, profiles, search results, and social graphs into compact Markdown for agents. The hosted API is available at mdfromx.com; no X API key is required for the default provider path.
[!IMPORTANT] Status: beta. Routes and output fields can change as upstream X providers change. The compatibility target for self-hosting is Bun 1.4 (see
.bun-version) and the locked dependencies in this repository.
Not affiliated with X Corp. Public lists are not available.
?full=true for dates, metrics, and richer profile details.context and replies to narrow it.?format=json or Accept: application/json.Replace x.com with mdfromx.com on a public status URL:
https://x.com/handle/status/1234567890
https://mdfromx.com/handle/status/1234567890
curl -sS -H 'Accept: text/markdown' \
'https://mdfromx.com/handle/status/1234567890'
curl -sS -G 'https://mdfromx.com/api/v1/posts' \
--data-urlencode 'url=https://x.com/handle/status/1234567890'
Browsers that request HTML get a readable page containing the Markdown. Agents can explicitly request text/markdown. Discord, Telegram, Slack, and other preview bots receive Open Graph embed HTML for the same status URL, including multiple images on Discord, video streams where supported, video thumbnails on Slack, quote/poll text, and an oEmbed engagement line.
Everything here is public, needs no key, and is meant to be read by a program:
| Surface | Where | What it is |
|---|---|---|
| Markdown negotiation | any read route, or /, /docs, /about |
Accept: text/markdown returns Markdown; docs pages also answer to a .md suffix or ?mode=agent. Responses carry Vary: Accept and a Link: …; rel="alternate" to the Markdown twin |
/llms.txt |
mdfromx.com/llms.txt | What x.md is for, when not to use it, and every route, in one text file |
/openapi.json |
mdfromx.com/openapi.json | OpenAPI 3.1: parameters, response schemas, error bodies, quotas, lifecycle |
/api |
mdfromx.com/api | A small JSON index for an agent that has only the domain |
/mcp |
mdfromx.com/mcp | MCP server over Streamable HTTP, exposing the same reads as tools |
| Agent skill | bunx skills add pc-style/x-md -g -y --skill browse-x |
The browse-x skill for coding agents |
/.well-known/ard.json |
mdfromx.com/.well-known/ard.json | Agentic Resource Discovery catalog of every machine surface above |
Errors are RFC 9457 problem documents (application/problem+json) with a stable machine code, a human detail, and a resolution hint — see the error catalogue. Rate limits are advertised on every response with the IETF RateLimit-Policy and RateLimit structured fields plus the RateLimit-Limit/-Remaining/-Reset compatibility triple, and Retry-After on a 429.
/api/v1/* is the stable machine surface: /api/v1/posts, /api/v1/profiles/{handle} (/followers, /following), /api/v1/search, /api/v1/oembed. Additive changes ship inside v1; breaking ones ship as a new path prefix, and v1 keeps working for at least 12 months after a successor appears. The permalink routes (/{handle}, /{handle}/status/{id}, /search, /oembed) are the unversioned product surface and are not deprecated.
GET /api/convert and GET /api/browse are aliases scheduled for deprecation on 2026-09-15, with a 2027-09-15 sunset. They still work unchanged and already announce the schedule on every response:
Deprecation: @1789430400
Sunset: Wed, 15 Sep 2027 00:00:00 GMT
Link: <https://mdfromx.com/api/v1/posts>; rel="successor-version"
Full policy: mdfromx.com/docs/versioning.
Both GET /:handle/status/:id and GET /api/v1/posts?url=… support:
| Parameter | Default | Supported values |
|---|---|---|
format |
markdown |
markdown, obsidian, json |
full |
false | true, 1, or yes enables expanded Markdown; Obsidian is always expanded |
thread |
full |
off, full, conversation, or a limit from 2 to 100 |
context |
full |
full includes parents, author thread, and selected replies; thread excludes unrelated replies |
replies |
top |
top, recent, off |
userinfo |
off |
off, author, all |
nocache |
false | true, 1, or yes bypasses the application cache |
thread=off returns only the requested post. The default conversation result is ordered and labels posts as parent, post, thread, or reply when that data is available. Provider fallbacks can return less context, article content, or quote data.
# Expanded conversation without replies
curl -sS 'https://mdfromx.com/handle/status/1234567890?full=true&replies=off'
# Author thread only, capped at 20 posts
curl -sS 'https://mdfromx.com/handle/status/1234567890?context=thread&thread=20'
# Structured output
curl -sS -H 'Accept: application/json' \
'https://mdfromx.com/handle/status/1234567890'
curl -sS 'https://mdfromx.com/handle/status/1234567890?format=json'
JSON conversion responses contain url, markdown, raw posts, compact, warnings, postCount, source, cache, and format. Media in both Markdown and posts includes direct video data when the upstream provider exposes it; availability and lifetime of X CDN URLs are controlled by X.
Preview bots hitting GET /:handle/status/:id receive embed HTML instead of Markdown. GET /oembed is the Discord oEmbed document advertised from that HTML. Explicit ?format= or Accept: application/json / text/markdown still wins over user-agent detection.
Browse routes return compact Markdown by default and structured data with ?format=json or Accept: application/json.
| Route | Behavior |
|---|---|
GET /:handle |
Profile data and latest original posts (replies and reposts filtered out) |
GET /search?q=… |
Search posts or users; feed=latest, top, photos, videos, or users (media aliases photos) (invalid values fall back to latest) |
GET /:handle/followers |
Followers |
GET /:handle/following |
Accounts followed |
The default limit is 20 and the maximum is 100; every page is cut exactly at limit (search feeds served by own accounts answer 20). Pass the opaque cursor returned as nextCursor — there is no ceiling on a cursor chain — or use page=1 through page=10; values above 10 are clamped. Profile reads return original posts unless with_replies=true / with_reposts=true is set, and until=<date> jumps straight to a date. Search takes since and until.
curl -sS 'https://mdfromx.com/elonmusk'
curl -sS 'https://mdfromx.com/search?q=typescript&feed=latest&limit=20'
curl -sS 'https://mdfromx.com/elonmusk/followers?full=true'
curl -sS -H 'Accept: application/json' \
'https://mdfromx.com/elonmusk/following?limit=20'
curl -sS 'https://mdfromx.com/api/v1/profiles/elonmusk'
curl -sS -G 'https://mdfromx.com/api/v1/search' \
--data-urlencode 'q=typescript' \
--data-urlencode 'feed=top' \
--data-urlencode 'format=json'
The older GET /api/browse?resource=profile|search|followers|following alias takes the same options and still works, but it is deprecated and sunsets on 2027-09-15.
Search feeds are case-insensitive. users returns account profiles in users; other feeds return posts. Latest and Top try FxTwitter first, then a custom-built live search provider, and can fall back to web-indexed snippets. Photos, Videos, and Users use the live provider directly.
429 with Retry-After in seconds until the window resets. An upstream outage returns 503 with Retry-After: 30.Every response advertises what is left, so a client can pace itself instead of discovering the limit by hitting it:
RateLimit-Policy: "api-ip";q=600;w=60, "search-ip";q=5;w=60, "account-ip";q=10;w=900
RateLimit: "api-ip";r=599;t=60, "search-ip";r=5;t=60, "account-ip";r=10;t=900
RateLimit-Limit: 5
RateLimit-Remaining: 5
RateLimit-Reset: 60
q is the quota, w the window in seconds, r what is left, t the seconds until that window resets. The unprefixed RateLimit-Limit/-Remaining/-Reset triple describes the tightest policy. Ignore these values on a response with a positive Age: a CDN hit replays the state of whoever filled the cache.
Counters are per instance unless a shared KV store is configured.
Browse JSON includes the resource-specific profile, posts, or users, plus page, limit, optional nextCursor, rendered markdown, and cache status. The verified upstream profile API does not expose pinned-post markers, and public X lists are explicitly unsupported.