WEIR

X Articles API: Read Full Text, Markdown and Images

An X Articles API guide: why a post sharing a Twitter Article is only a t.co link, and how to get its title, full body as Markdown, and every image.


Published · Updated · 7 min read

Cover image: The whole Article, not a t.co link

To read an X Article through an API, ask for its Article data, because the post that shares it holds only a t.co link.

This guide is for developers and AI users who need the full text of X's long-form posts. You get the official X API route, then Weir's endpoint with curl, Python and an MCP tool. We run Weir.

Not a developer? Our guide to saving an X Article as a PDF or Markdown needs no code.

Fetch one Article as JSON:

curl --url https://api.weirapp.io/v1/x/posts/2056871280599847054/article \
  --header "Authorization: Bearer $WEIR_API_KEY"

The tutorial in five steps:

  1. Take the post idFrom the x.com/user/status/id link.
  2. Fetch the ArticleGET /v1/x/posts/{id}/article.
  3. Save it as MarkdownA 15-line Python function.
  4. Find more ArticlesSearch url:x.com/i/article, then fetch each.
  5. Ask your AI assistantThe MCP tool get_x_article.

Why does an X Article post show only a t.co link?

X Articles are long-form posts written on X. X's Help Center says they can hold "images, video, GIFs, posts, and links", plus headings and lists.

As of November 2026, only paying subscribers can publish them. X lists X Premium, Premium+, the business plans and the four paid plans of The X Subscription. Anyone can read a public one.

Publishing creates an ordinary post that carries the Article. That post's text is a short link and nothing else. Here is @XDevelopers' Article post, fetched as a post on 19 October:

{
  "id": "2056871280599847054",
  "text": "https://t.co/0KNlcVnsVD",
  "lang": "zxx",
  "entities": { "urls": ["http://x.com/i/article/2055126803224883200"] }
}

lang is zxx, the code for "no linguistic content". Developers on X's forum report the same: by default the text "is basically the t.co link for an Article".

Reading X Articles with the official X API

The official X API v2 does expose Articles. Its data dictionary lists an article post field, with the note "Use this to get the text and entities of an Article."

You request it with tweet.fields=article on a post lookup. Two caveats, as of October 2026:

  • Cost. A post read is $0.005, so one Article costs about half a cent, after you buy credits.
  • Shape. X's published spec types article as a bare object with no documented sub-fields. Check a real response before you build a parser.

If you already have X API access, this is the direct route, and X is the source of truth. Since June 2026, X's API can also draft and publish Articles. The X API pricing guide has the full rate card.

Step 1: Take the post id, not the Article id

Every Article has two ids, and lookups take the first:

  • The post id, 2056871280599847054, from x.com/XDevelopers/status/....
  • The Article's own id, 2055126803224883200, from x.com/i/article/....

Weir has two endpoints that take the post id:

Endpoint Returns
GET /v1/x/posts/{id} The post, with an article field when it carries one
GET /v1/x/posts/{id}/article Only the Article, plus post URL and author

Either costs 2 credits: 1 for the call and 1 for the post. A post that isn't an Article returns null for article on the first, and 404 on the second. Failed calls are free.

Step 2: Fetch the Article through the X Articles API

Run the curl command from the top. We ran it on 19 October; this is the response, trimmed:

{
  "data": {
    "id": "2055126803224883200",
    "title": "X API + Hermes via xurl skill",
    "publishedAt": "2026-05-19T22:55:02.000Z",
    "updatedAt": "2026-05-20T00:04:39.000Z",
    "markdown": "Hermes is an open-source AI agent from Nous Research that runs in your terminal. ...\n\n## Prerequisites\n\n- macOS or Linux\n...",
    "blocks": [{ "type": "header-two", "text": "Prerequisites", "depth": 0 }],
    "postUrl": "https://x.com/XDevelopers/status/2056871280599847054",
    "author": { "username": "XDevelopers" }
  }
}

The header said x-credits-charged: 2.

Here's what the Article object holds, per Weir's API reference:

Field What it holds
id, url The Article's own id and link
title, previewText The headline and the feed preview
coverImage id, type, url, width, height, or null
publishedAt, updatedAt ISO timestamps
text The full body as plain text
markdown The full body as Markdown
blocks X's own block structure
media Every image and video in the body

