nytimes-api
  • Welcome!
  • Documentation
    • Popular - mostEmailed
    • Popular - mostViewed
    • Popular - mostShared
    • Movies - allCritics
    • Movies - criticsPick
    • Movies - searchCritics
    • Movies - searchReviews
    • Books - bestSellersLists
    • Books - bestSellers
    • Books - overview
    • Books - searchReviews
    • TopStories - sections
    • TopStories - randomSection
    • TopStories - topStories
  • Examples
  • Changelogs
    • 1.0
    • 1.1
    • 1.2
    • 1.2.1
    • 1.3
Powered by GitBook
On this page
  • Example
  • What does it do?
  • Example Response
  1. Documentation

Books - searchReviews

Example

example.js
const { Books } = require('nytimes-api');
const books = new Books('your-super-secret-api-key');

books.searchReviews('The Tattooist of Auschwitz', data => console.log(data));

What does it do?

searchReviews searches for a review of a book on the New York Times' database. The above code searches for a movie review of The Tattooist of Auschwitz, and logs the results.

Example Response

example-response.json
[ { url:
     'https://www.nytimes.com/2018/11/16/books/review/tattooist-auschwitz-heather-morris.html',
    publication_dt: '2018-11-16',
    byline: 'CHRISTINA BAKER KLINE',
    book_title: 'The Tattooist of Auschwitz',
    book_author: 'Heather Morris',
    summary:
     'The British actor Richard Armitage delivers a masterly reading of Heather Morris’s World War II story, “The Tattooist of Auschwitz.”',
    uuid: '00000000-0000-0000-0000-000000000000',
    uri: 'nyt://book/00000000-0000-0000-0000-000000000000',
    isbn13: [ '9780062797155' ] } ]
PreviousBooks - overviewNextTopStories - sections

Last updated 6 years ago