Description Usage Arguments Value
Main function used to retrieve data from NYTimes article search API
1 | nyt_search(q, n = 100, end_date = NULL, apikey = NULL, ...)
|
q |
Search query. |
n |
Number of desired articles to return. |
end_date |
Date from which results should start—the results
will go back in time from this date. Must be in YYYYMMDD format,
e.g., |
apikey |
Nytimes article search API key. By default the function will look for the key as an environment variable. Alternatively, you can suppply the key, a character string, directly to this apikey argument. |
... |
Arguments passed along to query in final GET request. |
Nested list object of nytimes article data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.