The New York Times

Books API

The Books API provides information about book reviews and The New York Times bestsellers lists.

Media & content#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The Books API provides information about book reviews and The New York Times bestsellers lists.

Endpoints 6

  • GETBest Seller History List/lists/best-sellers/history.json?age-group=string&author=string&contributor=string&isbn=string&price=string&publisher=string&title=string
  • GETBest Seller List/lists.:format?list=string&weeks-on-list=0&bestsellers-date=2024-01-01T00:00:00Z&date=string&isbn=string&published-date=string&rank=0&rank-last-week=0&offset=0&sort-order=ASC
  • GETBest Seller List by Date/lists/:date/:list.json?isbn=0&list-name=string&published-date=2024-01-01T00:00:00Z&bestsellers-date=string&weeks-on-list=0&rank=string&rank-last-week=0&offset=0&sort-order=ASC
  • GETBest Seller List Overview/lists/overview.:format?published_date=string&api-key=string
  • GETBest Seller List Names/lists/names.:format?api-key=string
  • GETReviews/reviews.:format?isbn=0&title=string&author=string&api-key=string

API details

Base URL
https://api.nytimes.com/svc/books/v3
Authentication
An API key in the api-key query parameter
Operations
6 operations on 6 pathsGET 6
Description format
Swagger 2.0, API version 3.0.0

How to test the Books API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Books API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the api-key query parameter. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Best Seller History List” (GET /lists/best-sellers/history.json?age-group=string&author=string&contributor=string&isbn=string&price=string&publisher=string&title=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Books API?

The Books API provides information about book reviews and The New York Times bestsellers lists. It is listed under Media & content and has 6 endpoints.

Who publishes the Books API?

It is listed from The New York Times's public API description (an OpenAPI document), not published by The New York Times on Swastik Codes. Anyone who controls nytimes.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Books API?

Requests go to https://api.nytimes.com/svc/books/v3. Endpoint paths are added to this base URL.

How do I authenticate with the Books API?

With an API key in the api-key query parameter.

How many endpoints does the Books API have?

6 operations on 6 paths (6 GET).

Is forking the Books API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.