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

Movies - searchReviews

Example

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

movies.searchReviews('The Terminator', data => console.log(data);

What does it do?

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

Example Response

example-response.json
{ display_title: 'The Terminator',
  mpaa_rating: 'R',
  critics_pick: 0,
  byline: 'Janet Maslin',
  headline: 'TERMINATOR, THE (MOVIE)',
  summary_short: 'Ruthless cyborg from future. Fast, vivid sci-fi.',
  publication_date: '1984-10-26',
  opening_date: '1984-10-26',
  date_updated: '2017-11-02 04:17:33',
  link:
   { type: 'article',
     url:
      'http://www.nytimes.com/1984/10/26/movies/the-screen-terminator-suspense-tale.html',
     suggested_link_text: 'Read the New York Times Review of The Terminator' },
  multimedia: null }
PreviousMovies - searchCriticsNextBooks - bestSellersLists

Last updated 6 years ago