Using nytimes-typescript-sdk with nytimes.com

TypeScript integration

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

const client = new Nytimes_typescript_sdk({ apiKey: "YOUR_API_KEY" });
Best Seller List
curl \
  # append ?api-key=$API_KEY to the URL \
  https://api.nytimes.com/svc/books/v3/lists.{format}
Reviews
curl \
  # append ?api-key=$API_KEY to the URL \
  https://api.nytimes.com/svc/books/v3/reviews.{format}
Best Seller List Names
curl \
  # append ?api-key=$API_KEY to the URL \
  https://api.nytimes.com/svc/books/v3/lists/names.{format}
SDK on GitHub 📄 API Docs
SDK
nytimes-typescript-sdk
TypeScript
API
nytimes.com
nytimes.com:books_api
At a glance
Language TypeScript
Endpoints6
Base URLhttps://api.nytimes.com/svc/books/v3