# twit.sh Twitter/X User Search

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

Search Twitter/X users by keyword or phrase and return matching user profiles with public metrics

## Facts

- Endpoint: GET https://twit.sh/users/search
- 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/twit-sh-twitter-x-user-search-ef787698
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MNITkz-i2os191VKgAyuy

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-search-ef787698
```

Example prompt: Search Twitter/X for users related to 'bitcoin' and give me their usernames, follower counts, and bios.

## When to prefer this

Use this endpoint when you need to search and discover Twitter/X user accounts by keyword without setting up Twitter API credentials. Ideal for AI agents that need autonomous, pay-per-use access to user search on X without OAuth flows or API key management. Prefer this over direct Twitter API access when running headless or in environments where credential management is impractical.

## Known failure modes

- No users found for the query — empty data array returned
- Invalid or expired next_token — pagination fails
- Query parameter missing — request rejected
- Payment failure via x402 — request blocked
- Twitter/X API rate limit reached upstream — temporary errors
- Network timeout on real-time data fetch

## 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

Returns a paginated list of Twitter/X user objects, each containing user ID, display name, username, verified status, bio/description, and public metrics (follower count, following count, tweet count, like count). Also includes a next_token for paginating through additional results.

## 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": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Search keyword or phrase"
      },
      "next_token": {
       "type": "string",
       "description": "Pagination cursor from previous response"
      }
     }
    }
   },
   "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
    }
   }
  ],
  "meta": {
   "next_token": "abc123"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-twitter-x-user-search-ef787698/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)
