Articles

RPCS

NewYorkTimes.getArticleSections()

Get a list of all valid article sections.

Returns: List<String> (List | String)

NewYorkTimes.getArticlesWithConcept(concept: Object)

Fetch up to 10 articles containing the given concept.

Arguments:

Returns: List<Article> (List)

NewYorkTimes.getLatestArticles(section: ArticleSection)

Get the latest articles in a given section.

Arguments:

Returns: List<String> (List | String)

NewYorkTimes.getTopStories(section: ArticleSection)

Get the top stories for a given section.

Arguments:

Returns: List<String> (List | String)

NewYorkTimes.searchArticles(query: String, offset: BoundedNumber<0>?)

Search for articles given a query. Up to 10 articles will be returned. More articles can be retrieved by specifying the “offset” or number of results to skip before returning the results.

Arguments:

Returns: List<SearchResult> (List)