Search tweets
search_tweetsSearch X like the search box. Supports X search operators in the query, e.g. from:user, to:user, "exact phrase", lang:en, since:2025-01-01, until:2025-02-01, min_faves:100, filter:media, -filter:replies. category Latest gives newest first; People returns accounts instead of tweets. Paginated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many results to request per page (default 20). X may return slightly more or fewer. | |
| cursor | No | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. | |
| format | No | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls, edit history, community notes). | |
| category | No | Result tab: Top (default), Latest, People, Photos or Videos. | |
| max_chars | No | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. | |
| searchItem | Yes | Search query, max 512 characters. May contain X search operators. |