Search X Posts
x_searchSearch X posts by keyword. One call returns up to 20 posts: text, author, likes, reposts, replies and timestamps. Costs 1 credit. Paid plans and pay-as-you-go only — trial keys get an error (the trial is TikTok only).
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": {
"query": "<query>"
},
"name": "x_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search term, e.g. 'dear person behind me hoodie'. | |
| cursor | No | Pagination cursor from a previous call. | |
| search_type | No | Result type, e.g. 'Top' or 'Latest'. Default 'Top'. | Top |