Latest Articles

Load metadata of the latest articles.

Usage

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

Parameters

Variables
Description
Data type
Required
Default

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