# Twitter/X User Timeline API

> Twitter/X User Timeline API is a paid API for AI agents from twitter.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14, last successful call 2026-08-06).

Returns a paginated timeline of posts (tweets) from a specified public X (Twitter) user account.

## Facts

- Endpoint: GET https://twitter.use.x402atlas.com/user-tweets
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-08-06
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twitter-x-user-timeline-api-d219dfe4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lxtYGcIf4qmkFEEYNHP3U

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 twitter-x-user-timeline-api-d219dfe4
```

Example prompt: Can you pull the recent tweets from @elonmusk's timeline on X so I can see what he's been posting lately?

## When to prefer this

Use this endpoint when you need the chronological post history of a specific known X user (by username). Prefer this over search endpoints when you want all posts from one user rather than topic-filtered results, and over the replies or media-specific endpoints when you want the full general timeline including text posts.

## Known failure modes

- Invalid or nonexistent username returns empty data or an error
- Private/protected accounts return no tweets
- Rate limiting from the underlying X API may cause failures or empty responses
- Malformed username (wrong pattern) rejected by input validation
- Account suspended or deactivated returns no results

## How this service works

Get a paginated timeline of posts from an X user.

## Output

Returns a JSON object containing an array of post/tweet objects with full tweet metadata, a total result_count integer, a queried_at ISO 8601 timestamp, and an optional opaque cursor string for fetching 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",
       "pattern": "^@?[A-Za-z0-9_]{1,15}$",
       "maxLength": 16,
       "description": "X username, with or without a leading @"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data",
      "result_count"
     ],
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "additionalProperties": true
       }
      },
      "cursor": {
       "type": "string",
       "description": "Opaque cursor for the next page, when supplied by X"
      },
      "queried_at": {
       "type": "string",
       "format": "date-time"
      },
      "result_count": {
       "type": "integer",
       "minimum": 0
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "user": {
     "name": "Bill Gates",
     "id_str": "50393960",
     "screen_name": "BillGates"
    },
    "id_str": "1903602810652082591",
    "full_text": "Example X post",
    "created_at": "Sun Mar 23 12:00:00 +0000 2025",
    "reply_count": 8,
    "retweet_count": 15,
    "favorite_count": 120
   }
  ],
  "cursor": "NEXT_PAGE_CURSOR",
  "queried_at": "2026-07-26T12:00:00Z",
  "result_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twitter-x-user-timeline-api-d219dfe4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twitter.use.x402atlas.com](https://www.zero.xyz/host/twitter.use.x402atlas.com/llms.txt)
