R/internal_fred.R

Defines functions quick_check_fred

quick_check_fred <- function(key = "..") {
  url <- "https://api.stlouisfed.org/fred/category/series?category_id=125&api_key=%s&file_type=json"
  url <- sprintf(url, key)

  gelen <- request_httr2_helper(url, cache = F)
  if (!is_response(gelen)) {
    return(false)
  }
  true
}

Try the Rapi package in your browser

Any scripts or data that you put into this service are public.

Rapi documentation built on May 29, 2024, 2:34 a.m.