# X/Twitter Full-Archive Tweet Search via Surplus Intelligence

> X/Twitter Full-Archive Tweet Search via Surplus Intelligence is a paid API for AI agents from www.surplusintelligence.ai, paid per call via x402, $0.052000/call, status unknown (last checked 2026-10-11).

Searches the full archive of all public tweets on X/Twitter using a query string, returning matching tweets and metadata

## Facts

- Endpoint: GET https://www.surplusintelligence.ai/x402/api/twitter/v2/tweets/search/all?utm_source=zero.xyz
- Price: $0.052000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/www-surplusintelligence-ai-f69f713b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vkUrRk_3xiqOKayFf692D

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-f69f713b
```

Example prompt: Search the full X/Twitter archive for tweets mentioning 'climate change' using the query '"climate change" -is:retweet lang:en' and return up to 50 results.

## When to prefer this

Use this endpoint when you need to search the complete historical archive of all public tweets — not just the recent 7-day window — with support for full X/Twitter query syntax including operators. Prefer this over recent-search when historical data is needed, and over tweet-counts endpoints when you need actual tweet content rather than just volume metrics.

## Known failure modes

- Invalid or malformed search query returns an error response
- max_results outside 1-100 range causes validation failure
- Authentication/payment failure returns 402 Payment Required
- Rate limits exceeded returns 429 Too Many Requests
- Query too complex or long may be rejected by X API
- Network timeout on large result sets

## How this service works

X/Twitter API v2 via Surplus Intelligence: Tweet search (10 units)

## Output

Returns a JSON object with an array of tweet data objects matching the query, a meta object with pagination info (next_token, result_count), and optionally an errors array if any issues occurred.

## Example request

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

## 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": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "X/Twitter full-archive search query."
      },
      "max_results": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Maximum number of results to return."
      }
     },
     "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",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "edit_history_tweet_ids"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "edit_history_tweet_ids": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "newest_id",
    "oldest_id",
    "next_token",
    "result_count"
   ],
   "properties": {
    "newest_id": {
     "type": "string"
    },
    "oldest_id": {
     "type": "string"
    },
    "next_token": {
     "type": "string"
    },
    "result_count": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/www-surplusintelligence-ai-f69f713b/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)
