# Twit API User Search

> Twit API User Search is a paid API for AI agents from twit-api-production-de12.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Search for Twitter/X users by username or keyword query, returning matching user profiles.

## Facts

- Endpoint: GET https://twit-api-production-de12.up.railway.app/users/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twit-api-user-search-2fa2e01f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QtFIPSnZwxWGg9ZQWv3YP

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-api-user-search-2fa2e01f
```

Example prompt: Can you search Twitter/X for users matching 'elonmusk' and show me the top accounts that come up?

## When to prefer this

Use this endpoint when you need to discover or look up Twitter/X user accounts by username or keyword. Prefer this over tweet-search endpoints when the goal is finding people/accounts rather than finding specific tweets or content.

## Known failure modes

- Missing required 'query' parameter returns 400 error
- Invalid or expired next_token cursor returns pagination error
- Rate limiting or quota exceeded returns 429 or payment-required error
- No users found matching query returns empty result set
- Network or upstream Twitter API failure returns 500 error

## How this service works

Search for users on Twit by username or query.

## Output

Returns a list of Twitter/X user profiles matching the search query, including usernames, display names, and associated user metadata, with a pagination cursor for fetching 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-api-user-search-2fa2e01f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twit-api-production-de12.up.railway.app](https://www.zero.xyz/host/twit-api-production-de12.up.railway.app/llms.txt)
