The X API returns posts and related metadata from X/Twitter: keyword search, a user's posts, replies, retweeters, and trends.
The query string supports X's full operator syntax: from:, to:, since:, min_faves:, exact phrases, and boolean logic. The complete list is in X query syntax.
| Endpoint | Returns |
|---|---|
GET /twitter/post | A single post by ID. |
GET /twitter/user/posts | A user's recent posts. |
GET /twitter/replies · /twitter/replies/post | Replies, by user or by post. |
GET /twitter/post/retweeters | Who retweeted a post. |
GET /twitter/urls | Posts linking to a URL. |
GET /twitter/trends | Current trends. |
For semantic search over posts with AI ranking, use the Search API with "tools": ["twitter"] instead. It answers a prompt, while these endpoints match queries exactly.
Parameters and response schemas are in the API Reference.