{
  "openapi": "3.0.1",
  "info": {
    "title": "Kwai & Kuaishou Scraper — Video, Profile, Search & Trending",
    "description": "Scrape Kwai and Kuaishou (快手) short-video data — no login, no browser. Kwai: video detail, creator profiles, creator video history, keyword search (videos + users), hashtag feeds. Kuaishou: video detail and the trending hot board. Clean unified JSON.",
    "version": "0.0",
    "x-build-id": "j60Rm6nSrrflahrbz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~kwai-kuaishou-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-kwai-kuaishou-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/memo23~kwai-kuaishou-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-kwai-kuaishou-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/memo23~kwai-kuaishou-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-kwai-kuaishou-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": {
          "startUrls": {
            "title": "Kwai / Kuaishou URLs or IDs",
            "type": "array",
            "description": "Kwai video URLs, Kwai profile URLs (@handle), or Kuaishou short-video URLs. Also accepts bare IDs. Each is auto-classified:\n- Kwai video → full video detail\n- Kwai profile (@handle) → creator profile (turn on 'Also scrape creator videos' to add their posts)\n- Kuaishou short-video → full video detail",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "kwaiCreatorVideos": {
            "title": "Kwai: also scrape creator videos",
            "type": "boolean",
            "description": "For each Kwai profile in the URL list, also scrape the creator's posted videos (paginated).",
            "default": false
          },
          "maxCreatorVideos": {
            "title": "Max videos per Kwai creator",
            "minimum": 1,
            "type": "integer",
            "description": "Upper bound on videos collected per Kwai creator when 'Also scrape creator videos' is on.",
            "default": 40
          },
          "kwaiSearchKeywords": {
            "title": "Kwai: video search keywords",
            "type": "array",
            "description": "Keyword video search on Kwai. Each keyword returns a page of matching videos. Chinese, English and mixed queries all work.",
            "items": {
              "type": "string"
            }
          },
          "kwaiUserKeywords": {
            "title": "Kwai: creator search keywords",
            "type": "array",
            "description": "Keyword creator search on Kwai — find influencers by niche. Each keyword returns matching creators with follower counts.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max results per Kwai keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Upper bound on rows per Kwai keyword (videos or creators).",
            "default": 40
          },
          "kwaiHashtags": {
            "title": "Kwai: hashtag / topic names",
            "type": "array",
            "description": "Kwai hashtag or topic names, with or without the leading #. Each returns a page of videos under that topic.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerHashtag": {
            "title": "Max videos per Kwai hashtag",
            "minimum": 1,
            "type": "integer",
            "description": "Upper bound on videos collected per Kwai hashtag.",
            "default": 40
          },
          "kuaishouHotBoard": {
            "title": "Kuaishou: trending hot board (快手热榜)",
            "type": "boolean",
            "description": "Scrape the Kuaishou trending hot board — one row per trending topic, with its name, view count and the IDs of its top videos.",
            "default": false
          },
          "kuaishouHotBoardVideos": {
            "title": "Kuaishou: expand hot-board videos",
            "type": "boolean",
            "description": "For each trending topic, also fetch full video detail for its top videos (views, likes, comments, MP4 URL, creator). Independent of the topic rows above.",
            "default": false
          },
          "maxHotBoardVideos": {
            "title": "Max Kuaishou trending videos",
            "minimum": 1,
            "type": "integer",
            "description": "Upper bound on the number of trending videos expanded across the whole hot board.",
            "default": 60
          },
          "kwaiCookie": {
            "title": "Kwai cookie (optional, beta)",
            "type": "string",
            "description": "A logged-in kwai.com cookie string. Kwai comments are login-walled on the web; a valid cookie here is intended to unlock them. This path is BETA and not guaranteed. Video, profile, creator-videos, search and hashtag scraping all work without it."
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on the number of dataset items across the whole run. Leave empty for no cap."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The Actor ships a built-in residential proxy, so you usually leave this off. Supply your own proxy only if you need a specific region or provider.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}