{
  "openapi": "3.0.1",
  "info": {
    "title": "Kwai Scraper API: Kwai Videos, Search, Creators, Transcripts",
    "description": "Kwai scraper API, no login: Kwai videos by keyword, video or share link, creator, hashtag, playlist or the for-you feed. Views, likes, comments, shares, caption, date, play link and renditions, the author with followers, music, and Kwai's own transcript and genres. Misses free.",
    "version": "0.1",
    "x-build-id": "WvxuLubp0xJCTaBZv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~kwai-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-kwai-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/hyperbach~kwai-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-kwai-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/hyperbach~kwai-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-kwai-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": {
          "keywords": {
            "title": "Search keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "Words to search on Kwai, one a line (as on kwai.com's search). Each keyword is read until maxItemsPerInput videos or the end of Kwai's results. A Kwai search is a ranked feed that changes with every call and has no count, so a keyword's row says TRUNCATED at the cap or LIST_END when no call brings a new video.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Kwai links",
            "maxItems": 5000,
            "type": "array",
            "description": "Any Kwai link, one a line: a video (https://www.kwai.com/@name/video/<id> or /video/<id>), a share link (https://k.kwai.com/p/<code>), a video id (19 digits), a creator page (https://www.kwai.com/@name), a topic (https://www.kwai.com/topic/<word>) or a playlist (https://www.kwai.com/@name/playlist/<id>). Kuaishou (kuaishou.com) links are not read: this Actor reads Kwai, the international app.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Creators",
            "maxItems": 1000,
            "type": "array",
            "description": "Kwai creators whose videos to read, one a line: an @handle, a page link, or the creator's id (3x…). Each creator gives a free profile row (followers, following, likes, videos, bio) and then its videos newest first, to maxItemsPerInput or the end of the creator's list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags (topics)",
            "maxItems": 1000,
            "type": "array",
            "description": "Kwai topics whose videos to read, one a line, with or without the # (futebol, #receita) or as a topic link.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeTrendingFeed": {
            "title": "Read Kwai's for-you feed",
            "type": "boolean",
            "description": "Also read Kwai's for-you (trending) feed, to maxItemsPerInput videos. Kwai serves this feed by the reader's region; this Actor reads it as Kwai shows it to its Brazilian and Latin American audience.",
            "default": false
          },
          "maxItemsPerInput": {
            "title": "Max videos per input",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most videos each keyword, creator, hashtag or playlist gives. 0 = the whole list (a keyword stops at 2,000: Kwai's search has no end of its own).",
            "default": 50
          },
          "maxItems": {
            "title": "Max videos (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged video rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "includeDetails": {
            "title": "Transcripts, genres and author counts",
            "type": "boolean",
            "description": "Kwai's own transcript (where Kwai made one), the genres, the audio and the author's followers, likes and videos on every row. A search carries them in its own answer; for links, creators, hashtags and playlists they take one extra call per 6 videos. Turn off for speed.",
            "default": true
          },
          "postedAfter": {
            "title": "Posted on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2})?(\\.\\d+)?Z?)?)?$",
            "type": "string",
            "description": "Keep only videos posted on or after this day (UTC), e.g. 2025-06-01. A creator's walk stops at its first older video (newest first), so nothing older is read; on a search, a hashtag or a playlist an older video is left out free.",
            "default": ""
          },
          "postedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Keep only videos posted in the last N days; 0 = no limit. With a date above too, the later of the two applies.",
            "default": 0
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Keep only videos with at least this many views; 0 = all. A video left out is free and takes no room in a cap.",
            "default": 0
          },
          "onlyCaptionMatches": {
            "title": "Only videos whose caption has the keyword",
            "type": "boolean",
            "description": "On a search, keep only videos whose caption or hashtags hold every word of the keyword (case and accents aside). Kwai's search also matches words the caption lacks. A video left out is free.",
            "default": false
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}