pi_search(..., fields=NULL, per_page=NULL, page=NULL, version='v1', getopts = NULL)NULL, which returns 20 results per page. Maximum is 1000.GET.fedreg_document.... argument should contain named arguments that together constitute a search query. Allowed named arguments are:term: any character string which will be searched for.
agencies: a character string specifying a federal agency mentioned in the document; multiple agencies arguments can be specified and only one agency should be named with each. The appropriate character strings for agencies arguments can be retrieved from the API Documentation: https://www.federalregister.gov/developers/api/v1.
type: a character string containing RULE for a Final Rule, PRORULE for a Proposed Rule, NOTICE for a Notice, or PRESDOCU for a Presidential Document. Multiple type arguments can be specified and only one type should be named with each.
special_filing: 0 for a regular filing or 1 for a special filing.
docket_id: an agency docket number associated with article.
Allowed values for fields are: agencies, docket_numbers, document_number, editorial_note, excerpts, filed_at, filing_type, html_url, json_url, num_pages, pdf_file_size, pdf_updated_at, pdf_url, publication_date, raw_text_url, title, toc_doc, toc_subject, type.
## Not run:
# pi_search(type='RULE', fields=c('document_number','raw_text_url'))
# pi_search(type='PRESDOC')
# ## End(Not run)
Run the code above in your browser using DataLab