Latest Articles

Load metadata of the latest articles.

Usage

NYTAPI.latest_articles(source=None, section=None)

Parameters

VariablesDescriptionData typeRequiredDefault

source

Source of article (all, nyt and inyt)

str

False

"all"

Section of articles

str

False

section

You can find all possible sections using:

sections = nyt.section_list()

Example

latest = nyt.latest_articles(
    source = "nyt",
    section = "books"
)

Last updated