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" });
Article Search
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/search/v2/articlesearch.json
SDK on GitHub 📄 API Docs
SDK
nytimes-typescript-sdk
TypeScript
API
nytimes.com
nytimes.com:article_search
At a glance
Language TypeScript
Endpoints1
Base URLhttp://api.nytimes.com/svc/search/v2