get_data_by_page: Acquire Data for the Given Page and Url

View source: R/get-data.R

get_data_by_pageR Documentation

Acquire Data for the Given Page and Url

Description

Get data for the given page number. Used for iterating over pages when this is necessary to obtain all the data.

Usage

get_data_by_page(url, page_number = 1, quiet = TRUE)

Arguments

url

a url containing an API call

page_number

page number to obtain data for, default value is 1

quiet

logical; FALSE if you want detailed information printed to the console, TRUE otherwise. FALSE is recommended for longer calls to monitor the progress.

Examples

## Not run: 
get_data_by_page("https://api.regulations.gov/v4/documents?
filter[docketId]=CMS-2014-0063&page[size]=250&page[number]=1&api_key=DEMO_KEY",
  page_number = 2
)

## End(Not run)

q-w-a/regulationsgov documentation built on May 3, 2022, 8:23 p.m.