# AgentUtility Twitter User Tweets

> AgentUtility Twitter User Tweets 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).

Retrieves the recent tweet timeline for a specified Twitter/X user by username using the X API v2

## Facts

- Endpoint: POST https://x402.agentutility.ai/twitter-user-tweets
- 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-tweets-b77cd4c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ITXHxIGf8Gw9-GGY82i-U

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-tweets-b77cd4c7 -d '<json body>'
```

Example prompt: Fetch the last 10 tweets from the Twitter user @bankrbot and show me what they've been posting.

## When to prefer this

Use this endpoint when you need to programmatically retrieve recent tweets from a specific public Twitter/X account by username, especially in agentic workflows requiring pay-per-call USDC settlement over x402 with no OAuth setup on the caller's side.

## Known failure modes

- Username not found or account suspended — returns error or empty result
- Private/protected account — tweets not accessible
- X API v2 rate limit exceeded — request throttled or rejected
- Invalid username format — validation error
- Payment not settled — x402 payment failure blocks request

## How this service works

Looks up a Twitter user's recent public tweets by handle, with metrics and pagination. Same backend as user-tweets: resolves the username, then fetches recent public posts. Read-only, no account mutation. Use it as a public timeline lookup or latest-posts-by-handle API.

## Output

A JSON object containing the mode ('user_tweets'), the data source ('X API v2 user tweets timeline'), the queried username, and a result_count indicating how many tweets were returned, along with the tweet records themselves.

## 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"
      },
      "username": {
       "type": "string"
      },
      "result_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-twitter-user-tweets-b77cd4c7/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)
