Recent search counts
GET
/2/tweets/counts/recentReturns Tweet Counts from the last 7 days that match a search query.
Request
One query/rule/filter for matching Tweets. Up to 2048 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.
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.
The granularity for the search counts results.
Request samples
Responses
The end time of the bucket
The start time of the bucket
The count for the bucket
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.
This value is used to get the next 'page' of results by providing it to the next_token parameter.
Sum of search query count results
{
"data": [
{
"end": "2019-08-24T14:15:22.123Z",
"start": "2019-08-24T14:15:22.123Z",
"tweet_count": 0
}
],
"errors": [
{
"detail": "string",
"title": "string",
"status": 0,
"type": "about:blank"
}
],
"meta": {
"next_token": "string",
"total_tweet_count": 0
}
}