{
  "openapi": "3.0.1",
  "info": {
    "title": "DramaWave.tv Scraper — Short-Drama Catalog, Genres & Episodes",
    "description": "Scrape the dramawave.tv short-drama catalog in 19 languages: titles, synopses, genres, episode lists and the originating platform (ReelShort, FreeReels, PineDrama). Public-JSON based (no browser) — fast and cheap.",
    "version": "1.0",
    "x-build-id": "5CtyqS7CFRWYH2Dn5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalbench~dramawave-tv-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalbench-dramawave-tv-scraper",
        "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/signalbench~dramawave-tv-scraper/runs": {
      "post": {
        "operationId": "runs-sync-signalbench-dramawave-tv-scraper",
        "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/signalbench~dramawave-tv-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-signalbench-dramawave-tv-scraper",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "catalog",
              "genre",
              "creator",
              "search",
              "trending",
              "urls"
            ],
            "type": "string",
            "description": "What to scrape. **Full catalog** pages through every title in the chosen language(s). **By genre** / **By source platform** / **Search** filter that catalog server-side. **Trending** returns the site's own top-40 ranking (see the warning on that field). **Specific title URLs** scrapes only the URLs you provide.",
            "default": "catalog"
          },
          "language": {
            "title": "Content language(s)",
            "type": "array",
            "description": "Each language is a **separate catalog** on this site, with its own rows, its own IDs and its own localized slugs — the same drama appears once per language. Approximate title counts: en 6,570 · pt 5,650 · id 2,320 · es 1,940 · fr 1,680 · de 1,620 · tr 1,360 · it 1,280 · ro 1,270 · pl 1,170 · th 1,100 · ja 1,010 · vi 980 · zh 790 · cs 740 · ko 690 · ar 640 · ru 470 · bg 300.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "pt",
                "id",
                "es",
                "fr",
                "de",
                "tr",
                "it",
                "ro",
                "pl",
                "th",
                "ja",
                "vi",
                "zh",
                "cs",
                "ko",
                "ar",
                "ru",
                "bg"
              ],
              "enumTitles": [
                "English",
                "Português",
                "Bahasa Indonesia",
                "Español",
                "Français",
                "Deutsch",
                "Türkçe",
                "Italiano",
                "Română",
                "Polski",
                "ไทย",
                "日本語",
                "Tiếng Việt",
                "中文",
                "Čeština",
                "한국어",
                "العربية",
                "Русский",
                "Български"
              ]
            },
            "default": [
              "en"
            ]
          },
          "genreSlugs": {
            "title": "Genre slugs (for \"By genre\" mode)",
            "type": "array",
            "description": "Genre **slugs**, which are language-specific — e.g. `identity-twist`, `the-comeback`, `family-drama`, `billionaire` for English; `vinganca`, `vida-urbana`, `crescimento-feminino` for Portuguese. Numeric genre IDs do **not** work. An unknown slug fails fast with the live list of valid slugs for that language.",
            "items": {
              "type": "string"
            }
          },
          "creatorSlugs": {
            "title": "Source platform slugs (for \"By source platform\" mode)",
            "type": "array",
            "description": "Which originating platform's re-hosted catalog to scrape, by slug — e.g. `reelshort` (~2,820 English titles), `freereels` (~3,550), `pinedrama` (~200). Availability varies by language; an unknown slug fails fast with the live list.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (for \"Search\" mode)",
            "type": "array",
            "description": "Free-text search over titles, e.g. `billionaire` (~271 English matches). Each term is paginated independently.",
            "items": {
              "type": "string"
            }
          },
          "trendingPeriod": {
            "title": "Trending period (for \"Trending\" mode)",
            "enum": [
              "today",
              "week",
              "month",
              "all"
            ],
            "type": "string",
            "description": "⚠️ **Read before using.** This ranking reflects dramawave.tv's **own** traffic, which is very small (the #1 title accrues roughly eight hours of total viewing per day). It is **not** a proxy for what is trending on ReelShort, DramaBox or the DramaWave app. It also returns a fixed 40 titles with no pagination.",
            "default": "week"
          },
          "titleUrls": {
            "title": "Title URLs (for \"Specific title URLs\" mode)",
            "type": "array",
            "description": "dramawave.tv drama URLs, e.g. https://dramawave.tv/en/drama/the-great-and-powerful-genie (Portuguese URLs have no language prefix: https://dramawave.tv/drama/ouco-o-coracao-das-donas).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of titles to store. This caps your cost — 1 stored title = 1 charge.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include genres, synopsis & full metadata",
            "type": "boolean",
            "description": "Fetch each title's detail endpoint to add **synopsis, genres, status, audio type and paywall shape** — none of which exist on the listing endpoint. Costs 1 extra request per title. Turn off for a fast, cheap ID/title/cover/episode-count-only run.",
            "default": true
          },
          "includeEpisodeList": {
            "title": "Include per-episode metadata",
            "type": "boolean",
            "description": "Add the full episode list (number, title, duration in seconds, free/locked). Requires \"Include genres, synopsis & full metadata\". Never includes video stream URLs.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests. dramawave.tv is a small single-operator site — please keep this low.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. **Not required** — this is an open public JSON API that answers direct requests fine. Enable it only if you hit rate limiting.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}