Top Stories

Load all the top stories.

Usage

NYTAPI.top_stories(section=None)

Parameters

VariablesDescriptionData typeRequired

section

Get Top Stories from a specific section

str

False

The possible sections are: arts, automobiles, books, business, fashion, food, health, home, insider, magazine, movies, national, nyregion, obituaries, opinion, politics, realestate, science, sports, sundayreview, technology, theater, tmagazine, travel, upshot, and world.

Example

top_stories = nyt.top_stories()

# Get all the top stories from a specific category
top_science_stories = nyt.top_stories(section = "science")

Last updated