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' ] } ]