This endpoint was previously deprecated and remains available for historical
reference. The underlying data source is no longer updated and no new data is
being ingested. For more details, refer to the "Endpoints kept for historical
reference" section of vignette("migration-guide"), and visit the V5 signals documentation.
API docs: https://cmu-delphi.github.io/delphi-epidata/api/twitter.html
This is the API documentation for accessing the Twitter Stream endpoint of Delphi’s epidemiological data. Sourced from Healthtweets
Usage
pvt_twitter(
auth,
locations,
...,
time_type = c("day", "week"),
time_values = "*",
fetch_args = fetch_args_list()
)Arguments
- auth
string. Your restricted access key (not the same as API key).
- locations
character. List of locations to fetch. See the codes of the US regions and states # nolint for details.
- ...
not used for values, forces later arguments to bind by name
- time_type
string. The temporal resolution of the data (either "day" or "week", depending on signal).
- time_values
timeset. Dates or epiweeks to fetch. Supportsepirange()and defaults to all ("*") dates.- fetch_args
fetch_args_list(). Additional arguments to pass tofetch(). Seefetch_args_list()for details.
See also
For example queries showing how to discover signals and build calls,
see vignette("signal-discovery", package = "epidatr").
Examples
if (FALSE) { # \dontrun{
pvt_twitter(
auth = Sys.getenv("DELPHI_EPIDATA_KEY"),
locations = "CA",
time_type = "week",
time_values = epirange(201501, 202001)
)
} # }