Skip to content

Kuaishou Video Search API (V1) ​

GET
API health status
Healthy Available Limited Mostly unavailable No data
Loading health status...

Search public Kuaishou videos by keyword with cursor-based pagination. Use it to discover relevant videos and continue through additional result pages.

Parameters ​

NameInTypeRequiredDefaultDescription
tokenquerystringYes-Access token for this API service.
keywordquerystringYes-The search keyword to find videos.
cursorquerystringNo-Pagination cursor returned by the previous response. Omit or leave blank for the first page; maximum 256 characters.

Code Samples ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE'
text
I want to use the "Video Search (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE
API Endpoint: BASE_URL + /api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/kuaishou/video-search-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- keyword (query): The search keyword to find videos. (Required)
- cursor (query): Pagination cursor returned by the previous response. Omit or leave blank for the first page; maximum 256 characters.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
python
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
js
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
go
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/kuaishou/search-video/v1?token=YOUR_API_KEY&keyword=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}

Response Fields ​

Key fields in a successful response (code = 0).

Search results and pagination5 fields

data

FieldTypeDescription
cursorstring | nullContinuation cursor for the same keyword. Pass it unchanged to fetch the next page. Null means no continuation cursor is available. Results may overlap between pages.
mixFeedsarrayOrdered collection of media results, related searches and other result cards.
mixFeeds[].itemTypeintegerResult kind code. Observed kinds include 5 for media posts, 9 for suggested searches and 25 for a structured card.
mixFeeds[].rankintegerRank value reported for the item. Different result kinds can use different rank ranges.
mixFeeds[].positionintegerPosition hint reported for a related-search group when available.
Post information21 fields

data.mixFeeds[].feed

A Kuaishou media post result. Playback fields are supplied for video posts when available.

FieldTypeDescription
photo_idintegerKuaishou numeric post ID. Preserve the full integer when reading it in JavaScript.
captionstringPost caption returned by Kuaishou.
timestampintegerPosting time as a Unix timestamp in milliseconds.
timestringDisplay text for the post’s publication time.
typeintegerMedia-type code reported for this post.
longVideobooleanWhether Kuaishou marks this post as a long video.
durationintegerVideo duration in milliseconds when available.
poiobjectTagged place details returned with the post when available.
poi.idintegerNumeric place ID. Preserve the full integer when reading it in JavaScript.
poi.titlestringName displayed for the place.
poi.citystringCity name returned for the place.
poi.addressstringAddress reported for the place.
poi.latitudenumberLatitude reported for the tagged place.
poi.longitudenumberLongitude reported for the tagged place.
disclaimerMessagestringDisclaimer text supplied for the post.
disclaimerMsgV2objectAdditional disclaimer information supplied for the post.
disclaimerMsgV2.contentstringDisclaimer text supplied for the post.
disclaimerMsgV2.addAiMarkbooleanWhether the disclaimer calls for an AI content label.
danmakuInfoobjectOn-screen comment metadata when supplied for a post.
danmakuInfo.hasDanmakubooleanWhether the response reports on-screen comments for the post.
danmakuInfo.disablePostbooleanWhether posting an on-screen comment is disabled.
Author13 fields

data.mixFeeds[].feed

FieldTypeDescription
user_idintegerKuaishou numeric account ID of the post author.
user_namestringDisplay name of the post author.
kwaiIdstringPublic Kuaishou ID string when available.
user_sexstringGender code reported with the author information.
headurlsarrayAvatar image URLs for the post author.
headurls[]objectOne media URL and its delivery label.
headurls[].urlstringURL of the media file.
headurls[].cdnstringDelivery label reported for this URL.
verifiedbooleanWhether Kuaishou reports the post author as verified.
verifiedDetailobjectVerification details returned for the post author.
verifiedDetail.descriptionstringVerification description supplied by Kuaishou.
verifiedDetail.typeintegerVerification category code reported by Kuaishou.
verifiedDetail.iconTypeintegerIcon code reported for the verification badge.
Engagement6 fields

data.mixFeeds[].feed

