count

fun PremiumSearch.count(    product: SearchProduct,     label: String,     query: String,     fromDate: LocalDateTime? = null,     toDate: LocalDateTime? = null,     bucket: SearchBucket? = null,     next: String? = null,     vararg options: Option): PremiumSearchJsonObjectApiAction<PremiumSearchCount>

Returns counts data Tweets for the 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 PremiumSearchCount 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.

fromDate

Returns tweets created after the given datetime.

toDate

Returns tweets created before the given datetime.

bucket

Returns count data for every day. hour or minute in the set timeframe.

next

Returns the next page of results.

options

Optional. Custom parameters of this request.


fun PremiumSearchEnvironment.count(    query: String,     fromDate: LocalDateTime? = null,     toDate: LocalDateTime? = null,     bucket: SearchBucket? = null,     next: String? = null,     vararg options: Option): PremiumSearchJsonObjectApiAction<PremiumSearchCount>

Returns counts data Tweets for the 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 PremiumSearchCount model.

Parameters

query

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

fromDate

Returns tweets created after the given datetime.

toDate

Returns tweets created before the given datetime.

bucket

Returns count data for every day. hour or minute in the set timeframe.

next

Returns the next page of results.

options

Optional. Custom parameters of this request.