Using nytimes-sdk with nytimes.com

TypeScript integration

Install
npm install nytimes-sdk
Quick start
import Nytimes_sdk from 'nytimes-sdk';

const client = new Nytimes_sdk({ apiKey: "YOUR_API_KEY" });
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/movies/v2/reviews/search.json
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/movies/v2/critics/{resource-type}.json
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/movies/v2/reviews/{resource-type}.json
SDK on GitHub 📄 API Docs
SDK
nytimes-sdk
TypeScript
API
nytimes.com
nytimes.com:movie_reviews
At a glance
Language TypeScript
Endpoints3
Base URLhttp://api.nytimes.com/svc/movies/v2