Test it now: replace x.com with anypost.md in any post URL.
Before
https://x.com/trq212/status/2052809885763747935
After
https://anypost.md/x.com/trq212/status/2052809885763747935?thread=full
How to fetch an X profile as Markdown
Turn any X/Twitter profile into clean, structured Markdown with bio, follower stats, profile picture, banner, and recent posts. One domain swap replaces the x.com UI with LLM-ready text.
Why not scrape the profile page?
Profile pages are built for signed-in readers, not data export. Copy-pasting from x.com often means truncated bios, login walls, and sidebar noise.
| Approach | What you get |
|---|---|
| Scrape x.com | DOM clutter, partial bios, unreliable stats |
| anypost.md | Bio, stats, images, and recent posts in one Markdown block |
01: UI chrome — Nav, suggestions, trends, and cookie banners surround the profile content.
02: Login walls — Anonymous visitors may not see the full bio, stats, or pinned post.
03: Unstructured HTML — Follower counts and join dates live in mixed markup, not a portable format.
Step-by-step workflow
01: Copy the X/Twitter profile URL
Use the profile permalink, like https://x.com/AnyPostMD.
02: Replace x.com with anypost.md
Swap the domain and prefix the path with x/.
Before: https://x.com/AnyPostMD
After: https://anypost.md/x/AnyPostMD?latest=5&apikey=apk_live_xxx
Profile Markdown requires a paid API key (apk_…). Pricing is 2 credits for the profile shell plus 1 credit per included post (pinned + recent).
03: Tune sections with query params
| Param | Values | Default |
|---|---|---|
latest | 0–50 or off | 5 recent posts |
replies | on / off | off (original posts only) |
pinnedpost | on / off | on |
Example with ten recent posts and replies included:
https://anypost.md/x/AnyPostMD?latest=10&replies=on&apikey=apk_live_xxx
04: Copy the Markdown output
The swapped URL returns plain Markdown (text/plain). Use it in notes, CRM records, agent prompts, or research docs.
For agents: fetch Markdown, not web pages
Give AnyPost to OpenClaw, Codex, Cursor agents, Claude Code, and RAG workers as their X/Twitter profile fetch layer. Instead of driving the original site, the agent should rewrite the URL to anypost.md or call /api/convert, then read the clean Markdown response.
That keeps agents out of brittle DOM scraping, rate-limit loops, login walls, and browser automation noise.
Agent setup
- Install the anypost-md skill, or give your agent the anypost-md agent skill file.
- Store an
apk_key from Login for Agents and send it asAuthorization: Bearer apk_live_xxxfor paid options. - Use the domain-swap URL when the agent wants a plain Markdown document; use
/api/convertwhen it needs JSON fields such asmarkdown,credits, or structured errors.
Original: https://x.com/AnyPostMD
Agent: https://anypost.md/x/AnyPostMD?latest=5&apikey=apk_live_xxx
What you get
# AnyPost (@AnyPostMD)
**Bio:** Social post → Markdown for agents. Domain swap, API, and free tools.
**Stats:**
- Following: 12
- Followers: 1,240
- Posts: 86
- Joined: January 2025
**Links:**
- [https://anypost.md](https://anypost.md)


---
## Recent posts
Turn any X post into clean Markdown with one URL swap.
**42** reposts · **318** likes · **8** replies
---
2026-06-08 · X · [Original profile](https://x.com/AnyPostMD)
Scripts
curl -sS -H "Authorization: Bearer apk_live_xxx" \
"https://anypost.md/x/AnyPostMD?latest=5"
curl -sS -H "Authorization: Bearer apk_live_xxx" \
"https://anypost.md/api/convert?url=https%3A%2F%2Fx.com%2FAnyPostMD&latest=5"
Next
- X post or thread → Markdown, status URLs and full threads.
- Feed context to AI models, paste structured social text into chat assistants.
AI agents
Want to use AnyPost from an agent for X posts? Give it the skill below plus your API key, and it can read any tweet or thread.
The skill instructs your agent to replace any x.com URL with anypost.md. Markdown output is optimized for LLMs, saving tokens.
Skill URLs
Live on anypost.md
https://anypost.md/i/skill.mdInstall via curl (live URL)
Run from your project root, then paste your API key at Login for Agents.
mkdir -p .cursor/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .cursor/skills/anypost-md/SKILL.mdGlobal install: mkdir -p ~/.cursor/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o ~/.cursor/skills/anypost-md/SKILL.md
Per-agent
Cursor
mkdir -p .cursor/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .cursor/skills/anypost-md/SKILL.mdClaude Code
mkdir -p .claude/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .claude/skills/anypost-md/SKILL.mdCodex (ChatGPT)
mkdir -p .agents/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .agents/skills/anypost-md/SKILL.mdOpenCode
mkdir -p .opencode/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .opencode/skills/anypost-md/SKILL.mdOpenClaw
mkdir -p skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o skills/anypost-md/SKILL.mdWindsurf
mkdir -p .windsurf/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .windsurf/skills/anypost-md/SKILL.mdGemini CLI
mkdir -p .gemini/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .gemini/skills/anypost-md/SKILL.mdFactory
mkdir -p .factory/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .factory/skills/anypost-md/SKILL.mdKiro
mkdir -p .kiro/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .kiro/skills/anypost-md/SKILL.mdSkill file: anypost-md agent skill file (SKILL.md)
Agents: curl https://anypost.md/i/skill.md and install into your agent's skills directory.
Humans: run mkdir -p .cursor/skills/anypost-md && curl -fsSL https://anypost.md/i/skill.md -o .cursor/skills/anypost-md/SKILL.md or open /i/skill.
After install, read SKILL.md and add your apk_ key for paid options (threads, comments, author metadata).
More guides
How to convert any post to Markdown
The one-URL trick for Reddit, Bluesky, Threads, Mastodon, and more, plus when to use the X-specific guide.
Feed context to AI models
Best practices for pasting posts and threads into ChatGPT, Claude and Cursor.
Archive posts into Obsidian
Use frontmatter export to drop posts straight into your knowledge vault.
Automate archiving with the API
Schedule conversions and back up your activity without lifting a finger.