get_everything: This endpoint suits article discovery and analysis, but can...

Description Usage Arguments Value Examples

Description

This endpoint suits article discovery and analysis, but can be used to retrieve articles for display, too.

Usage

1
2
get_everything(q, sources, domains, language, from, to, sort_by,
  apiKey = newsapi_key(), endpoint = "everything")

Arguments

q

Keywords to search for.

sources

A comma-seperated string of identifiers for the news sources or blogs you want headlines from. Use newsapi.org sources index.

domains

A comma-seperated string of domains (eg bbc.co.uk, techcrunch.com, engadget.com) to restrict the search to.

language

The 2-letter ISO-639-1 code of the language you want to get headlines for.

from

A date and optional time for the oldest article allowed. This should be in ISO 8601 format

to

A date and optional time for the newest article allowed

sort_by

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

apiKey

String apiKey

endpoint

String of endpoints

Value

dataframe

Examples

1
## Not run: get_everything(category = 'general',country = 'de')

data-atelier/newsExploreR documentation built on May 22, 2019, 11:51 p.m.