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).
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 |