# twit.sh Twitter/X User Profile Lookup by Username

> twit.sh Twitter/X User Profile Lookup by Username is a paid API for AI agents from twit.sh, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches a Twitter/X user's public profile data (name, bio, follower counts, tweet count) by their screen name

## Facts

- Endpoint: GET https://twit.sh/users/by/username
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twit-sh-twitter-x-user-profile-lookup-by-username-775d6642
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ee8oR3C9QCB5XN08ksGM4

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 twit-sh-twitter-x-user-profile-lookup-by-username-775d6642
```

Example prompt: Can you pull up the Twitter profile for @halfin — I want to see their bio, follower count, and how many tweets they've posted?

## When to prefer this

Choose this endpoint when you need real-time Twitter/X user profile data without managing OAuth credentials or API keys. It is ideal for AI agents that need to enrich a dataset with social profile information, verify that a Twitter account exists, or retrieve follower/engagement metrics on demand. It is payment-per-call via USDC on Base, making it well-suited for low-volume or bursty lookups without subscription overhead. Prefer this over the official Twitter API when you want zero-setup access or are building autonomous agents that self-fund via x402.

## Known failure modes

- Username not found — returns a 404 or empty data object if the account does not exist or has been suspended
- Payment failure — x402 micropayment in USDC not processed, request rejected before data is returned
- Rate limiting — upstream Twitter/X API quota exceeded, may return a 429 or error response
- Private/protected account — public metrics may be unavailable or limited for non-public accounts
- Typo in username — silently returns no results if the username string is invalid or misspelled

## How this service works

Real-time Twitter/X data for AI agents. No sign-up, no API keys. Pay per request in USDC on Base via x402. Fully autonomous.

## Output

A JSON object containing the user's numeric Twitter ID, display name, username, verified status, bio/description text, and public engagement metrics including follower count, following count, total tweet count, and total like count.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "username"
     ],
     "properties": {
      "username": {
       "type": "string",
       "description": "Twitter screen name 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": "9253672",
   "name": "Hal Finney",
   "username": "halfin",
   "verified": false,
   "description": "Running bitcoin.",
   "public_metrics": {
    "like_count": 300,
    "tweet_count": 600,
    "followers_count": 134000,
    "following_count": 200
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-twitter-x-user-profile-lookup-by-username-775d6642/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twit.sh](https://www.zero.xyz/host/twit.sh/llms.txt)
