data

fun PremiumSearch.data(    product: SearchProduct,     label: String,     query: String,     tag: String? = null,     fromDate: LocalDateTime? = null,     toDate: LocalDateTime? = null,     maxResults: Int? = null,     next: String? = null,     vararg options: Option): PremiumSearchJsonObjectApiAction<PremiumSearchData>

Returns a collection of relevant Tweets matching a specified query. To learn how to use Twitter Search effectively, please see the Premium search operators page for a list of available filter operators.

Receiver

PremiumSearch endpoint instance.

Return

PremiumSearchJsonObjectApiAction for PremiumSearchData model.

Parameters

product

Select either 30days or fullarchive.

label

The label associated with your search developer environment.

query

A UTF-8, URL-encoded search query of 500 characters maximum, including operators. Queries may additionally be limited by complexity.

tag

Returned tweets each have a list of MatchingRule whose value of tag is given one.

fromDate

Returns tweets created after the given datetime.

toDate

Returns tweets created before the given datetime.

maxResults

The number of tweets to return per page.

next

Returns the next page of results.

options

Optional. Custom parameters of this request.


fun PremiumSearchEnvironment.data(    query: String,     tag: String? = null,     fromDate: LocalDateTime? = null,     toDate: LocalDateTime? = null,     maxResults: Int? = null,     next: String? = null,     vararg options: Option): PremiumSearchJsonObjectApiAction<PremiumSearchData>

Returns a collection of relevant Tweets matching a specified query. To learn how to use Twitter Search effectively, please see the Premium search operators page for a list of available filter operators.

Receiver

PremiumSearchEnvironment endpoint instance.

Return

PremiumSearchJsonObjectApiAction for PremiumSearchData model.

Parameters

query

A UTF-8, URL-encoded search query of 500 characters maximum, including operators. Queries may additionally be limited by complexity.

tag

Returned tweets each have a list of MatchingRule whose value of tag is given one.

fromDate

Returns tweets created after the given datetime.

toDate

Returns tweets created before the given datetime.

maxResults

The number of tweets to return per page.

next

Returns the next page of results.

options

Optional. Custom parameters of this request.