Timeswire

With the Times Newswire API, you can get links and metadata for Times articles and blog posts as soon as they are published on NYTimes.com. The Times Newswire API provides an up-to-the-minute stream of published items.

🔑 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

curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/news/v3/content.json
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/news/v3/content/{source}/{section}.json
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/news/v3/content/{source}/{section}/{time-period}.json

Endpoints (3 total)

GET
/content.json
GET
/content/{source}/{section}.json
GET
/content/{source}/{section}/{time-period}.json

At a glance

Total SDKs6
Languages5
Endpoints3
Authoauth2
Categories2
http://api.nytimes.com/svc/news/v3