GET
/
2
/
tweets
/
counts
/
recent

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

query
string
required

One query/rule/filter for matching Posts. Refer to https://t.co/rulelength to identify the max query length.

Required string length: 1 - 4096
start_time
string

YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Posts will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute).

end_time
string

YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Posts will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute).

since_id
string

Returns results with a Post ID greater than (that is, more recent than) the specified ID.

until_id
string

Returns results with a Post ID less than (that is, older than) the specified ID.

next_token
string

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.

Minimum length: 1
pagination_token
string

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.

Minimum length: 1
granularity
enum<string>
default: hour

The granularity for the search counts results.

Available options:
minute,
hour,
day
search_count.fields
enum<string>[]

A comma separated list of SearchCount fields to display.

Available options:
end,
start,
tweet_count

Response

200 - application/json
data
object[]
errors
object[]
meta
object