# SqueezeOS X (Twitter) Search API

> SqueezeOS X (Twitter) Search API is a paid API for AI agents from squeezeos-api.onrender.com, paid per call via x402, $0.0048/call, status unknown (last checked 2026-09-16).

Search recent public X (Twitter) posts with structured output including source IDs and timestamps, returning up to 10 results per query

## Facts

- Endpoint: GET https://squeezeos-api.onrender.com/api/x/search
- Price: $0.0048/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/squeezeos-x-twitter-search-api-5d57d204
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JfpjrUiPJRzcrfo1zRZVR

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 squeezeos-x-twitter-search-api-5d57d204
```

Example prompt: Search X for the latest 5 posts about 'NVIDIA earnings' and give me the results with their post IDs and timestamps.

## When to prefer this

Use this endpoint when you need structured, timestamped X post data with source IDs for a specific search query — especially useful for real-time social sentiment, news monitoring, or market intelligence workflows where provenance (post IDs) matters. Prefer this over generic web search when you specifically need X posts with metadata rather than web pages or news articles.

## Known failure modes

- Empty results if query matches no recent public posts
- Rate limiting or payment failure if USDC payment not processed
- Query too long if search string exceeds 512 characters
- Invalid enum value for 'type' parameter (must be 'Latest' or 'Top')
- max_results out of allowed range (must be string '1' through '10')
- X API downtime or throttling causing upstream failures

## How this service works

Public X/Twitter search API for AI agents. Search recent public posts by keyword without requiring the caller to maintain a separate X developer account.

## Output

A structured JSON response containing up to 10 X posts matching the query, each with post content, source IDs, and timestamps. Results can be filtered by Latest or Top post type.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 512,
       "minLength": 1,
       "description": "Public X search query Search intents: x search, twitter search, social search, public posts, social research."
      },
      "type": {
       "enum": [
        "Latest",
        "Top"
       ],
       "type": "string",
       "description": "Search intents: x search, twitter search, social search, public posts, social research."
      },
      "max_results": {
       "enum": [
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9",
        "10"
       ],
       "type": "string",
       "description": "Search intents: x search, twitter search, social search, public posts, social research."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "Latest",
  "query": "x402",
  "status": "ready",
  "product": "SML Public X Search",
  "results": [
   {
    "id": "<public-post-id>",
    "url": "https://x.com/<public-handle>/status/<public-post-id>",
    "text": "<public-post-text>",
    "author": {
     "username": "<public-handle>"
    },
    "created_at": "<source-timestamp>"
   }
  ],
  "provenance": {
   "provider": "twitterapis",
   "public_read_only": true
  },
  "result_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/squeezeos-x-twitter-search-api-5d57d204/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from squeezeos-api.onrender.com](https://www.zero.xyz/host/squeezeos-api.onrender.com/llms.txt)
