{
  "openapi": "3.0.1",
  "info": {
    "title": "CineScore Movie Rating Sorter  🎬🍿",
    "description": "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.",
    "version": "0.0",
    "x-build-id": "hQRKVvJfOymaV9ez6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khnaami~cinescore-movie-rating-sorter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khnaami-cinescore-movie-rating-sorter",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khnaami~cinescore-movie-rating-sorter/runs": {
      "post": {
        "operationId": "runs-sync-khnaami-cinescore-movie-rating-sorter",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khnaami~cinescore-movie-rating-sorter/run-sync": {
      "post": {
        "operationId": "run-sync-khnaami-cinescore-movie-rating-sorter",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mediaCategory": {
            "title": "Media Universe Category",
            "enum": [
              "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",
              "🏆 Hall of Fame Legendary Episodes"
            ],
            "type": "string",
            "description": "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.",
            "default": "All Media Universe"
          },
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "Universe Catalog & Top Rankings",
              "Parse Custom Movie List"
            ],
            "type": "string",
            "description": "Select whether to explore the curated Universe Catalog or parse your own custom list of titles.",
            "default": "Universe Catalog & Top Rankings"
          },
          "rawMovieTitles": {
            "title": "Custom Media Titles (One per line)",
            "type": "string",
            "description": "Used when mode is 'Parse Custom Movie List'. Paste titles like:\n1. Breaking Bad\n2. Attack on Titan\n3. Spirited Away\n4. Avatar: The Last Airbender",
            "default": "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": {
            "title": "Sort Criterion",
            "enum": [
              "CineScore (0-100)",
              "IMDb Rating (0-10)",
              "MyAnimeList (MAL Score)",
              "Rotten Tomatoes (%)",
              "Metacritic Score (0-100)",
              "Letterboxd (0-5)",
              "Release Year",
              "Box Office ($M)",
              "Oscar Wins",
              "Seasons Count",
              "Episodes Count"
            ],
            "type": "string",
            "description": "Metric to rank items by.",
            "default": "CineScore (0-100)"
          },
          "ascending": {
            "title": "Ascending Order",
            "type": "boolean",
            "description": "Sort in ascending order (default is False: highest rating first).",
            "default": false
          },
          "genreFilter": {
            "title": "Genre Filter",
            "enum": [
              "All Genres",
              "Action",
              "Adventure",
              "Animation",
              "Anime",
              "Biography",
              "Comedy",
              "Crime",
              "Documentary",
              "Drama",
              "Fantasy",
              "History",
              "Horror",
              "Mystery",
              "Romance",
              "Sci-Fi",
              "Thriller",
              "War",
              "Western"
            ],
            "type": "string",
            "description": "Filter by cinematic genre or 'All Genres'.",
            "default": "All Genres"
          },
          "minImdb": {
            "title": "Minimum IMDb Rating",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Lower threshold for IMDb rating (0.0 to 10.0).",
            "default": 0
          },
          "minYear": {
            "title": "Minimum Release Year",
            "minimum": 1900,
            "maximum": 2026,
            "type": "integer",
            "description": "Earliest release year.",
            "default": 1930
          },
          "maxYear": {
            "title": "Maximum Release Year",
            "minimum": 1900,
            "maximum": 2026,
            "type": "integer",
            "description": "Latest release year.",
            "default": 2026
          },
          "searchQuery": {
            "title": "Search Query (Title, Director, Studio, Creator)",
            "type": "string",
            "description": "Optional keyword search filter.",
            "default": ""
          },
          "apiKey": {
            "title": "Apify API Token / Custom Key",
            "type": "string",
            "description": "Optional Apify API token or custom authentication key for MCP and programmatic triggers."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}