# AgentUtility Twitter User Timeline (tweets-user)

> AgentUtility Twitter User Timeline (tweets-user) is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches the recent tweet timeline for a specified Twitter/X username using the X API v2 user_tweets endpoint.

## Facts

- Endpoint: POST https://x402.agentutility.ai/tweets-user
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-twitter-user-timeline-tweets-user-e1f917f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GiPrMV4r3q1Q5pFmGl8ld

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 agentutility-twitter-user-timeline-tweets-user-e1f917f4 -d '<json body>'
```

Example prompt: Can you pull the last 20 tweets from @elonmusk's Twitter timeline and show me what he's been posting about recently?

## When to prefer this

Use this endpoint when you need to programmatically fetch a Twitter user's public tweet timeline by username, especially within an agentic workflow that handles micropayments via the x402/USDC protocol. Prefer this over scraping or manual lookup when you need structured tweet data at low cost ($0.01 per call) without managing your own X API credentials.

## Known failure modes

- Invalid or non-existent username returns an error or empty result
- Private/protected Twitter accounts return no tweets
- X API rate limits may cause throttling or 429 errors
- Suspended accounts return an error response
- Network or upstream X API downtime causes failures
- Insufficient USDC balance causes payment failure via x402 protocol

## How this service works

Returns recent public tweets by username, using the same read-only X API v2 user_tweets backend as user-tweets. Exposed under the buyer wording used by /tweets/user-style clients. Use it as a tweets-by-username or Twitter user timeline API.

## Output

Returns a list of recent tweets from the specified user's timeline, including tweet text, tweet IDs, creation timestamps, and potentially engagement metrics (likes, retweets). Data comes from the X API v2 user_tweets endpoint and reflects the user's public posts.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "mode": {
       "type": "string",
       "enum": [
        "user_tweets"
       ],
       "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."
      },
      "pagination_token": {
       "type": "string",
       "description": "Optional X pagination token."
      },
      "include_retweets": {
       "type": "boolean",
       "description": "Include retweets when true. Defaults false."
      }
     },
     "required": [
      "username"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "mode": {
       "type": "string"
      },
      "result_count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## 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/agentutility-twitter-user-timeline-tweets-user-e1f917f4/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)
