Skip to content
Twexapi
English
Esc
navigateopen⌘Jpreview

Fetch X (Twitter) Article as Clean Markdown

Retrieves the full content of an X (Twitter) Long-form Article formatted as clean, valid Markdown. The response body is delivered as a raw UTF-8 string without markup bloat, optimized for LLM RAG pipelines, AI agent context ingestion, Obsidian, Notion, or static site generators.

Back to API Reference
/Article Endpoints
GET/x/article/{tweet_id}/markdown
Authorization
AuthorizationBearer token · headerrequired
Global API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Path Parameters
tweet_idstringrequired
The tweet ID of the article to get.
Responses
200Raw Markdown string representing the article content.
string
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Interactive ConsoleGET
Interactive Console / Try APIGET
Live Console
🌐Target Server:https://api.twexapi.io
● Production Ready
🔍
Public Data Read (TwexAPI Key Only, No Twitter Cookie Required)

This endpoint queries public Twitter data — no Twitter account or Cookie required! Simply enter your TwexAPI Platform Key (Bearer Token) in the "API Authorization" section below to test.

🔑API Authorization
⚙️Parameters (1)
📡
No Response Yet

Configure parameters in the Request tab and click Send Request below.

Request
curl -X GET "https://api.twexapi.io/x/article/string/markdown" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
"string"