Most Viewed
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Load the most viewed articles.
NYTAPI.most_viewed(days=1)
days
Get most viewed articles over the last 1
, 7
or 30
days
int
False
1
most_viewed = nyt.most_viewed()
# Get most viewed articles of last 7 or 30 days
most_viewed = nyt.most_viewed(days = 7)
most_viewed = nyt.most_viewed(days = 30)