# glim.sh Twitter User Search

> glim.sh Twitter User Search is a paid API for AI agents from glim.sh, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13, last successful call 2026-07-16).

Search Twitter/X users by keyword or username query, returning matching user IDs and usernames without needing your own API keys.

## Facts

- Endpoint: POST https://glim.sh/api/v1/twitter/users/search
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-16
- Success rate: 100% of calls made through Zero
- Rating: 3.7 / 5 from 1 review
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-twitter-user-search-f075cbae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_95_BbxFxR1Lwuo8M51Bme

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 glim-sh-twitter-user-search-f075cbae -d '<json body>'
```

Example prompt: Search Twitter for up to 20 users matching 'AI researcher' and give me their usernames and IDs — use glim.sh so I don't need my own Twitter API key.

## When to prefer this

Choose this endpoint when you need to search Twitter/X users without maintaining your own Twitter API credentials or scraping infrastructure, and you want pay-per-call simplicity via x402 micropayments. Ideal for agents that occasionally need user discovery rather than high-volume continuous access.

## Known failure modes

- No users found for query — empty data array returned
- Invalid or missing count parameter — defaults applied or validation error
- Rate limiting or quota exceeded — HTTP 429 returned
- Payment not processed — HTTP 402 returned requiring USDC payment
- Twitter API upstream unavailable — 5xx error propagated

## How this service works

Search users by keyword

## Output

A JSON object with a `data` array of matched Twitter users (each with `id` and `username`) and a `meta` object containing `result_count` indicating how many users were returned.

## Example request

```json
{
 "q": "artificial intelligence",
 "count": 20
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "minLength": 1,
       "description": "User search query"
      },
      "cursor": {
       "type": "string",
       "description": "Pagination cursor. Ranking is strongest on page 1 - paged results under sort=Top trend toward recency (upstream behavior)."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "propertyNames": {
         "type": "string"
        },
        "additionalProperties": {}
       }
      },
      "meta": {
       "type": "object",
       "required": [
        "result_count"
       ],
       "properties": {
        "next_cursor": {
         "type": "string"
        },
        "result_count": {
         "type": "integer",
         "maximum": 9007199254740991,
         "minimum": -9007199254740991
        },
        "has_next_page": {
         "type": "boolean"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "44196397",
    "username": "cascade_fyi"
   }
  ],
  "meta": {
   "result_count": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glim-sh-twitter-user-search-f075cbae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from glim.sh](https://www.zero.xyz/host/glim.sh/llms.txt)
