# Twitter/X Full-Archive Tweet Counts (All Time) via Surplus Intelligence

> Twitter/X Full-Archive Tweet Counts (All Time) via Surplus Intelligence is a paid API for AI agents from www.surplusintelligence.ai, paid per call via x402, $0.012800/call, status unknown (last checked 2026-09-15).

Returns historical tweet count timeseries for any query across the full Twitter/X archive, bucketed by minute, hour, or day

## Facts

- Endpoint: GET https://www.surplusintelligence.ai/x402/api/twitter/v2/tweets/counts/all
- Price: $0.012800/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-8cd4b98d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sEkTOQgvhoY8fVJ7P_PDC

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-8cd4b98d
```

Example prompt: How many tweets per day mentioned 'ChatGPT' across the full Twitter archive? Use a day-level granularity for the query 'ChatGPT'.

## When to prefer this

Use this endpoint when you need historical tweet volume data spanning the entire Twitter archive (not just the last 7 days). Prefer this over the 'recent counts' endpoint when analyzing long-term trends, brand history, or event impact over months or years. Ideal for analytics dashboards, trend research, or competitive intelligence requiring full historical data.

## Known failure modes

- Invalid or unsupported query syntax returns 400-level error
- Query exceeds character or complexity limits
- Granularity value not in allowed enum (minute/hour/day)
- Insufficient USDC balance or payment failure via x402 protocol
- Rate limiting from upstream Twitter API
- Missing required 'query' parameter returns validation error

## How this service works

X/Twitter API v2 via Surplus Intelligence: Tweet counts all (1 unit)

## Output

Returns a time-series array of tweet count buckets matching the query, with each bucket containing a start/end timestamp and tweet count, plus metadata about the total count and pagination token. May also include error details if the query is malformed.

## Example request

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

## 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 counts query."
      },
      "granularity": {
       "enum": [
        "minute",
        "hour",
        "day"
       ],
       "type": "string",
       "description": "Count bucket granularity."
      }
     },
     "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": [
     "end",
     "start",
     "tweet_count"
    ],
    "properties": {
     "end": {
      "type": "string"
     },
     "start": {
      "type": "string"
     },
     "tweet_count": {
      "type": "number"
     }
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "total_tweet_count"
   ],
   "properties": {
    "total_tweet_count": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

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