Arguments
q
Character, search query of no greater than
500 characters maximum.
n
Numeric, specifying the total number of desired tweets to
return. Defaults to 100. Maximum number of tweets returned from
a single token is 18,000. See details for more information.
type
Character, specifies what type of search results
you would prefer to receive. The current default is
type = "mixed"
, which is a mix between the other two
valid values type = "recent"
and type = "popular"
.
max_id
Character, specifying the [oldest] status id beyond
which results should resume returning.
parse
Logical, indicating whether to return parsed
(data.frames) or nested list (fromJSON) object. By default,
parse = TRUE
saves users from the time
[and frustrations] associated with disentangling the Twitter
API return objects.
token
OAuth token (1.0 or 2.0). By default
token = NULL
fetches a non-exhausted token from
an environment variable tokens.
...
Futher arguments passed on to make_url
.
All named arguments that do not match the above arguments
(i.e., count, type, etc.) will be built into the request.
To return only English language tweets, for example, use
lang = "en"
. Or, to exclude retweets, use
include_rts = FALSE
. For more options see Twitter's
API documentation.