ny_archive | R Documentation |
The Archive API returns an array of NYT articles for a given month, going back to 1851. Its response fields are the same as the Article Search API. The Archive API is very useful if you want to build your own database of NYT article metadata. You simply pass the API the year and month and it returns a JSON object with all articles for that month. The response size can be large (~20mb).
ny_archive(year, month)
year |
Year, minimum |
month |
Month, integer between 1 and 12. |
## Not run:
nytimes_key("xXXxxXxXxXXx")
archive <- ny_archive(2018, 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.