# botsmith X User Timeline

> botsmith X User Timeline is a paid API for AI agents from x402.botsmith.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Fetches up to 20 latest posts from an X (Twitter) account as clean JSON with engagement metrics, hashtags, links, mentions, and pagination cursor.

## Facts

- Endpoint: GET https://x402.botsmith.dev/x/timeline?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/botsmith-x-user-timeline-76c1c2d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WtrDCan1mdCitZzpYkrBB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability botsmith-x-user-timeline-76c1c2d1
```

Example prompt: Pull the latest 20 tweets from @naval on X — include engagement metrics, hashtags, and any links — and show me the newest ones first.

## When to prefer this

Choose this endpoint when you need clean structured tweet data from a specific X user's timeline without requiring your own X API credentials or developer account. It is ideal for agents that need to monitor what a specific account is posting, extract content for analysis, or paginate through a user's post history cheaply ($0.01/call). Prefer the sibling X Tweet Search endpoint when you need keyword or advanced-search queries rather than a single account's feed.

## Known failure modes

- Invalid or non-existent handle returns an error or empty tweet array
- Private/suspended accounts cannot be fetched and return an error
- Rate limits or upstream X access issues may return a 5xx error
- Malformed cursor string causes a pagination error
- Payment failure (insufficient USDC balance) blocks the request via x402 protocol

## How this service works

X User Timeline ($0.01/call): Latest posts by an X (Twitter) account: up to 20 per call, newest first, as clean JSON with metrics, hashtags, links and mentions, plus a cursor for older posts. Replies excluded unless includeReplies=true. No X account or API key needed.

## Output

A JSON object containing the account handle, an array of up to 20 tweet objects (each with id, URL, full text, language, author details, engagement metrics — likes/retweets/replies/quotes/views — expanded links, hashtags, and @mentions), a hasNextPage boolean, and a nextCursor string for fetching the next page of older posts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "handle",
      "includeReplies"
     ],
     "properties": {
      "cursor": {
       "type": "string",
       "pattern": "^[A-Za-z0-9+/=_|-]{1,1000}$",
       "description": "Pagination cursor from a previous call"
      },
      "handle": {
       "type": "string",
       "pattern": "^@?[A-Za-z0-9_]{1,15}$",
       "description": "X handle, with or without the leading @"
      },
      "includeReplies": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string",
       "default": "false",
       "description": "Include the account's replies as well as its own posts"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "handle",
      "tweets",
      "hasNextPage",
      "nextCursor"
     ],
     "properties": {
      "handle": {
       "type": "string"
      },
      "tweets": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "url",
         "text",
         "createdAt",
         "lang",
         "author",
         "metrics",
         "hashtags",
         "links",
         "mentions"
        ],
        "properties": {
         "id": {
          "type": "string"
         },
         "url": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "lang": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "text": {
          "type": "string"
         },
         "links": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "Expanded outbound URLs"
         },
         "author": {
          "type": "object",
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/botsmith-x-user-timeline-76c1c2d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.botsmith.dev](https://www.zero.xyz/host/x402.botsmith.dev/llms.txt)