markdown is what most people want, for reading, storing or a language model. It keeps headings, lists, links, images, embedded posts, and even code blocks.

blocks is for rebuilding the exact layout. Each block's entities point to links, images and embedded posts.

Step 3: Save an X Article as Markdown with Python

This function takes a post id or an x.com/.../status/... URL and writes a .md file:

import os, re, requests

API = "https://api.weirapp.io"
HEADERS = {"Authorization": f"Bearer {os.environ['WEIR_API_KEY']}"}

def save_article(url_or_id):
    match = re.search(r"/status/(\d+)", url_or_id)  # not an /i/article/ link
    post_id = match.group(1) if match else url_or_id
    r = requests.get(f"{API}/v1/x/posts/{post_id}/article", headers=HEADERS, timeout=30)
    r.raise_for_status()  # 404: not an Article, or no such post
    a = r.json()["data"]
    name = re.sub(r"[^a-z0-9]+", "-", a["title"].lower()).strip("-") + ".md"
    with open(name, "w", encoding="utf-8") as f:
        f.write(f"# {a['title']}\n\nSource: {a['postUrl']}\n\n{a['markdown'] or ''}")
    return name

Call it with the link:

save_article("https://x.com/XDevelopers/status/2056871280599847054")
# writes x-api-hermes-via-xurl-skill.md

Images stay as remote pbs.twimg.com URLs. To keep them offline, download each media[].url.

Step 4: Find Articles first, then read them

Search with the operator url:x.com/i/article to find posts that carry Articles. We ran it with fromUsers set to @XDevelopers and @Safety, and every result was an Article. The same operator finds posts that link to any site.

def articles_from(users, limit=20):
    r = requests.post(f"{API}/v1/x/search", headers=HEADERS, timeout=30, json={
        "query": "url:x.com/i/article", "fromUsers": users, "limit": limit,
    })
    r.raise_for_status()
    ids = [p["id"] for p in r.json()["data"] if p.get("article")]
    full = []
    for post_id in ids:
        a = requests.get(f"{API}/v1/x/posts/{post_id}/article", headers=HEADERS, timeout=30)
        if a.ok:
            full.append(a.json()["data"])
    return full

Every post a search returns costs a credit, Article or not, so keep limit modest.

Step 5: Read X Articles from Claude or ChatGPT

Weir's MCP server exposes the same endpoint as the tool get_x_article. Connect Weir to Claude, ChatGPT or Cursor, as the MCP setup guide shows, then paste a link:

Summarise this X Article in five bullet points:
https://x.com/XDevelopers/status/2056871280599847054

The assistant calls get_x_article and works from markdown. Without the tool, it would see only the t.co link.

What it costs to read Articles at volume:

Reading 1,000 X Articles
Official X API$5
Weir, $5 pack$0.40
2credits per Article on Weir
2,500Article reads a month on the free credits

When not to use Weir

  • You need to publish Articles. Only X's own API drafts and publishes them.
  • The Article is for subscribers only. Weir reads public data, so it won't come back.
  • You need X's terms or X as your source of truth. Use the article post field.
  • You plan to republish. The author keeps the copyright. Summarising is different from copying, so link to the original. This isn't legal advice.

Authors can also edit an Article. updatedAt tells you when it last changed, so re-fetch when freshness matters.

For threads rather than Articles, see how to make a thread on X.

FAQ

Can the X API return the full text of an X Article?

Yes. The official X API v2 returns it in the article post field when you request tweet.fields=article. Weir returns it from GET /v1/x/posts/{id}/article, as plain text, Markdown and X's blocks.

Why is my Article post's text only a t.co link?

Because the post only shares the Article. Its text is a short link, and lang comes back as zxx. The body sits in the Article data, which you have to request separately.

Which id do I use for an X Article?

The post id, from the x.com/<user>/status/<id> link. The id in an x.com/i/article/ link is the Article's own id, and post lookups don't accept it.

Can I get the images in an X Article?

Yes. Weir's media field lists every image and video in the body, in order, with its URL, width and height. The Markdown also embeds the images as pbs.twimg.com links.

Sources