nytimes.com

Get lists of NYT Articles based on shares, emails, and views.

🔑 oauth2 3 endpoints mediaopen_data
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (6 total)

pip install nytimes-python-sdk
npm install nytimes-typescript-sdk
npm install nytimes-sdk
# Maven: see https://github.com/konfig-sdks/nytimes-java-sdk
dotnet add package NYTimes.NET
golang-gcloud-sdk ✓ Official
# See https://github.com/nytimes/golang-gcloud-sdk
curl examples
Most Shared by Section & Time Period
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/mostpopular/v2/mostshared/{section}/{time-period}.json
Most Viewed by Section & Time Period
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/mostpopular/v2/mostviewed/{section}/{time-period}.json
Most Emailed by Section & Time Period
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/mostpopular/v2/mostemailed/{section}/{time-period}.json
Endpoints (3 total)
GET
/mostshared/{section}/{time-period}.json
Most Shared by Section & Time Period
GET
/mostviewed/{section}/{time-period}.json
Most Viewed by Section & Time Period
GET
/mostemailed/{section}/{time-period}.json
Most Emailed by Section & Time Period
At a glance
Total SDKs6
Languages5
Endpoints3
Authoauth2
Categories2
http://api.nytimes.com/svc/mostpopular/v2