X (Twitter) Search
x_searchSearch X/Twitter posts, accounts, and threads by keyword, user, or post ID to retrieve attributed content and diagnostics.
Instructions
Find X/Twitter posts, account material or available thread content. Credential-free retrieval is supported; configured authentication can improve coverage. Results include source attribution and diagnostics. Author/date filters require verifiable metadata; unverified candidates are omitted. Coverage may be incomplete, stale or empty. A post sample does not establish platform-wide sentiment, and a thread result need not contain the full conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Mode: keyword (default) or semantic uses query; user uses username; thread uses post_id | |
| query | No | Search terms and X filters (e.g. from:OpenAI), or a natural-language topic for semantic mode | |
| post_id | No | Real X post ID or status URL for type=thread | |
| to_date | No | Inclusive end date, YYYY-MM-DD (UTC) | |
| username | No | X account handle for type=user | |
| from_date | No | Inclusive start date, YYYY-MM-DD (UTC) | |
| max_results | No | Requested result limit, 1–10 | |
| allowed_x_handles | No | Only these authors; mutually exclusive with excluded_x_handles | |
| excluded_x_handles | No | Exclude these authors; mutually exclusive with allowed_x_handles |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | Yes | ||
| note | No | ||
| items | Yes | ||
| tookMs | Yes | ||
| results | Yes | ||
| cacheHit | No | ||
| inFlight | No | ||
| warnings | No | ||
| engineStats | No | ||
| enginesUsed | No |