# ShortMax Trending Dramas (`vesperxiv/shortmax-trending-dramas`) Actor

Returns the short dramas currently listed on ShortMax's homepage (Most Popular ranking + genre sections), parsed from the SSR HTML, with play counts enriched from each drama's detail page. No API key, no login.

- **URL**: https://apify.com/vesperxiv/shortmax-trending-dramas.md
- **Developed by:** [Vesper](https://apify.com/vesperxiv) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 price per trending dramas

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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

## ShortMax Trending Dramas

Returns the short dramas currently listed on [ShortMax](https://www.shortmax.com/)'s homepage — the ranked **Most Popular** list plus the genre sections — one dataset row per drama, in list order. **No API key, no login.**

### What you get

- **Dataset — one item per drama:** `rank`, `title`, `platform`, `url`, `dramaId`, `views`, `genres`, `cover`, `episodes`, `list_name`.
- **`summary.json`** (key-value store): the list used, which lists were fetched/available, and how many dramas were returned.

### Input

| Field | What it is |
|---|---|
| `list` | Which homepage list to fetch: `most-popular` (the ranked Most Popular list), a genre section (`war-god`, `tycoon-life`, `ancient-romance`, `bodyguard-security`, `historical-fantasy`, `workplace`, `time-travel`, `matrilocal-husband`, `apocalypse`, `school-life`, `dragon-clan`), or `all` lists in page order (default). |
| `limit` | Maximum dramas returned (default 20, 1–20). The homepage holds about 85 dramas across 12 lists. |

### How the data is fetched

The public homepage — **no API key, no login**:

`GET https://www.shortmax.com/` (redirects to `https://www.shorttv.live/`)

Each homepage section (`<h2 class="section-title">` + `drama-card`s) is parsed from the server-rendered HTML: card order → `rank`, card title → `title`, `/drama/<slug>-<id>` → `url` + `dramaId`, cover image → `cover`. Each returned drama is then enriched from its own detail page, which publishes a play count (play-triangle stat) → `views`, genre tags → `genres`, and an episode count → `episodes`.

### Sample output

Real rows fetched 2026-11-18 (Most Popular):

```json
[
  {
    "rank": 1,
    "title": "My Secret Boyfriend Chose His Crush. I Went Public With My Childhood Sweetheart",
    "platform": "shortmax",
    "url": "https://www.shorttv.live/drama/my-secret-boyfriend-chose-his-crush-i-went-public-with-my-childhood-sweetheart-51033",
    "dramaId": "51033",
    "views": 279000,
    "genres": ["Modern", "Youth", "Reversal of Fortune", "Sweet Romance", "Tit for Tat", "Tragic Life"],
    "cover": "https://akamai-static.shorttv.live/images/cover/2026/10/24/7cd5f3039a564c1db2643846faadc976.png",
    "episodes": 50,
    "list_name": "most-popular"
  },
  {
    "rank": 2,
    "title": "I Left On My Wedding Day: My Revenge Begins",
    "platform": "shortmax",
    "url": "https://www.shorttv.live/drama/i-left-on-my-wedding-day-my-revenge-begins-40416",
    "dramaId": "40416",
    "views": 373000,
    "genres": ["Modern", "Reversal of Fortune", "Family", "Elite Families", "Tit for Tat", "Tragic Life", "Grassroots"],
    "cover": "https://akamai-static.shorttv.live/images/cover/2026/09/18/04e40dc5fc254628827c901352b9928c.jpg",
    "episodes": 25,
    "list_name": "most-popular"
  }
]
```

### Limits — read this before you buy

- **Why HTML, not the site's API:** ShortMax's Nuxt `__NUXT_DATA__` payload values are AES-encrypted blobs and the backing API is encrypted too — there is no usable keyless JSON endpoint (this is what blocked the 17/11 attempt). The SSR homepage renders every list in full, so the Actor parses that instead. If ShortMax stops server-rendering the homepage, this Actor stops working.
- **`views` is a play count, not a verified-views metric.** It comes from each drama's detail page (the play-triangle stat). The detail page also shows a second number next to a star icon, but its meaning is not labelled anywhere on the page, so the Actor deliberately does not expose it as likes/favorites.
- **`rank` is the position inside its own list** (`list_name`), not a global rank. With `list=all`, rows come in page order (Most Popular first, then genre sections) and are deduplicated by drama.
- Genre sections rotate over time; an unknown `list` value falls back to `all` with a warning in the log.
- A run with `list=all, limit=20` fetches the homepage + 20 detail pages and takes roughly 15 seconds.

# Actor input Schema

## `limit` (type: `integer`):

Maximum dramas returned per run (1-20). The homepage holds about 85 dramas across 12 lists; "all" returns them in page order, deduplicated.

## `list` (type: `string`):

Which ShortMax homepage list to fetch: most-popular (the ranked Most Popular list), a genre section (war-god, tycoon-life, ancient-romance, bodyguard-security, historical-fantasy, workplace, time-travel, matrilocal-husband, apocalypse, school-life, dragon-clan), or all lists in page order.

## Actor input object example

```json
{
  "limit": 20,
  "list": "all"
}
```

# Actor output Schema

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

No description

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

No description

# 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 = {
    "limit": 20,
    "list": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesperxiv/shortmax-trending-dramas").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 = {
    "limit": 20,
    "list": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("vesperxiv/shortmax-trending-dramas").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 '{
  "limit": 20,
  "list": "all"
}' |
apify call vesperxiv/shortmax-trending-dramas --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesperxiv/shortmax-trending-dramas"
        }
    }
}
```

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/36H2mJLybq5xfPjmG/builds/MTunktc6Iy7JLLAl6/openapi.json
