{
  "openapi": "3.0.1",
  "info": {
    "title": "Short Drama API",
    "description": "Drama & short-drama catalogs from the Movies API Gateway. 40 providers (DramaWave, ReelShort, NetShort, DramaBox, ShortMax, FlexTV, iDrama, StardustTV2, CubeTV, MoboReel, GoodShort.....), one interface, cursor-paginated. Built for streaming sites, aggregators, and SEO pipelines.",
    "version": "1.0",
    "x-build-id": "Ry9WS5s1T5rLf1zQ9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ezvidnet~short-drama-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ezvidnet-short-drama-api",
        "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/ezvidnet~short-drama-api/runs": {
      "post": {
        "operationId": "runs-sync-ezvidnet-short-drama-api",
        "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/ezvidnet~short-drama-api/run-sync": {
      "post": {
        "operationId": "run-sync-ezvidnet-short-drama-api",
        "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",
        "required": [
          "apiKey",
          "provider"
        ],
        "properties": {
          "apiKey": {
            "title": "Your registered Ezvid API key",
            "type": "string",
            "description": "Required: obtain your own key from Ezvid (https://api.ezvid.net). Sent only as the X-API-Key header. No shared key is provided."
          },
          "provider": {
            "title": "Provider",
            "enum": [
              "bilitv",
              "bstation",
              "cubetv",
              "dotdrama",
              "dramabite",
              "dramabox",
              "dramanova",
              "dramawave",
              "flareflow",
              "flextv",
              "flickreels",
              "freereels",
              "golddrama",
              "goodshort",
              "happyshort",
              "idrama",
              "kalostv",
              "moboreels",
              "netshort",
              "pinedrama",
              "rapidtv",
              "raptdrama",
              "reelshort",
              "serealplus",
              "shortmax",
              "shortswave",
              "stardusttv2",
              "starshort",
              "storyreel",
              "topdrama",
              "vibeshort"
            ],
            "type": "string",
            "description": "Choose the Ezvid content provider."
          },
          "action": {
            "title": "Action",
            "type": "string",
            "description": "Common action such as home, search, detail, episodes, languages, source, or an exact resource template. Ignored when Resource is supplied.",
            "default": "home"
          },
          "resource": {
            "title": "Resource (optional)",
            "type": "string",
            "description": "Exact resource template from RESOURCES.md or Ezvid docs, e.g. channels/{channelId}/subchannels. A full /api/provider/... template is also accepted. Overrides Action; keep placeholders and supply pathParams."
          },
          "query": {
            "title": "Search text",
            "type": "string",
            "description": "Mapped to the documented q, query or keyword parameter."
          },
          "id": {
            "title": "Content / resource ID",
            "type": "string",
            "description": "Shortcut for the first path parameter or DramaBox bookId. Use pathParams for named parameters."
          },
          "ep": {
            "title": "Episode ID or order",
            "type": "string",
            "description": "Shortcut for ep, episode, episodeId, episodeOrder, episodeNum or chapterId. Some providers require an opaque ID rather than an episode number."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Mapped to language, lang or locale when the resource supports it. Omit to use the upstream default."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Sent only when the resource documents the category query parameter."
          },
          "pathParams": {
            "title": "Named path parameters",
            "type": "object",
            "description": "Exact path parameter names, e.g. {\"channelId\":\"123\"}. These override ID/episode shortcuts."
          },
          "queryParams": {
            "title": "Native query parameters",
            "type": "object",
            "description": "Exact documented query parameters, e.g. {\"lang\":\"en\",\"classify\":\"terbaru\"}. These override shortcuts. Unknown keys are rejected."
          },
          "limit": {
            "title": "Page size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Sent only to resources supporting limit; upstream may cap it.",
            "default": 20
          },
          "page": {
            "title": "Starting page",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Starting page for resources supporting page or p."
          },
          "cursor": {
            "title": "Starting cursor",
            "type": "string",
            "description": "Opaque continuation token from a prior response, for resources supporting cursor."
          },
          "maxPages": {
            "title": "Maximum requests",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pages per run. Stops earlier at an empty page, repeated page/token, or end marker. Resources without pagination run once.",
            "default": 1
          },
          "pagination": {
            "title": "Pagination",
            "enum": [
              "auto",
              "none",
              "cursor",
              "page"
            ],
            "type": "string",
            "description": "Auto prefers an explicit cursor, then page/p, then cursor. Select none to fetch only one response.",
            "default": "auto"
          },
          "outputMode": {
            "title": "Output format",
            "enum": [
              "records",
              "response"
            ],
            "type": "string",
            "description": "Records unwraps common list/data envelopes and adds _meta. Response preserves each complete JSON response under response. Provider fields are preserved, not normalized.",
            "default": "records"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}