Recent search
GET
/2/tweets/search/recentReturns Tweets from the last 7 days that match a search query.
Request
One query/rule/filter for matching Tweets. Up to 512 characters.
YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute).
YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute).
Returns results with a Tweet ID greater than (that is, more recent than) the specified ID.
Returns results with a Tweet ID less than (that is, older than) the specified ID.
The maximum number of search results to be returned by a request.
This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.
A comma separated list of fields to expand.
A comma separated list of Tweet fields to display.
A comma separated list of User fields to display.
A comma separated list of Media fields to display.
A comma separated list of Place fields to display.
A comma separated list of Poll fields to display.
Request samples
Responses
Specifies the type of attachments (if any) present in this Tweet.
Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
Creation time of the Tweet.
The location tagged on the Tweet, if the user provided one.
Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
Language of the Tweet, if detected by Twitter. Returned as a BCP47 language tag.
Nonpublic engagement metrics for the Tweet at the time of the request.
Organic nonpublic engagement metrics for the Tweet at the time of the request.
Indicates if this Tweet contains URLs marked as sensitive, for example content suitable for mature audiences.
Promoted nonpublic engagement metrics for the Tweet at the time of the request.
Engagement metrics for the Tweet at the time of the request.
A list of Tweets this Tweet refers to. For example, if the parent Tweet is a Retweet, a Quoted Tweet or a Reply, it will include the related Tweet referenced to by its parent.
Shows who can reply a Tweet. Fields returned are everyone, mentioned_users, and following.
The name of the app the user Tweeted from.
The content of the Tweet.
Indicates withholding details for withheld content.
A generic problem with no additional information beyond that provided by the HTTP status code.
A problem that indicates this request is invalid.
A problem that indicates your client is forbidden from making this request.
A problem that indicates that a given Tweet, User, etc. does not exist.
A problem that indicates a particular Tweet, User, etc. is not available to you.
A problem that indicates you are not allowed to see a particular Tweet, User, etc.
A problem that indicates that you are not allowed to see a particular field on a Tweet, User, etc.
A problem that indicates that the resource requested violates the precepts of this API.
A problem that indicates that the authentication used is not supported.
A problem that indicates that a usage cap has been exceeded.
A problem that indicates something is wrong with the connection
Your client has gone away.
You have been disconnected for operational reasons.
You have exceeded the maximum number of rules.
The rule you have submitted is invalid.
The rule you have submitted is a duplicate.
You cannot create a new job if one is already in progress.
Most recent Tweet Id returned by search query
This value is used to get the next 'page' of results by providing it to the next_token parameter.
Oldest Tweet Id returned by search query
Number of search query results