ny_search | R Documentation |
Search for NYT articles by keywords, filters and facets.
ny_search(
q,
since = NULL,
until = NULL,
pages = 1,
sort = c("newest", "oldest", "relevance"),
facets = FALSE,
facet_fields = NULL,
facet_filter = NULL,
fl = NULL,
fq = NULL
)
q |
Search query. |
since , until |
Begin and start |
pages |
Number of pages of results to return. Set to infinite ( |
sort |
Sort order |
facets |
Whether to show facet counts, boolean. |
facet_fields |
The following values are allowed: |
facet_filter |
Have facet counts use filters, boolean. |
fl |
List of fields to return. |
fq |
Query filter. |
## Not run:
nytimes_key("xXXxxXxXxXXx")
trump <- ny_search("Trump", since = Sys.Date() - 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.