v11

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0112893437.0 KB
Tweets

Search tweets by query, Tweet ID, X status URL, or account date window

get/x/tweets/search

Query parameters

qstring required

Search query (keywords,

queryType'Latest' | 'Top'

Sort order - Latest (chronological) or Top (engagement-ranked)

cursorstring

Pagination cursor from previous response

sinceTimestring

ISO 8601 timestamp - only return tweets after this time

untilTimestring

ISO 8601 timestamp - only return tweets before this time

limitinteger

Max tweets to return (server paginates internally). Omit for single page (~20). This is an upper bound for paid authenticated calls: remaining credits can reduce the returned page size, and zero affordable results returns 402 insufficient_credits.

fromUserstring

Filter by author username.

toUserstring

Filter replies sent to a username.

mentioningstring

Filter tweets mentioning a username.

languagestring

Language code filter, e.g. en or tr.

sinceDatestring date

Start date in YYYY-MM-DD format.

untilDatestring date

End date in YYYY-MM-DD format.

mediaType'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none'

Filter by media type.

minFavesinteger

Minimum likes threshold.

minRetweetsinteger

Minimum retweets threshold.

minRepliesinteger

Minimum replies threshold.

minQuotesinteger

Minimum quote count threshold.

verifiedOnlyboolean

Only return tweets from verified authors.

replies'include' | 'exclude' | 'only'

Reply mode.

retweets'include' | 'exclude' | 'only'

Retweet mode.

quotes'include' | 'exclude' | 'only'

Quote mode.

exactPhrasestring

Exact phrase to match.

excludeWordsstring

Words or quoted phrases to exclude. Separate with spaces, commas, or lines.

anyWordsstring

Words or quoted phrases where any one can match. Separate with spaces, commas, or lines.

hashtagsstring

Hashtags separated by spaces, commas, or lines.

cashtagsstring

Cashtags separated by spaces, commas, or lines.

urlstring

URL substring or domain filter.

conversationIdstring

Conversation ID filter.

inReplyToTweetIdstring

Only replies to this tweet ID.

quotesOfTweetIdstring

Only quotes of this tweet ID.

retweetsOfTweetIdstring

Only retweets of this tweet ID.

listIdstring

Search within a list ID.

placestring

Search within a place ID.

placeCountrystring

Search within a country code.

pointRadiusstring

Geo point radius, e.g. -73.99 40.73 25mi.

boundingBoxstring

Geo bounding box, e.g. -74.1 40.6 -73.9 40.8.

advancedQuerystring

Raw advanced search query appended as-is.

Response

Search results

has_next_pageboolean required
next_cursorstring required

Example response

{
  "tweets": [
    {
      "id": "1234567890",
      "text": "Just launched our new feature!",
      "retweetCount": 5,
      "replyCount": 3,
      "likeCount": 42,
      "quoteCount": 1,
      "viewCount": 1500,
      "bookmarkCount": 2
    }
  ],
  "has_next_page": true,
  "next_cursor": "DAACCgACGRElMJcAAA"
}