# How can an AI agent read posts on X (Twitter)?

Give the agent a tool that reads public X accounts and posts and returns compact records. With Trawl, `list_posts` with `x:@nasa` returns the newest posts with text, date, likes, replies, reposts and views in one call.

Give the agent a tool that reads public X accounts and posts and returns compact records. With Trawl, `list_posts` with `x:@nasa` returns the newest posts with text, date, likes, replies, reposts and views in one call.

## How it works

- `list_posts` reads an account’s newest posts or a hashtag (`x:#artemis`).
- `read_post` reads posts by URL, optionally with replies.
- `search_posts` takes X search syntax, for example `from:nasa lang:en`.
- `read_profile` reads bio, followers and counts of up to 25 accounts at once.

## A real example

@NASA on X, read on 3 December 2026.

The call

```
list_posts {"url":"x:@NASA","limit":2,"text_chars":50}
```

What the agent gets back (indented here; one line of JSON on the wire)

```json
2 posts · x · 3 credits · 9,997 left · fresh
{
  "author": {
    "name": "NASA",
    "handle": "NASA"
  },
  "items": [
    {
      "url": "https://x.com/NASA/status/2128238571848884457",
      "kind": "post",
      "text": "Our @NASAHubble telescope is gazing into the unive…[+170 chars]",
      "created_at": "2026-12-02T21:23Z",
      "stats": {
        "likes": 1673,
        "comments": 72,
        "shares": 239,
        "views": 286999
      },
      "media": "1 image",
      "lang": "en"
    },
    {
      "url": "https://x.com/NASA/status/2127855687975747659",
      "kind": "post",
      "text": "As December arrives, 2026 comes to a close. Here’s…[+209 chars]",
      "created_at": "2026-12-01T20:01Z",
      "stats": {
        "likes": 2316,
        "comments": 162,
        "shares": 393,
        "views": 893353
      },
      "media": "1 video",
      "lang": "en"
    }
  ]
}
```

## What it costs

Credits per call at current prices. Starter: $10 for 10,000 credits. Errors cost nothing; a repeat read from the cache costs 1 credit.

| Read | Credits | At Starter prices |
|---|---:|---:|
| 10 posts of an account (`list_posts`) | 11 | $0.011 |
| 10 search results (`search_posts`) | 11 | $0.011 |
| One account profile (`read_profile`) | 2 | $0.002 |

## Limits

- Up to 25 posts per call.
- Text is cut at 280 characters per item by default; `text_chars` raises it.
- Public data only: no private or logged-in content, no e-mail addresses or phone numbers.

## How to set it up

Paste `Fetch https://trawlmcp.com/setup.md and follow it to set me up with Trawl.` into your agent, or add the MCP server to your client yourself ([quickstart](/docs/quickstart)). Sign-in and payment happen in your browser; packs start at $10 and pack credits never expire.

## Compared with a general-purpose web-data MCP

On our 20 reading tasks, an agent using Apify’s hosted MCP server needed a median of 4 tool calls, 40.2 s and 53,063 characters of tool results per task. Trawl needed a median of 1 tool call, 19.2 s, 1,027 characters of tool results and 83,479 input tokens per task (19 of 20 passed; 20 tasks, 3 Dec 2026, Codex CLI, medians; our second run of the day). [Benchmark](/benchmark). [Full comparison](/compare/apify-mcp).

More on X: [accepted URLs, every tool and price](/docs/x).

> Written by Trawl. Trawl is not affiliated with or endorsed by X.

---
Updated 2026-12-03. HTML version: https://trawlmcp.com/answers/how-can-an-ai-agent-read-posts-on-x
