# X User Timeline by Handle

> X User Timeline by Handle is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Returns the recent public post timeline for a given X (Twitter) username via X API v2, optionally including retweets.

## Facts

- Endpoint: POST https://x402.agentutility.ai/x-user-timeline?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-user-timeline-by-handle-cf19d216
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FHgNBEJBrH1TRM_uFdnTC

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 x-user-timeline-by-handle-cf19d216 -d '<json body>'
```

Example prompt: Can you pull the recent public posts from @paulg's X timeline — include retweets too so I get the full picture?

## When to prefer this

Use this endpoint when you need the public post timeline for a specific X user identified by their username/handle. Prefer it over general web search when you need structured tweet data with metadata, or when you want consistent programmatic access to a user's feed without scraping. Ideal for monitoring, research, or enrichment tasks where the X handle is already known.

## Known failure modes

- Unknown or private X handle returns empty results or 404-style error
- X API rate limiting causes temporary failures
- Handle provided does not exist on X platform
- Account is suspended or deactivated, returning no results
- Network or upstream X API outage causes request failure

## How this service works

Returns the recent public post timeline for a known X handle. Same backend as user-tweets, listed for agents that need an X user timeline from a username; read-only X API v2, excludes retweets unless include_retweets=true. Use it as a social account feed or latest-public-posts-by-handle API.

## Output

A list of recent public tweets from the specified X handle, including tweet text, timestamps, and post metadata. Retweets are excluded by default but can be included by setting include_retweets=true. Returns read-only data sourced from X API v2.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "username"
     ],
     "properties": {
      "mode": {
       "enum": [
        "user_tweets"
       ],
       "type": "string",
       "description": "Optional. Operation mode; defaults to 'user_tweets' for this endpoint. Accepts search, user, tweets, users, or user_tweets."
      },
      "username": {
       "type": "string",
       "description": "X/Twitter handle, with or without @."
      },
      "max_results": {
       "type": "number",
       "description": "Number of recent posts to fetch. Clamped to 5-50."
      },
      "include_retweets": {
       "type": "boolean",
       "description": "Include retweets when true. Defaults false."
      },
      "pagination_token": {
       "type": "string",
       "description": "Optional X pagination token."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "mode": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "result_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "user_tweets",
  "source": "X API v2 user tweets timeline",
  "result_count": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-user-timeline-by-handle-cf19d216/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
