Description Usage Arguments Sort Examples
Search for articles.
1 |
q |
Your search query, i.e.: |
sort_by |
How should the search result be sorted. By default, articles are sorted by date in descending order (newest items first). |
sort_order |
Sort order can be either |
results |
Number of results to return |
Articles can be sorted by:
_score
- the search matching score (most relevant items first).
discoverDate
- When the article has been first found online (typically close to publication date).
metadata.readTime.seconds
- Article's reading time.
Other metadata fields can be used for sorting, but search performance may be affected as only the fields mentioned above are currently indexed for sorting.
1 2 3 4 5 | ## Not run:
newsriver_key("xXXxxXxXxXxx")
articles <- nr_search('language:en AND title:"New York"')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.