# Simple X API – Get User by Username

> Simple X API – Get User by Username 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).

Looks up a Twitter/X user's public profile information by their username via a proxied X API v2 endpoint, paid per-call via x402.

## Facts

- Endpoint: GET https://simple-x-api.com/api/2/users/by/username/jack?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-username-ef929be9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9FVkOmdj8aGop_uJl8W24

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-username-ef929be9
```

Example prompt: Can you look up the X profile info for the username 'jack' — I need their user ID and display name from the Twitter API.

## When to prefer this

Use this endpoint when you need to resolve a Twitter/X username to a user object (including user ID) via the X API v2 without managing your own X API credentials, and you are comfortable paying per-call via x402/USDC. Prefer this over direct X API access when you lack API keys or want a simple pay-per-use proxy.

## Known failure modes

- Username not found — X API returns a 404 or not-found error
- Payment authorization failure — x402 payment up to $10 not completed
- Username suspended or deactivated — X API returns an error indicating account unavailability
- Rate limit exceeded on the underlying X API — proxy returns a rate limit error
- Invalid username format — malformed input returns a validation error

## How this service works

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

## Output

Returns the X API v2 user object for the given username, including fields such as user ID, name, username, and potentially public account metadata as defined by the X API v2 /users/by/username 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-username-ef929be9/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)