FieldTypeDescription
view_countintegerView count reported for the post.
like_countintegerLike count reported for the post.
comment_countintegerComment count reported for the post.
collect_countintegerSave count reported for the post.
share_countintegerShare count reported for the post.
downloadCountintegerDownload count reported for the post when available.
Covers and playback49 fields

data.mixFeeds[].feed

FieldTypeDescription
cover_thumbnail_urlsarrayCover thumbnail URLs.
cover_thumbnail_urls[]objectOne media URL and its delivery label.
cover_thumbnail_urls[].urlstringURL of the media file.
cover_thumbnail_urls[].cdnstringDelivery label reported for this URL.
cover_urlsarrayCover image URLs when returned.
cover_urls[]objectOne media URL and its delivery label.
cover_urls[].urlstringURL of the media file.
cover_urls[].cdnstringDelivery label reported for this URL.
ff_cover_thumbnail_urlsarrayAdditional cover thumbnail URLs when returned.
ff_cover_thumbnail_urls[]objectOne media URL and its delivery label.
ff_cover_thumbnail_urls[].urlstringURL of the media file.
ff_cover_thumbnail_urls[].cdnstringDelivery label reported for this URL.
override_cover_thumbnail_urlsarrayOverride cover thumbnail URLs when returned.
override_cover_thumbnail_urls[]objectOne media URL and its delivery label.
override_cover_thumbnail_urls[].urlstringURL of the media file.
override_cover_thumbnail_urls[].cdnstringDelivery label reported for this URL.
override_cover_sizeobjectDimensions reported for the cover display.
override_cover_size.widthintegerCover width in pixels in the display metadata.
override_cover_size.heightintegerCover height in pixels in the display metadata.
main_mv_urlsarrayPrimary video playback URLs when returned.
main_mv_urls[]objectOne media URL and its delivery label.
main_mv_urls[].urlstringURL of the media file.
main_mv_urls[].cdnstringDelivery label reported for this URL.
main_mv_urls_sd_h265arrayStandard-definition H.265 playback URLs when returned.
main_mv_urls_sd_h265[]objectOne media URL and its delivery label.
main_mv_urls_sd_h265[].urlstringURL of the media file.
main_mv_urls_sd_h265[].cdnstringDelivery label reported for this URL.
streamManifestobjectPlayback manifest with available video encodings.
streamManifest.videoIdstringVideo identifier inside the playback manifest.
streamManifest.adaptationSetarrayPlayback sets grouped in the manifest.
streamManifest.adaptationSet[]objectOne set of video encodings.
streamManifest.adaptationSet[].idintegerIdentifier of the playback set within the manifest.
streamManifest.adaptationSet[].durationintegerDuration reported for the playback set in milliseconds.
streamManifest.adaptationSet[].representationarrayAlternative encodings of the same source video.
streamManifest.adaptationSet[].representation[]objectMetadata for one playback encoding.
streamManifest.adaptationSet[].representation[].idintegerIdentifier of the playback variant within the manifest.
streamManifest.adaptationSet[].representation[].urlstringPrimary playback URL for this variant.
streamManifest.adaptationSet[].representation[].backupUrlarrayAlternate playback URLs for this variant.
streamManifest.adaptationSet[].representation[].backupUrl[]stringAlternate playback URL.
streamManifest.adaptationSet[].representation[].widthintegerVideo width in pixels.
streamManifest.adaptationSet[].representation[].heightintegerVideo height in pixels.
streamManifest.adaptationSet[].representation[].frameRatenumberFrame rate for this variant in frames per second.
streamManifest.adaptationSet[].representation[].fileSizeintegerMedia file size in bytes when available.
streamManifest.adaptationSet[].representation[].avgBitrateintegerAverage bitrate of the encoding in kilobits per second.
streamManifest.adaptationSet[].representation[].videoCodecstringCodec label reported for the video encoding.
streamManifest.adaptationSet[].representation[].codecsstringCodec list or identifier returned for this variant.
streamManifest.adaptationSet[].representation[].qualityLabelstringDisplay label for the playback quality.
streamManifest.adaptationSet[].representation[].qualityTypestringPlayback quality code reported by Kuaishou.
streamManifest.adaptationSet[].representation[].defaultSelectbooleanWhether the manifest marks this variant for default selection.
Music and soundtrack26 fields

data.mixFeeds[].feed

