Api Endpoint

twitr.sh

Search X/Twitter tweets with the full operator set — keyword, exact phrase, from-user, language, date range, media type, minimum likes/retweets, verified-only — or search user profiles by keyword. Billed per tweet returned against your resultsLimit cap. Built for tracking what people say about a topic, brand, or ticker in real time.

Open interactive test console

Offering

Provider
twitr.sh
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Social Intelligence
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://twitr.sh/api/tools/x_search
MIME type
application/json
First seen
2026-10-16T01:50:53.972Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.024 USDC
Atomic price: 24000 · Network: eip155:8453 · Asset: USDC · Scheme: upto
Raw x402 terms
[
  {
    "scheme": "upto",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "24000",
    "payTo": "0xb5194A98DbDBb7028B585Db26B972e7F0F3f826A"
  }
]

Observed health

Status
Healthy
Latest latency
111 ms
Average latency
435 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "search-tweets",
            "search-users"
          ],
          "description": "Search tweets (default) or users."
        },
        "q": {
          "type": "string",
          "description": "Search query (X operator syntax supported for tweets)."
        },
        "resultsLimit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000,
          "description": "search-tweets: MANDATORY max tweets returned, billed per tweet."
        },
        "cursor": {
          "type": "string",
          "description": "search-users: pagination cursor from a previous call's report.next_cursor."
        },
        "fromUser": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "sinceDate": {
          "type": "string",
          "description": "YYYY-MM-DD"
        },
        "untilDate": {
          "type": "string",
          "description": "YYYY-MM-DD"
        },
        "mediaType": {
          "type": "string",
          "enum": [
            "images",
            "videos",
            "gifs",
            "media"
          ]
        },
        "minFaves": {
          "type": "integer"
        },
        "minRetweets": {
          "type": "integer"
        },
        "minReplies": {
          "type": "integer"
        },
        "verifiedOnly": {
          "type": "boolean"
        },
        "exactPhrase": {
          "type": "string"
        },
        "excludeWords": {
          "type": "string"
        },
        "advancedQuery": {
          "type": "string",
          "description": "Raw X search operator string appended to q."
        }
      },
      "required": [
        "q"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "search-users"
              }
            }
          },
          "then": {},
          "else": {
            "required": [
              "resultsLimit"
            ]
          }
        }
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "allOf": [
            {
              "else": {
                "required": [
                  "resultsLimit"
                ]
              },
              "if": {
                "properties": {
                  "type": {
                    "const": "search-users"
                  }
                }
              },
              "then": {}
            }
          ],
          "properties": {
            "advancedQuery": {
              "description": "Raw X search operator string appended to q.",
              "type": "string"
            },
            "cursor": {
              "description": "search-users: pagination cursor from a previous call's report.next_cursor.",
              "type": "string"
            },
            "exactPhrase": {
              "type": "string"
            },
            "excludeWords": {
              "type": "string"
            },
            "fromUser": {
              "type": "string"
            },
            "language": {
              "type": "string"
            },
            "mediaType": {
              "enum": [
                "images",
                "videos",
                "gifs",
                "media"
              ],
              "type": "string"
            },
            "minFaves": {
              "type": "integer"
            },
            "minReplies": {
              "type": "integer"
            },
            "minRetweets": {
              "type": "integer"
            },
            "q": {
              "description": "Search query (X operator syntax supported for tweets).",
              "type": "string"
            },
            "resultsLimit": {
              "description": "search-tweets: MANDATORY max tweets returned, billed per tweet.",
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            },
            "sinceDate": {
              "description": "YYYY-MM-DD",
              "type": "string"
            },
            "type": {
              "description": "Search tweets (default) or users.",
              "enum": [
                "search-tweets",
                "search-users"
              ],
              "type": "string"
            },
            "untilDate": {
              "description": "YYYY-MM-DD",
              "type": "string"
            },
            "verifiedOnly": {
              "type": "boolean"
            }
          },
          "required": [
            "q"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "duration": {
              "description": "Run duration in seconds.",
              "type": "integer"
            },
            "items": {
              "description": "Returned items. Shape varies per tool — see each tool's outputSample for a concrete example.",
              "items": {
                "type": "object"
              },
              "type": "array"
            },
            "payment": {
              "description": "Settlement summary (protocol, amount, currency).",
              "type": "object"
            },
            "runId": {
              "description": "Run ID for debugging/audit.",
              "type": "string"
            }
          },
          "required": [
            "items"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}