DEV Community

Donny Nguyen
Donny Nguyen

Posted on

Add Rotten Tomatoes Ratings to Your App with a Single API Call

Building a movie recommendation engine? A watchlist app? Or maybe just a weekend project that helps you decide what to watch on Friday night? You're going to need ratings data — and Rotten Tomatoes is the gold standard for aggregated critic and audience scores.

The Rotten Tomatoes Ratings API gives you instant access to movie and TV show ratings through a simple REST endpoint. No scraping, no browser automation, no headaches. Just send a query and get structured data back.

What It Does

This API lets you search for any movie or TV show by title and returns Rotten Tomatoes rating data — including critic scores, audience scores, and metadata. It's perfect for:

  • Movie recommendation apps that rank content by critical reception
  • Watchlist tools that display ratings alongside your saved titles
  • Data dashboards comparing ratings across studios, genres, or time periods
  • Discord/Slack bots that respond to "is this movie any good?"

Quick Start

Here's how to fetch ratings for any title using JavaScript:

const response = await fetch(
  'https://espn-scores-consolidated-production.up.railway.app/api/search?query=Oppenheimer',
  {
    method: 'GET',
    headers: {
      'X-RapidAPI-Key': 'YOUR_RAPIDAPI_KEY',
      'X-RapidAPI-Host': 'rotten-tomatoes-ratings.p.rapidapi.com'
    }
  }
);

const data = await response.json();
console.log(data);
Enter fullscreen mode Exit fullscreen mode

Swap out Oppenheimer for any movie or show title. The API handles fuzzy matching, so partial titles and common misspellings still return relevant results.

Real-World Use Case: Movie Night Picker

Imagine building a "Movie Night" app where users add candidate films and the group votes. You could enrich each suggestion with Rotten Tomatoes scores automatically:

const movies = ['Dune Part Two', 'The Batman', 'Everything Everywhere All at Once'];

const enriched = await Promise.all(
  movies.map(async (title) => {
    const res = await fetch(
      `https://espn-scores-consolidated-production.up.railway.app/api/search?query=${encodeURIComponent(title)}`,
      {
        headers: {
          'X-RapidAPI-Key': 'YOUR_RAPIDAPI_KEY',
          'X-RapidAPI-Host': 'rotten-tomatoes-ratings.p.rapidapi.com'
        }
      }
    );
    return res.json();
  })
);

console.log(enriched);
Enter fullscreen mode Exit fullscreen mode

Now every suggestion comes with credible rating data that helps the group decide.

Try It Out

The API is available on RapidAPI with a free tier so you can test it immediately. Head over to the Rotten Tomatoes Ratings API listing, subscribe, and start making requests in minutes.

Whether you're building a full-stack entertainment app or just a quick script to settle a debate about which Marvel movie is actually the best — this API has you covered.

Top comments (0)