{
  "openapi": "3.0.1",
  "info": {
    "title": "红果短剧 API | Hongguo Search, Details & Comments",
    "description": "搜索红果短剧，获取剧集详情与分集目录、整剧和单集评论及回复、各清晰度视频下载地址与解密密钥。Search Hongguo dramas, get series and episodes, comments, replies and video download links. Export JSON, CSV or Excel. No SocialDataX API key required.",
    "version": "0.1",
    "x-build-id": "ijdjLGhmTwqygMcIa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/socialdatax~socialdatax-hongguo-data-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-socialdatax-socialdatax-hongguo-data-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/socialdatax~socialdatax-hongguo-data-api/runs": {
      "post": {
        "operationId": "runs-sync-socialdatax-socialdatax-hongguo-data-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/socialdatax~socialdatax-hongguo-data-api/run-sync": {
      "post": {
        "operationId": "run-sync-socialdatax-socialdatax-hongguo-data-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",
        "properties": {
          "operation": {
            "title": "操作 / Operation",
            "enum": [
              "search_contents",
              "get_series_detail",
              "get_series_comments",
              "get_series_comment_replies",
              "get_video_comments",
              "get_video_comment_replies",
              "get_video_download_links"
            ],
            "type": "string",
            "description": "选择能力，只填写该操作需要的字段。",
            "default": "search_contents"
          },
          "keyword": {
            "title": "搜索词 / Keyword",
            "maxLength": 200,
            "type": "string",
            "description": "红果综合搜索的关键词或短语，例如剧名、人物名或题材；最多200个字符，部分表情符号计为两个字符。不含控制字符；不要传链接、作品 ID 或分页令牌。"
          },
          "content_types": {
            "title": "搜索内容类型 / Content types",
            "type": "array",
            "description": "内容类型可多选，不可重复。仅在用户明确限定内容类型时设置；未限定时省略或传空列表（不限），不要根据搜索关键词自行缩窄类型。live_action=真人剧，comic=漫剧（非静态漫画），ai_drama=红果平台单独列出的AI剧分类，film_tv=影视剧，short_video=短视频，image_text=图文。",
            "items": {
              "type": "string",
              "enum": [
                "live_action",
                "comic",
                "ai_drama",
                "film_tv",
                "short_video",
                "image_text"
              ],
              "enumTitles": [
                "真人剧",
                "漫剧",
                "AI剧",
                "影视剧",
                "短视频",
                "图文"
              ]
            },
            "default": []
          },
          "series_id": {
            "title": "整剧 ID / Series ID",
            "type": "string",
            "description": "整部剧的ID，可使用红果搜索结果中的series_id；1至19位正十进制数字字符串，不是单集video_id。详情与整剧剧评可改填url；二选一。"
          },
          "url": {
            "title": "整剧分享链接 / Series share link",
            "type": "string",
            "description": "红果剧集分享链接，或包含该链接的整段分享文案；支持 https://novelquickapp.com/s/836Rt1LxwF4/ 这类链接。一次提供一条剧集链接。与series_id二选一，仅用于剧集详情和整剧剧评。"
          },
          "video_id": {
            "title": "视频 ID / Video ID",
            "type": "string",
            "description": "红果视频ID，支持剧集单集及独立视频；1至19位正十进制数字字符串。评论回复必填；单集评论和取址可改填video_url。"
          },
          "video_url": {
            "title": "单集分享链接 / Episode share link",
            "type": "string",
            "description": "单集评论或取址使用，与video_id二选一。支持novelquickapp.com漫剧单集分享链接或整段分享文案；链接必须明确对应单集。"
          },
          "comment_id": {
            "title": "评论 ID / Comment ID",
            "type": "string",
            "description": "回复操作必填，来自相应整剧剧评或视频评论列表。整剧level=3时填父回复ID。"
          },
          "level": {
            "title": "整剧回复层级 / Series reply level",
            "minimum": 2,
            "maximum": 3,
            "type": "integer",
            "description": "回复层级：2读取主评论下的回复，3读取某条回复下的楼中楼；默认2。仅用于整剧剧评回复。",
            "default": 2
          },
          "page_token": {
            "title": "分页令牌 / Page token",
            "type": "string",
            "description": "首屏留空，续页原样回传OUTPUT或Dataset中的完整令牌，保持操作、关键词、类型和目标不变；原设备不可用时从首页重新获取。"
          },
          "max_items": {
            "title": "最多导出条数 / Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "搜索、评论与回复的总导出上限。详情每部剧1条（含完整分集目录），取址每个视频1条（含各清晰度）。每千条成功结果$2，另有启动费。",
            "default": 20
          },
          "auto_paginate": {
            "title": "自动翻页 / Auto paginate",
            "type": "boolean",
            "description": "搜索、评论和回复按完整令牌继续，达到max_items或末页时停止。",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}