pvt_ght: Google Health Trends health topics search volume

View source: R/endpoints.R

pvt_ghtR Documentation

Google Health Trends health topics search volume

Description

API docs: https://cmu-delphi.github.io/delphi-epidata/api/ght.html

Estimate of influenza activity based on volume of certain search queries. …

Usage

pvt_ght(auth, locations, epiweeks = "*", query, fetch_args = fetch_args_list())

Arguments

auth

string. Restricted access key (not the same as API key).

locations

character. Locations to fetch.

epiweeks

timeset. Epiweeks to fetch. Defaults to all ("*") dates.

query

string. The query to be fetched.

fetch_args

fetch_args. Additional arguments to pass to fetch().

Value

tibble::tibble

Examples

## Not run: 
pvt_ght(
  auth = Sys.getenv("SECRET_API_AUTH_GHT"),
  locations = "ma",
  epiweeks = epirange(199301, 202304),
  query = "how to get over the flu"
)

## End(Not run)

epidatr documentation built on June 22, 2024, 9:15 a.m.