# x402.twit.sh Twitter/X User Search

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

Search Twitter/X for user accounts matching a keyword or phrase, returning paginated user profiles

## Facts

- Endpoint: GET https://x402.twit.sh/users/search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-29
- Last successful call: 2026-09-30
- Success rate: 93% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 17
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-twit-sh-571a421b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8wxo_9WlgC4iLlrbl49tc

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 x402-twit-sh-571a421b
```

Example prompt: Can you find me Twitter/X user accounts related to 'renewable energy' — I want to discover people or organizations posting about that topic?

## When to prefer this

Use this endpoint when you need to discover Twitter/X user accounts by topic, name, or keyword — especially for influencer research, community mapping, or finding experts in a subject area. Prefer this over follower/following endpoints when you don't have a specific user ID and need to explore accounts by interest or identity.

## Known failure modes

- Missing required 'query' parameter returns a 400 error
- Invalid or expired next_token returns a pagination error
- Empty result set when no users match the query
- Rate limiting or payment failure (402) if USDC payment not provided
- Query too long or containing unsupported characters may return an error

## How this service works

Search Twitter/X for user accounts matching a keyword or phrase. Returns up to 20 matching user profiles per page with pagination support. Useful for discovering users by topic, name, or keyword. Query params: query (string, required) - search keyword or phrase; next_token (string, optional) - pagination cursor from previous response, e.g. GET /users/search?query=bitcoin. Returns X v2 API-compatible JSON.

## Output

Returns up to 20 Twitter/X user profiles per page in X v2 API-compatible JSON, including handles, display names, bios, and follower counts, plus a next_token cursor for paginating through additional results.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "query": "artificial intelligence"
  }
 }
}
```

## 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/x402-twit-sh-571a421b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.twit.sh](https://www.zero.xyz/host/x402.twit.sh/llms.txt)
