# X Data Gateway – User Profile by Username

> X Data Gateway – User Profile by Username is a paid API for AI agents from x-data-gateway.annushka1190.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Fetches a Twitter/X user's public profile data (ID, display name, follower count, etc.) given their username handle.

## Facts

- Endpoint: GET https://x-data-gateway.annushka1190.workers.dev/users/by/username
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-data-gateway-user-profile-by-username-7a9493c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uGOnRRVPyLc9zIbgjTJt8

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 x-data-gateway-user-profile-by-username-7a9493c2
```

Example prompt: Can you look up the Twitter profile for the username 'naval' and tell me their follower count and user ID?

## When to prefer this

Use this endpoint when you need quick, pay-per-request access to Twitter/X user profile data without setting up an official Twitter API account or managing API keys. Ideal for AI agents that need occasional profile lookups in USDC microtransactions via x402 protocol.

## Known failure modes

- Username not found — returns an error if the handle does not exist or has been deactivated
- Rate limiting or payment failure — x402 payment may be rejected if USDC balance is insufficient
- Private or suspended accounts may return no data or a restricted response
- Malformed username (e.g. including @ symbol) may return an error

## How this service works

Live X/Twitter read API plus Base market intel for AI agents: profiles, search, timelines, replies, followers; Base gas, spot prices, token meta/pairs, Base token verdict cards, trending, DefiLlama TVL, wallet intel, x402 probe and text utilities. REST + MCP. Pay per call in USDC via x402 on Base and Solana — no API keys. Free upstream data + local scoring.

## Output

Returns a JSON object with the user's numeric ID, username, display name, and followers count for the requested X handle.

## 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",
     "required": [
      "username"
     ],
     "properties": {
      "username": {
       "type": "string",
       "description": "X handle without @"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": "44196397",
   "username": "elonmusk",
   "followersCount": 200000000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-data-gateway-user-profile-by-username-7a9493c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x-data-gateway.annushka1190.workers.dev](https://www.zero.xyz/host/x-data-gateway.annushka1190.workers.dev/llms.txt)
