# Melolo Short-Drama Catalogue (`notaleksandr/melolo-drama-catalogue`) Actor

Lists the short dramas on melolo.com as rows of facts: title, genres, number of episodes, rating out of 10, number of ratings, language and page link. Can mark titles that are new since the previous run. Facts only: no plot text, no images, no video.

- **URL**: https://apify.com/notaleksandr/melolo-drama-catalogue.md
- **Developed by:** [Aleksandr Kozachuk](https://apify.com/notaleksandr) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 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

## Melolo Short-Drama Catalogue

Lists the short dramas on [melolo.com](https://melolo.com) as rows of facts: title, genres, number of episodes, rating out of 10, number of ratings, language, and the link to the drama's page. Run it again later and it marks the titles that are new since the previous run.

Facts only. It does not return plot text, cover images, video, or episode links.

### What you get

One row per drama page. On melolo.com each language version of a drama is its own page, with its own title, rating and number of ratings, so each language version is its own row.

Example row (read on 13 Nov 2026):

```json
{
    "url": "https://melolo.com/dramas/my-mom",
    "title": "My Mom",
    "genres": ["Revenge", "Suspense", "Urban"],
    "genreSlugs": ["revenge", "suspense", "urban"],
    "episodeCount": 71,
    "rating": 9.4,
    "ratingCount": 1979,
    "language": "en",
    "languageName": "English",
    "sitemapLastmod": "2026-06-12",
    "isNew": false,
    "scrapedAt": "2026-11-13T00:05:36.933Z"
}
```

| Field | What it is |
|---|---|
| `url` | Link to the drama page the row was read from. |
| `title` | Title as written on that page. |
| `genres` | Genre names as shown on the page, in the page's language and order (for example `Romance` on an English page, `ロマンス` on a Japanese one). |
| `genreSlugs` | The same genres as the site's own language-independent keys (the last part of each genre link), in the same order. Use these to compare rows across languages. |
| `episodeCount` | Number of episodes stated on the page. |
| `rating` | Rating out of 10 shown on the page. |
| `ratingCount` | Number of ratings the page shows to a visitor ("Based on N verified ratings"). Can be 0. |
| `language`, `languageName` | Language of the page, taken from its link: `en` English, `ja` Japanese, `id` Indonesian, `pt` Portuguese, `fr` French, `th` Thai, `ru` Russian. |
| `sitemapLastmod` | The date (YYYY-MM-DD) the site's sitemap gives for the page. Empty (`null`) when the page is not in the sitemap. See the limits below. |
| `isNew` | `true` when the page link was not in the sitemap at the previous run; `false` when it was; empty (`null`) when there is no previous run to compare with, or the page is not in the sitemap. |
| `scrapedAt` | Date and time (UTC) at which the page was read. |

A value the page does not give is left empty (`null`). A short account of each run (how many pages were read, skipped, and why the run ended) is saved under the key `RUN_SUMMARY` in the run's key-value store. It is written however the run ends: also when the input is refused, the sitemap cannot be read, or the site blocks the tool.

### Where the data comes from

Public pages of melolo.com only, fetched with plain requests, without logging in:

1. `https://melolo.com/sitemap/movie.xml`, the site's own list of its drama pages (a "sitemap": the public file of page links a site publishes for search engines). On 13 Nov 2026 it listed 12,630 drama pages in seven languages: English 4,913, Japanese 2,143, Indonesian 1,480, Portuguese 1,479, French 1,097, Thai 1,003, Russian 515. One request per run.
2. The drama page itself, one request per title.
3. Only when a genre is chosen on its own: the site's listing for that genre, `https://melolo.com/category/<genre>`, 42 titles per listing page.

Requests are sent one at a time with a pause of at least 2 seconds between them (2.5 seconds in this version). In a test run on 13 Nov 2026, 15 titles took about 80 seconds.

The most requests one run can send is fixed before the run starts, whatever the site answers:

- 1 request for the sitemap,
- plus one request per drama page, at most `maxItems`,
- plus, only when a genre is chosen on its own, the listing pages: `maxItems` divided by 42, rounded up, plus 2 spare pages.

With the default of 20 titles that is at most 21 requests (24 with a genre). With the largest setting of 200 titles it is at most 201 requests (208 with a genre). The tool refuses to send more than this number.

### Input

Every field is optional. With no input the tool reads 20 titles. A field that is not in this table is refused.

| Field | Type | Default | What it does |
|---|---|---|---|
| `maxItems` | whole number, 1 to 200 | 20. With `dramaUrls`: all the given links. | The most drama pages read in one run. A page that is missing, or that turns out to be outside the chosen genre, still counts towards this number. |
| `genre` | one of `any`, `fantasy`, `revenge`, `romance`, `counterattack`, `suspense`, `thriller`, `urban`, `rebirth`, `ceo`, `billionaire` | `any` | Keep only titles of one genre. |
| `dramaUrls` | list of links, at most 200 | none | Read exactly these drama pages, for example `https://melolo.com/dramas/my-mom` or `https://melolo.com/jp/dramas/becoming-the-wolf`. Episode links (ending in `/ep1`, `/ep2`, ...) are refused. All the links are read, unless you also set `maxItems` to a smaller number: then only the first ones are read. |
| `onlyNew` | true / false | false | Return only titles not seen in the previous run (see "How new is worked out"). With a `genre`, new titles of other genres are read, left out, and no longer count as new. |

Which titles are read, and in which order:

- **No input:** the pages with the newest sitemap date first; within one date, English pages first, then the other languages in the sitemap's own order.
- **`genre` on its own:** the titles on the site's English listing for that genre, in the site's own order (the site calls it "Hot"). The rows are English pages.
- **`dramaUrls`:** the given pages, in the given order.
- **`onlyNew`:** the new pages, newest sitemap date first.
- **`genre` together with `dramaUrls` or `onlyNew`:** the genre is checked on each page after it is read, and pages of other genres are left out. With `onlyNew`, those pages have then been read, so they no longer count as new in later runs (see "How new is worked out").

Examples:

```json
{ "maxItems": 50 }
```

```json
{ "genre": "thriller", "maxItems": 42 }
```

```json
{ "dramaUrls": ["https://melolo.com/dramas/my-mom", "https://melolo.com/fr/dramas/rien-ne-te-vaut"] }
```

```json
{ "onlyNew": true, "maxItems": 100 }
```

Bad input stops the run before any request is sent, with a message that names every problem (for example: `"maxItems" must be a whole number from 1 to 200, got 0.`). On Apify, a value outside the limits, or a field the tool does not have, is refused before the run starts.

### How "new" is worked out

- At the end of each run the tool saves the list of all drama page links in the sitemap. It keeps this list in a named key-value store called `melolo-drama-catalogue-state` (key `SEEN_LINKS`, under 1 MB).
- At the next run it downloads the sitemap again and compares. A page is new (`isNew: true`) when its link is in today's sitemap and was not in the saved list.
- The comparison is with the whole sitemap, not with the rows of the previous run. A title you never asked for before is not "new" just because of that.
- A new title stays new until a run has read its page. If more new titles exist than `maxItems` allows, the rest come back as new in the next run.
- **`onlyNew` with a `genre`:** new titles of other genres are read, left out, and no longer count as new. Example: three new titles appear and none is a thriller. A run with `onlyNew` and `genre: thriller` reads all three and returns no rows. A later run with `onlyNew` alone then finds nothing new, so those three titles are in no output. To get every new title, run `onlyNew` without a genre and pick the genres you want from `genreSlugs` in the rows.
- **First run:** there is nothing to compare with. `isNew` is empty (`null`) in every row. With `onlyNew` on, the first run saves the list and returns no rows.
- **Nothing new:** a run with `onlyNew` that finds no new title ends normally with no rows. This is the usual result when the site has added nothing: on 13 Nov 2026 the newest date in the sitemap was 7 Oct 2026.
- Every run that uses the same store shares the one list, whatever its input. To start afresh, delete the store.
- "New" means "new in the sitemap since the previous run". It is not a release date. A page that leaves the sitemap and comes back later counts as new again.

### Limits

- **Facts only.** No plot text, no images, no video, no episode links, no links other than the page link. A title is taken only when the page's heading shows the same text and it is no longer than 120 characters; a page that fails this check gives no row and is named in the log.
- **No ranks, no view counts.** The tool returns neither. The site has a "Weekly Hot" ranking page, which this tool does not read. The drama pages show no view or play count (checked on one page on 13 Nov 2026).
- **A rating with 0 ratings behind it.** The site shows a rating even when it shows "Based on 0 verified ratings". On 13 Nov 2026 the 15 English titles with the newest sitemap dates all showed 0 ratings. `ratingCount` is the number the page shows to a visitor.
- **`sitemapLastmod` is not a reliable "date added".** It is the site's "last changed" date, and 8,283 of the 12,630 pages carry the single date 12 Jun 2026.
- **Small runs.** At most 200 titles per run, one request per title, and never more than 208 requests in one run (see "Where the data comes from"). The tool is not meant for downloading the whole catalogue in one go.
- **Run one at a time.** The pause between requests is kept inside one run. Two runs started at the same moment each keep their own pause, so the site would get requests up to twice as often. Both would also write the one saved list of links.
- **No language choice in the input.** Without input the newest titles come first, whatever their language (English first within a date). A genre on its own gives English pages only. To get specific pages in another language, give their links in `dramaUrls`.
- **Missing pages are skipped.** A link that answers "not found" is logged and left out.
- **The tool stops when the site says stop.** If the site answers 403 or 429, or with a "prove you are human" page, the run ends at once with a clear message and is marked as failed. The rows collected up to that point are kept. Nothing is retried. The run also stops after three pages in a row that cannot be read.
- **Redirects are not followed.** A redirect is the site sending the tool on to another address. If that address is anything other than a drama page, genre listing or sitemap of melolo.com (for example a "prove you are human" address), it counts as a block and the run ends at once. A redirect to another drama page means the page has moved: it is logged and skipped.
- **A run that Apify starts again.** Apify can move a run to another server, and the run then starts again from the top. The tool keeps the list of pages it has handled in the run's own key-value store (key `RUN_PROGRESS`; saved about once a minute and when Apify announces the move). After such a restart it downloads the sitemap again (and the listing pages, when a genre is chosen on its own), and it skips the pages on that list, so they are not read or saved a second time. The limit on requests counts afresh after a restart. `RUN_SUMMARY` then counts the pages read after the restart and says how many were handled before it.
- **It depends on the site's page layout.** If melolo.com changes its pages, rows may come back with empty fields or pages may be skipped until the tool is updated.

# Actor input Schema

## `maxItems` (type: `integer`):

The most drama pages read in one run (one request per title, at least 2 seconds apart). From 1 to 200. Left empty: 20, or, when page links are given, all of the given links. A page that is missing, or that turns out to be outside the chosen genre, still counts towards this number.

## `genre` (type: `string`):

Keep only titles of one genre. Used on its own, the tool reads the site's English listing for that genre, in the site's own order, so the rows are English pages. Together with "Page links to read" or "Only titles not seen in the previous run", the genre is checked on each page after it is read.

## `dramaUrls` (type: `array`):

Read these drama pages instead of picking titles from the sitemap. One link per line, for example https://melolo.com/dramas/my-mom or https://melolo.com/jp/dramas/becoming-the-wolf. Episode links (ending in /ep1, /ep2 and so on) are refused. At most 200 links. All of them are read, unless a maximum number of titles is set and is smaller: then only the first ones are read.

## `onlyNew` (type: `boolean`):

Return only titles whose page link was not in the site's sitemap at the previous run of this tool on your account. On the very first run there is nothing to compare with: the run saves the list of links and returns no rows. A run that finds nothing new ends normally with no rows. With a genre chosen as well, new titles of other genres are read, left out, and no longer count as new in later runs.

## Actor input object example

```json
{
  "genre": "any",
  "onlyNew": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per drama page on melolo.com, with title, genres, episodes, rating and whether it is new since the previous run.

## `summary` (type: `string`):

Counts for this run: pages read, rows saved, new titles.

# 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("notaleksandr/melolo-drama-catalogue").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("notaleksandr/melolo-drama-catalogue").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 notaleksandr/melolo-drama-catalogue --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,notaleksandr/melolo-drama-catalogue"
        }
    }
}
```

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/OBSJsKTSWXx9nddKK/builds/qyOFPUTfKT2zFKIkm/openapi.json
