# Simple X API - Get User by Username (samrags_)

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

Proxies the X (Twitter) API v2 endpoint to retrieve public user profile data for the username 'samrags_' via x402 micropayment.

## Facts

- Endpoint: GET https://simple-x-api.com/api/2/users/by/username/samrags_
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/simple-x-api-get-user-by-username-samrags-fda67d1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LzweUgj-UFOEAZbMgWMuh

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-samrags-fda67d1c
```

Example prompt: Can you look up the public X profile for the account @samrags_ and get me their user ID and profile details?

## When to prefer this

Use this endpoint when you need to resolve a specific known X username ('samrags_') to their full user profile object including user ID, especially in an automated or agent-driven workflow that supports x402 micropayment authorization. Prefer this over the generic sibling endpoint if you specifically want the samrags_ account profile, or when you need a pay-per-use proxy without managing X API credentials yourself.

## Known failure modes

- User not found (404) if the username does not exist or has been deleted
- Rate limiting or authentication errors from the upstream X API
- x402 payment authorization failure if wallet balance is insufficient
- Upstream X API downtime or changes to the v2 endpoint
- Username has changed or account has been suspended

## 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 username 'samrags_', including user ID, name, username, and any other public profile fields exposed by the X API v2 /users/by/username endpoint. Payment settles at X's public per-resource price, authorized up to $10.00 USDC.

## 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-samrags-fda67d1c/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)
