# ReadX Get Username API

> ReadX Get Username API is a paid API for AI agents from readx.sh, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Resolves a Twitter/X user identifier to their canonical username via a pay-per-call micropayment API

## Facts

- Endpoint: GET https://readx.sh/api/tools/get_username
- 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/readx-get-username-api-46bd97f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uyedMsTf3XGZK6KrbooIx

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 readx-get-username-api-46bd97f7
```

Example prompt: What's the Twitter/X username for user ID 12? Look it up via ReadX — no need for API keys, just pay per call.

## When to prefer this

Use this endpoint when you need to resolve a Twitter/X user identifier to a username without managing traditional API keys, and are comfortable paying $0.03 USDC per call via x402 micropayments on Base or Solana. Ideal for lightweight, on-demand username lookups in agent workflows.

## Known failure modes

- User ID not found — returns non-zero code
- Invalid or malformed user identifier — returns error code
- Payment failure via x402 micropayment — HTTP 402 response requiring USDC payment on Base or Solana
- Rate limiting or temporary service unavailability

## How this service works

Resolve a numeric user id to its current @username. Example: GET /api/tools/get_username?user_id=12

## Output

Returns a JSON object with a status code and a data object containing the resolved username string (e.g. {"code":0,"data":{"username":"jack"}})

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": {
   "username": "jack"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/readx-get-username-api-46bd97f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from readx.sh](https://www.zero.xyz/host/readx.sh/llms.txt)
