# CineScore Movie Rating Sorter  🎬🍿 (`khnaami/cinescore-movie-rating-sorter`) Actor

A movie rating aggregator and custom ranking Actor inspired  Features multi-platform rating telemetry (IMDb, Rotten Tomatoes, Metacritic, Letterboxd), a composite CineScore (0-100) algorithm, the Top 100 All-Time Masterpieces catalog, and a smart title list parser.

- **URL**: https://apify.com/khnaami/cinescore-movie-rating-sorter.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apify Actor: CineScore Multi-Platform Movie Rating Sorter & Top 100 Masterpieces 🎬🍿

A movie rating aggregator and custom ranking Actor inspired by [DidierRLopes/SortMoviesPerRating](https://github.com/DidierRLopes/SortMoviesPerRating). Features multi-platform rating telemetry (IMDb, Rotten Tomatoes, Metacritic, Letterboxd), a composite **CineScore (0-100)** algorithm, the **Top 100 All-Time Masterpieces** catalog, and a smart title list parser.

***

### 🌟 Key Features

1. **Multi-Source Critical Consensus**: Integrates ratings across all 4 major film authorities:
   - **IMDb** (0-10) with vote weight
   - **Rotten Tomatoes** (0-100% Tomatometer)
   - **Metacritic** (0-100 Metascore)
   - **Letterboxd** (0-5 cinephile community score)
2. **Proprietary CineScore Formula**:
   $$\text{CineScore} = (0.35 \times \text{IMDb} \times 10) + (0.25 \times \text{RT}) + (0.20 \times \text{Metacritic}) + (0.20 \times \text{Letterboxd} \times 20)$$
3. **Top 100 All-Time Masterpieces**: Built-in verified database spanning cinema history from classics (*The Godfather*, *Citizen Kane*, *12 Angry Men*) to modern icons (*Oppenheimer*, *Dune 2*, *Parasite*, *Spirited Away*).
4. **Custom List Title Parser**: Feed raw, unformatted, or numbered lists of movie titles (e.g. copied from blogs, letterboxd watchlists, or spreadsheets) to instantly look up ratings and sort them.
5. **Multi-Criteria Ranking**: Sort by CineScore, IMDb, Rotten Tomatoes, Metascore, Letterboxd, Release Year, Box Office Earnings, or Oscar Wins.

***

### 📥 Input Schema

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | Select | `"Top 100 All-Time Masterpieces"` | Choose between exploring the Masterpieces catalog or parsing custom titles. |
| `rawMovieTitles` | Textarea | Sample titles | Pasted list of movies (used when mode is 'Parse Custom Movie List'). |
| `sortBy` | Select | `"CineScore (0-100)"` | Metric to sort by (`CineScore`, `IMDb`, `Rotten Tomatoes`, `Metacritic`, `Letterboxd`, `Release Year`, `Box Office`, `Oscar Wins`). |
| `ascending` | Boolean | `false` | True for lowest-to-highest, False for highest-to-lowest. |
| `genreFilter` | Select | `"All Genres"` | Filter by genre (Action, Sci-Fi, Drama, Crime, Animation, etc.). |
| `minImdb` | Number | `0.0` | Minimum IMDb score threshold. |
| `minYear` | Integer | `1950` | Minimum release year. |
| `maxYear` | Integer | `2026` | Maximum release year. |
| `searchQuery` | String | `""` | Search text matching title, director, or cast. |

***

### 📤 Output Dataset Format

```json
{
  "rank": 1,
  "title": "The Godfather",
  "year": 1972,
  "cinescore": 97.4,
  "imdb_rating": 9.2,
  "imdb_votes": "2,050,000+",
  "rotten_tomatoes_pct": 97,
  "metacritic_score": 100,
  "letterboxd_rating": 4.6,
  "director": "Francis Ford Coppola",
  "genres": ["Crime", "Drama"],
  "runtime_mins": 175,
  "box_office_million_usd": 250.3,
  "oscar_wins": 3,
  "streaming_platforms": ["Paramount+", "Amazon Prime"]
}
```

***

### 🚀 How to Run Locally

```bash
cd actor-cine-rating-sorter
pip install -r requirements.txt
python -m src.main
```

# Actor input Schema

## `mediaCategory` (type: `string`):

Select the universe format: All Media Universe, Top 100 Movies, Top 100 TV Series, Top 100 Anime Series, Top Anime Movies, Top 100 Cartoons, Top 100 Animated Feature Films, or Hall of Fame Legendary Episodes.

## `mode` (type: `string`):

Select whether to explore the curated Universe Catalog or parse your own custom list of titles.

## `rawMovieTitles` (type: `string`):

Used when mode is 'Parse Custom Movie List'. Paste titles like:

1. Breaking Bad
2. Attack on Titan
3. Spirited Away
4. Avatar: The Last Airbender

## `sortBy` (type: `string`):

Metric to rank items by.

## `ascending` (type: `boolean`):

Sort in ascending order (default is False: highest rating first).

## `genreFilter` (type: `string`):

Filter by cinematic genre or 'All Genres'.

## `minImdb` (type: `number`):

Lower threshold for IMDb rating (0.0 to 10.0).

## `minYear` (type: `integer`):

Earliest release year.

## `maxYear` (type: `integer`):

Latest release year.

## `searchQuery` (type: `string`):

Optional keyword search filter.

## `apiKey` (type: `string`):

Optional Apify API token or custom authentication key for MCP and programmatic triggers.

## Actor input object example

```json
{
  "mediaCategory": "All Media Universe",
  "mode": "Universe Catalog & Top Rankings",
  "rawMovieTitles": "Breaking Bad\nAttack on Titan\nSpirited Away\nThe Dark Knight\nAvatar: The Last Airbender\nOzymandias\nArcane\nFullmetal Alchemist: Brotherhood\nSpider-Man: Across the Spider-Verse\nSuccession",
  "sortBy": "CineScore (0-100)",
  "ascending": false,
  "genreFilter": "All Genres",
  "minImdb": 0,
  "minYear": 1930,
  "maxYear": 2026,
  "searchQuery": ""
}
```

# Actor output Schema

## `results` (type: `string`):

Ranked and sorted movies with multi-platform ratings (IMDb, RT, Metacritic, Letterboxd) and CineScore

## `overview` (type: `string`):

Summary report stored in Key-Value store

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/cinescore-movie-rating-sorter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/cinescore-movie-rating-sorter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call khnaami/cinescore-movie-rating-sorter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khnaami/cinescore-movie-rating-sorter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jwpFjZ2TkdvkKUJgr/builds/hQRKVvJfOymaV9ez6/openapi.json