FieldTypeDescription
musicobjectMusic metadata associated with the post when available.
music.idstringMusic or soundtrack ID.
music.namestringName displayed for the music or soundtrack.
music.artiststringArtist name returned in the music metadata.
music.durationintegerDuration of the music or soundtrack in whole seconds.
music.audioUrlsarrayAudio file URLs.
music.audioUrls[]objectOne media URL and its delivery label.
music.audioUrls[].urlstringURL of the media file.
music.audioUrls[].cdnstringDelivery label reported for this URL.
music.imageUrlsarrayCover image URLs for the music or soundtrack.
music.imageUrls[]objectOne media URL and its delivery label.
music.imageUrls[].urlstringURL of the media file.
music.imageUrls[].cdnstringDelivery label reported for this URL.
soundTrackobjectSoundtrack metadata associated with the post when available.
soundTrack.idstringMusic or soundtrack ID.
soundTrack.namestringName displayed for the music or soundtrack.
soundTrack.artiststringArtist name returned in the music metadata.
soundTrack.durationintegerDuration of the music or soundtrack in whole seconds.
soundTrack.audioUrlsarrayAudio file URLs.
soundTrack.audioUrls[]objectOne media URL and its delivery label.
soundTrack.audioUrls[].urlstringURL of the media file.
soundTrack.audioUrls[].cdnstringDelivery label reported for this URL.
soundTrack.imageUrlsarrayCover image URLs for the music or soundtrack.
soundTrack.imageUrls[]objectOne media URL and its delivery label.
soundTrack.imageUrls[].urlstringURL of the media file.
soundTrack.imageUrls[].cdnstringDelivery label reported for this URL.
Related searches2 fields

data.mixFeeds[].relatedSearches[]

FieldTypeDescription
keywordstringSuggested search keyword.
typestringCategory code reported for the suggestion.
Structured search cards19 fields

data.mixFeeds[].mixKbox[]

FieldTypeDescription
kboxObjectobjectComponents returned for the card.
kboxObject.TKDatasarrayContent components within the card.
kboxObject.TKDatas[]objectOne card component.
kboxObject.TKDatas[].jsonContentobjectStructured content returned with the search answer component.
kboxObject.TKDatas[].jsonContent.titlestringCard title when supplied.
kboxObject.TKDatas[].jsonContent.questionstringQuestion shown on the search answer card.
kboxObject.TKDatas[].jsonContent.listarraySections within the search answer.
kboxObject.TKDatas[].jsonContent.list[]objectA section or entry within the card.
kboxObject.TKDatas[].jsonContent.list[].titlestringHeading shown for this section, when supplied.
kboxObject.TKDatas[].jsonContent.list[].contentstringText content returned for the section.
kboxObject.TKDatas[].jsonContent.list[].contentNoMarkdownstringPlain-text form of the section content when supplied.
kboxObject.TKDatas[].jsonContent.list[].linkUrlstringLink attached to the section, when supplied.
kboxObject.TKDatas[].jsonContent.list[].referListarrayReferences attached to the section.
kboxObject.TKDatas[].jsonContent.list[].referList[]objectOne reference listed in a search answer.
kboxObject.TKDatas[].jsonContent.list[].referList[].titlestringTitle shown for the reference.
kboxObject.TKDatas[].jsonContent.list[].referList[].photoIdstringPost ID string returned with the reference.
kboxObject.TKDatas[].jsonContent.list[].referList[].linkUrlstringLink attached to the reference.
kboxObject.TKDatas[].jsonContent.list[].referList[].sourcestringSource label supplied for the reference.
kboxObject.TKDatas[].jsonContent.referTitlestringHeading supplied for the reference list.
Other fields6 fields
Field pathTypeDescription
dataobjectKuaishou keyword search results and continuation information.
data.mixFeeds[]objectOne item in the mixed results.
data.mixFeeds[].relatedSearchesarraySuggested searches returned alongside post results.
data.mixFeeds[].relatedSearches[]objectOne suggested search term.
data.mixFeeds[].mixKboxarrayAdditional structured cards shown among search results when available.
data.mixFeeds[].mixKbox[]objectOne structured search card.

Response Example ​

Loading the response example...