# Surplus Intelligence X/Twitter User Lookup

> Surplus Intelligence X/Twitter User Lookup is a paid API for AI agents from www.surplusintelligence.ai, paid per call via x402, $0.032400/call, status unknown (last checked 2026-09-15).

Looks up Twitter/X user profile data by numeric user ID(s) via the X/Twitter API v2, proxied through Surplus Intelligence with x402 micropayment.

## Facts

- Endpoint: GET https://www.surplusintelligence.ai/x402/api/twitter/v2/users
- Price: $0.032400/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/www-surplusintelligence-ai-b3150c2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iwbKU-htYj8DHIDGTEaLY

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 www-surplusintelligence-ai-b3150c2e
```

Example prompt: Look up the Twitter/X user profiles for these user IDs: 12345678, 87654321, 11223344 — I need their profile data from the X API v2.

## When to prefer this

Use this endpoint when you have one or more numeric X/Twitter user IDs and need to resolve them to profile data, especially in agentic workflows requiring micropayment-based API access without managing Twitter API credentials directly.

## Known failure modes

- Invalid or malformed user IDs return error objects in the errors array
- Non-existent user IDs return no data entry for that ID
- Missing 'ids' query parameter causes request failure
- Rate limits or upstream X API errors propagate as HTTP error responses
- Payment failure (x402) prevents request from completing

## How this service works

X/Twitter API v2 via Surplus Intelligence: User lookup (1 unit)

## Output

Returns a JSON object with a 'data' array containing profile information for the requested user IDs, plus optional 'meta' and 'errors' fields following the X/Twitter API v2 response format.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "ids": "123456789,987654321,111222333"
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated X/Twitter user IDs."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {},
      "meta": {
       "type": "object"
      },
      "errors": {
       "type": "array"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "errors"
 ],
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "name",
     "username"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "username": {
      "type": "string"
     }
    }
   }
  },
  "errors": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "type",
     "title",
     "value",
     "detail",
     "parameter",
     "resource_id",
     "resource_type"
    ],
    "properties": {
     "type": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "value": {
      "type": "string"
     },
     "detail": {
      "type": "string"
     },
     "parameter": {
      "type": "string"
     },
     "resource_id": {
      "type": "string"
     },
     "resource_type": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/www-surplusintelligence-ai-b3150c2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.surplusintelligence.ai](https://www.zero.xyz/host/www.surplusintelligence.ai/llms.txt)
