# twit.sh User Tweets Endpoint

> twit.sh User Tweets Endpoint is a paid API for AI agents from twit.sh, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches recent tweets from a specified Twitter/X user's timeline, paginated, in real-time without requiring API keys

## Facts

- Endpoint: GET https://twit.sh/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/twit-sh-user-tweets-endpoint-cb1f33ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XeftHuxqYJlgVb0pusQSM

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 twit-sh-user-tweets-endpoint-cb1f33ca
```

Example prompt: Can you pull the most recent tweets from @elonmusk on X and show me their text along with how many likes and retweets each got?

## When to prefer this

Choose this endpoint when you need real-time Twitter/X user timeline data without managing Twitter API credentials or OAuth flows. Ideal for autonomous AI agents that need pay-per-request access via USDC on Base (x402 protocol) with zero onboarding friction. Prefer this over direct Twitter API integration when you want stateless, keyless access and are already operating in a crypto-native payment context.

## Known failure modes

- Username not found or account suspended — likely returns empty data or 404-equivalent
- Invalid or expired next_token causing pagination failure
- Rate limiting or payment failure via x402 protocol causing request rejection
- Private/protected account returning no tweets
- Malformed username input causing query to fail

## How this service works

Real-time Twitter/X data for AI agents. No sign-up, no API keys. Pay per request in USDC on Base via x402. Fully autonomous.

## Output

Returns a JSON array of tweet objects under a 'data' key, each containing the tweet ID, full text, author object (id, name, username), ISO 8601 creation timestamp, and public metrics (like_count, quote_count, reply_count, retweet_count). Also includes a 'meta' object with a 'next_token' cursor for retrieving the next page of results.

## 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": [
      "username"
     ],
     "properties": {
      "username": {
       "type": "string",
       "description": "Twitter screen name (without @)"
      },
      "next_token": {
       "type": "string",
       "description": "Pagination cursor from previous response"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "1110302988",
    "text": "Running bitcoin",
    "author": {
     "id": "9253672",
     "name": "Hal Finney",
     "username": "halfin"
    },
    "created_at": "2009-01-11T03:39:18.000Z",
    "public_metrics": {
     "like_count": 134000,
     "quote_count": 3500,
     "reply_count": 5400,
     "retweet_count": 32000
    }
   }
  ],
  "meta": {
   "next_token": "abc123"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-user-tweets-endpoint-cb1f33ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twit.sh](https://www.zero.xyz/host/twit.sh/llms.txt)
