Most Viewed
Load the most viewed articles.
NYTAPI.most_viewed(days=1)
Variables | Description | Data type | Required | Default |
---|---|---|---|---|
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)
Last modified 8mo ago