# X/Twitter User Timeline Lookup via Surplus Intelligence

> X/Twitter User Timeline Lookup via Surplus Intelligence is a paid API for AI agents from www.surplusintelligence.ai, paid per call via x402, $0.101000/call, status unknown (last checked 2026-09-15).

Fetches the recent tweet timeline for a specific X/Twitter user by their numeric user ID, returning up to 100 tweets per call

## Facts

- Endpoint: GET https://www.surplusintelligence.ai/x402/api/twitter/v2/users/:userId/tweets
- Price: $0.101000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/www-surplusintelligence-ai-0c5842dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vgWjtXeULF60SglMcIvs9

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 www-surplusintelligence-ai-0c5842dd
```

Example prompt: Pull the last 20 tweets from Twitter user ID 44196397 so I can see what they've been posting recently.

## When to prefer this

Use this endpoint when you need the tweet timeline of a known user by their numeric Twitter/X user ID, especially in automated or agentic workflows that need to pay per-call via USDC without managing Twitter API credentials directly. Prefer this over direct Twitter API access when you want micro-payment billing or don't have your own Twitter developer account.

## Known failure modes

- Invalid or non-numeric userId returns an error from the Twitter API
- User account is suspended, private, or deleted — returns empty data or error
- max_results out of range (< 1 or > 100) causes a validation error
- Insufficient payment or expired x402 credentials result in a 402 payment error
- Rate limit exceeded on the underlying Twitter API returns a 429-like error
- User has no tweets — returns empty data array with meta

## How this service works

X/Twitter API v2 via Surplus Intelligence: User timeline (10 units)

## Output

Returns a JSON object with a 'data' array of tweet objects for the specified user, plus a 'meta' object containing pagination info such as result counts and next/previous tokens. May also include an 'errors' array if partial results or issues occur.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "userId": "44196397"
  },
  "queryParams": {
   "max_results": 20
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "userId"
     ],
     "properties": {
      "userId": {
       "type": "string",
       "description": "Numeric X/Twitter user ID."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "max_results": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Maximum number of results to return."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {},
      "meta": {
       "type": "object"
      },
      "errors": {
       "type": "array"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "edit_history_tweet_ids"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "edit_history_tweet_ids": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "newest_id",
    "oldest_id",
    "next_token",
    "result_count"
   ],
   "properties": {
    "newest_id": {
     "type": "string"
    },
    "oldest_id": {
     "type": "string"
    },
    "next_token": {
     "type": "string"
    },
    "result_count": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/www-surplusintelligence-ai-0c5842dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.surplusintelligence.ai](https://www.zero.xyz/host/www.surplusintelligence.ai/llms.txt)
