# FlexTV Trending Dramas Monitor (`vesperxiv/flextv-trending-dramas`) Actor

Returns the short dramas currently topping FlexTV's rankings (Daily Top, Best Selling, New Release, Must Watch), with views, collects, likes, genres, cover art and synopsis. Uses the site's public rankings page — no API key, no login.

- **URL**: https://apify.com/vesperxiv/flextv-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

## FlexTV Trending Dramas Monitor

Returns the short dramas currently topping **FlexTV's rankings** — the
dramas clip creators, affiliate marketers and short-drama fans are
actually watching right now, with view counts you can sort and compare.

### What you get

- **Dataset — one item per trending drama:** `rank`, `tab`, `title`,
  `seriesId`, `url`, `views` (parsed to a plain number), `viewsRaw`
  (as shown on FlexTV, e.g. `"46.9K"`), `collects`, `likes`, `genres`,
  `cover`, `description`, `serialStatus`, `isNew`, `platform`.
- **`summary.json`** (key-value store): the tab requested, rows per tab,
  dramas returned, and the source URL.

### Input

| Field | What it is |
|---|---|
| `tab` | Which ranking tab to return: `daily-top`, `best-selling`, `new-release`, `must-watch`, or `all` (default — all four tabs, deduplicated by drama). |
| `limit` | Maximum dramas returned (default 20, 1–40). All four tabs together hold 40 entries, about 29 unique dramas. |

### How the data is fetched

The free public FlexTV rankings page — **no API key, no login**:

`GET https://www.flextv.cc/en/rankings/daily-top`

The page is Nuxt SSR; its `__NUXT_DATA__` blob holds the four ranking
tabs with 10 dramas each. The raw `webGetRankingList` API is **not**
used — its response data is encrypted and only decodes client-side,
while the SSR payload already contains the decoded data.

One honest caveat: the view count shown for a drama is the count for
that tab — the same drama can show a daily count in Daily Top
(`"26.9K"`) and a lifetime count in Must Watch (`"1.1B"`). The row
keeps the tab it came from, so compare views within one tab, or use
`tab: "all"` (first-seen tab wins) for a deduplicated overview.

### Sample output

Real rows fetched 2026-11-17 (Daily Top):

```json
{
  "rank": 1,
  "tab": "daily-top",
  "tabLabel": "Daily Top",
  "title": "A Pinch of Little Witch",
  "seriesId": "A3zjDM5ZXY",
  "url": "https://www.flextv.cc/en/drama/A3zjDM5ZXY",
  "views": 46900,
  "viewsRaw": "46.9K",
  "collects": 161700,
  "likes": 6600,
  "genres": ["Clapback", "Female-Centric"],
  "cover": "https://file-cdn.flextv.cc/image/fc/51e488cb638e3fd0841ade6c52e188.jpg",
  "description": "Homeless little witch Mia saves the head of the powerful Lancaster family—and gets adopted into his home...",
  "serialStatus": 1,
  "isNew": false,
  "platform": "flextv"
}
```

```json
{
  "rank": 1,
  "tab": "must-watch",
  "tabLabel": "Must Watch",
  "title": "Mr. Williams! Madame Is Dying",
  "seriesId": "lmEZqy6Z8Q",
  "url": "https://www.flextv.cc/en/drama/lmEZqy6Z8Q",
  "views": 1100000000,
  "viewsRaw": "1.1B",
  "collects": 9800000,
  "likes": 9500,
  "genres": ["Love-Torture", "Married First"],
  "platform": "flextv"
}
```

### Limits

- No episode count: the rankings payload does not carry one.
- `serialStatus` is FlexTV's raw status code, passed through unchanged
  (all live rows currently report `1`).
- Rankings change through the day; run daily (or more often) to track
  what is climbing.

# Actor input Schema

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

Maximum dramas returned per run (1-40). All four tabs together hold 40 entries, deduplicated to about 29 unique dramas.

## `tab` (type: `string`):

Which FlexTV ranking tab to return: daily-top, best-selling, new-release, must-watch, or all (all four tabs, deduplicated by drama).

## Actor input object example

```json
{
  "limit": 20,
  "tab": "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,
    "tab": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesperxiv/flextv-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,
    "tab": "all",
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesperxiv/flextv-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/HShmpNcEURG5eecwN/builds/yN6GnaVFbox26qVOi/openapi.json
