Skip to contents

[Deprecated]

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/gft.html

Obtains estimates of inluenza activity based on volume of certain search queries from Google.

Usage

pub_gft(locations, epiweeks = "*", fetch_args = fetch_args_list())

Arguments

locations

character. List of locations to fetch.

epiweeks

timeset. Epiweeks to fetch. Supports epirange() and defaults to all ("*") dates. Format as epirange(startweek, endweek), where startweek and endweek are of the form YYYYWW (string or numeric).

fetch_args

fetch_args_list(). Additional arguments to pass to fetch(). See fetch_args_list() for details.

See also

For example queries showing how to discover signals and build calls, see vignette("signal-discovery", package = "epidatr").

Examples


pub_gft(locations = "hhs1", epiweeks = epirange(201201, 202001))
#> `pub_gft()` covers a data source that is no longer updated.
#> ℹ Historical data remains available, but no new data is being ingested.
#> ℹ See the "Endpoints kept for historical reference" section of
#>   `vignette("migration-guide")` (or
#>   <https://cmu-delphi.github.io/epidatr/articles/migration-guide.html#endpoints-kept-for-historical-reference>)
#>   for details.
#> This message is displayed once per session.
#> # A tibble: 189 × 3
#>    location epiweek      num
#>    <chr>    <date>     <dbl>
#>  1 hhs1     2012-01-01  1567
#>  2 hhs1     2012-01-08  1339
#>  3 hhs1     2012-01-15  1220
#>  4 hhs1     2012-01-22  1271
#>  5 hhs1     2012-01-29  1181
#>  6 hhs1     2012-02-05   994
#>  7 hhs1     2012-02-12  1091
#>  8 hhs1     2012-02-19  1030
#>  9 hhs1     2012-02-26   856
#> 10 hhs1     2012-03-04   799
#> # ℹ 179 more rows