Search X posts
x_search_tweetsSearch recent X posts with X’s search operators (needs logged-in sessions).
Search posts with X’s own query syntax (from:, to:, since:, until:, min_faves:, lang:, filter:images, "exact phrase", -exclude, OR). For a hashtag pass #tag; for mentions of an account @handle -from:handle; for quotes of a post quoted_tweet_id:. product=latest (default) is newest first; top is X’s ranking. since/until add X’s since_time:/until_time:. Reads X’s logged-in web app through our account pool. While the pool is not configured on this deployment it answers 503 upstream_unavailable with a hint, and is never charged.
Cost: 10 credits per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "<q>"
},
"name": "x_search_tweets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | X search query. | |
| after | No | Cursor: the previous page's `meta.next_token`. | |
| since | No | Only posts on or after this time (sent to X as since_time:): YYYY-MM-DD (UTC) or an ISO 8601 timestamp. | |
| until | No | Only posts on or before this time (sent to X as until_time:): YYYY-MM-DD (UTC) or an ISO 8601 timestamp. | |
| product | No | latest (newest first, default) or top. |