every_news: Everything

Description Usage Arguments Examples

View source: R/calls.R

Description

Search through all articles.

Usage

1
2
3
every_news(q = NULL, results = 100, sources = NULL, domains = NULL,
  exclude_domains = NULL, since = NULL, until = NULL,
  language = NULL, sort = NULL)

Arguments

q

Keywords or a phrase to search for.

results

Number of results to return, on free plan this is often 100. Set to Inf to return everything.

sources

A vector of identifiers for the news sources or blogs you want headlines from. Use news_sources to locate these. Note: you can't mix this argument with the country or category argument.

domains, exclude_domains

A vector of domains to restrict the search to, or exclude, i.e.: bbc.co.uk.

since, until

Date or POSIX indicating oldest and newest article allowed.

language

Find sources that display news in a specific language. Possible options: ar, de, en, es, fr, he, it, nl, no, pt, ru, se, ud, zh. Default: all languages.

sort

The order to sort the articles in. Possible options: relevancy, popularity, publishedAt.

Examples

1
2
3
4
## Not run: 
 every_news("Trump")

## End(Not run)

news-r/newsapi documentation built on Feb. 27, 2020, 2:38 p.m.