Twitter Search API
Search public posts on X, latest or top, with full post objects and X’s search operators.
https://api.endpointry.com/v1/twitter/searchTweets · showing 1 of 1
Happy Thanksgiving from the @Space_Station!
https://x.com/NASA/status/2124940993489162256
Likes 4,832Retweets 606Replies 171
Checking live calls…
What you get
Searches public posts, latest first or X’s top ranking, about 20 per page.
- Text — The full text, long posts included, with shortened links expanded and the links to attached media removed
- Lang — The language X detected
- Views — Null where X shows no view count
- Conversation ID — The id of the post that started the thread
- URLs — Links in the text, expanded
- Sensitive — Whether X marks the media as possibly sensitive
- Quoted tweet — The post this one quotes; null when it quotes nothing or the quoted post is gone
- Retweeted tweet — For a repost, the original post in full; its counts are the original’s
Use cases
What teams build with it
- Brand and keyword monitoring in near real time
- Social listening and trend research
- Finding posts from or mentioning specific accounts with from: and to:
- Feeding live social context into LLM and RAG pipelines
FAQ
Frequently asked questions
Which search operators work?
The ones X’s own search takes: from:, to:, lang:, since: and until:, "exact phrases", -exclusions, OR and hashtags.
What is the difference between latest and top?
latest returns matching posts newest first; top uses X’s own ranking of the most relevant and engaging posts.
Are ads included in results?
No. Promoted posts are left out, so every result matches your query.
What does a search with no matches return?
An empty tweets list with next_cursor null, not an error.
More from the Twitter (X) API
Try it on the free plan
One key covers the whole catalog, this endpoint included, starting on the free plan with no card.