Client for the News API


[Up] [Top]

Documentation for package ‘newsanchor’ version 0.1.1

Help Pages

build_newsanchor_url Builds query URL for newsapi.org.
collapse_to_comma_separated Concatenate character vector to comma-separated string.
extract_newsanchor_articles Extracts data frame with News API articles from response object.
extract_newsanchor_metadata Extracts metadata.
extract_newsanchor_sources Extracts data frame with News API sources from response object.
get_everything Get resources of newsapi.org
get_everything_all Returns all articles from newsapi.org in one data frame
get_headlines Returns selected headlines from newsapi.org
get_headlines_all Returns all headlines from newsapi.org
get_sources Returns selected sources from newsapi.org
make_newsanchor_get_request Makes a GET request to News API.
parse_newsanchor_content Parses content returned by query to the News API.
sample_response Sample Response Object
set_api_key Add API key to the .Renviron
stop_if_invalid_category Checks validity of a category.
stop_if_invalid_country Checks validity of a country
stop_if_invalid_language Checks validity of a language
stop_if_invalid_source Checks validity of a source
terms_category Terms Category
terms_country Terms Country
terms_language Terms Language
terms_sources Terms Sources