# Simple X API - Get User by ID

> Simple X API - Get User by ID is a paid API for AI agents from simple-x-api.com, paid per call via x402, $10/call, status unknown (last checked 2026-10-16).

Fetches public profile data for a specific X (Twitter) user by their numeric user ID via a paid x402 proxy of the X API v2 users endpoint.

## Facts

- Endpoint: GET https://simple-x-api.com/api/2/users/1024058552435003393?utm_source=zero.xyz
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/simple-x-api-get-user-by-id-806ca3f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_heCqqg5eXSl7Amivk5p-w

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 simple-x-api-get-user-by-id-806ca3f8
```

Example prompt: Look up the X profile for user ID 366942819 and tell me their username, display name, and bio.

## When to prefer this

Use this endpoint when you need to retrieve a specific X (Twitter) user's profile by their numeric user ID and the user ID is already known. This is a direct proxy of the X API v2 /users/:id endpoint, ideal when you want structured user profile data without managing your own X API credentials or OAuth tokens — payment is handled via x402 USDC.

## Known failure modes

- User ID not found: X API returns 404, no user object returned
- Invalid or non-numeric user ID: request rejected
- Payment authorization failure: x402 payment of up to $10 USDC not authorized
- Rate limit exceeded on underlying X API: upstream 429 error
- User account suspended or deactivated: X API returns empty or error response
- Network/proxy failure: upstream connection error to X API

## How this service works

Proxy the corresponding X API v2 endpoint. x402 authorizes up to $10.00; successful responses settle at X's public non-owned per-resource/per-action price.

## Output

Returns the X API v2 user object for the specified user ID, including username (handle), display name, profile bio, follower/following counts, account creation date, and other public profile fields as returned by the X API v2 /users/:id endpoint.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/simple-x-api-get-user-by-id-806ca3f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from simple-x-api.com](https://www.zero.xyz/host/simple-x-api.com/llms.txt)
