---
title: "Douyin (TikTok China) User Search API (V2)"
description: "Searches Douyin (TikTok China) users by keyword with page-based pagination and optional account-type filtering. Use it to discover creators, brands, or verified accounts for research."
aiUsagePrompt: true
---

# Douyin \(TikTok China\) User Search API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/search-user/v2\"")'
  :summary='JSON.parse("\"User Search (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/user-search-v2-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"The search keyword.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Page number (starting from 1).\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"userType\",\"in\":\"query\",\"description\":\"Filter by user type.\\n\\nAvailable Values:\\n- `common_user`: Common User\\n- `enterprise_user`: Enterprise User\\n- `personal_user`: Verified Individual User\",\"required\":false,\"schema\":{\"type\":\"string\",\"description\":\"Douyin - User Search Type Filter\",\"enum\":[\"common_user\",\"enterprise_user\",\"personal_user\"]}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"One results page for a Douyin account search.\",\"properties\":{\"business_data\":{\"type\":\"array\",\"description\":\"Search result cards on this page. A card can contain a user profile or display-only content. Account results may repeat across pages.\",\"items\":{\"type\":\"object\",\"description\":\"One card in the search results.\",\"properties\":{\"data_id\":{\"type\":\"string\",\"description\":\"Text identifier linking this card to its result entry.\"},\"card_id\":{\"type\":\"string\",\"description\":\"Card identifier reported in the search results.\"},\"type\":{\"type\":\"integer\",\"description\":\"Numeric card type code reported in the search results.\"},\"data\":{\"type\":\"object\",\"description\":\"Data carried by this result card.\",\"properties\":{\"raw_data\":{\"type\":\"string\",\"contentMediaType\":\"application/json\",\"contentSchema\":{\"type\":\"object\",\"description\":\"Parsed content of the result&#39;s JSON string.\",\"properties\":{\"user_info\":{\"type\":\"object\",\"description\":\"Public Douyin account profile returned for a user result.\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"Douyin account ID as text. Use this value to deduplicate account results across pages.\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"Public Douyin account identifier used in profile links.\"},\"unique_id\":{\"type\":\"string\",\"description\":\"Public Douyin handle reported for the account.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Display name of the account.\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"Reported follower count for the account.\"},\"verification_type\":{\"type\":\"integer\",\"description\":\"Numeric verification type code reported for the account.\"},\"enterprise_verify_reason\":{\"type\":\"string\",\"description\":\"Displayed enterprise certification text, which may be empty.\"},\"account_cert_info\":{\"type\":\"string\",\"contentMediaType\":\"application/json\",\"contentSchema\":{\"type\":\"object\",\"description\":\"Decoded certification badge information. The object may be empty.\",\"properties\":{\"label_style\":{\"type\":\"integer\",\"description\":\"Numeric display style code for the certification badge.\"},\"label_text\":{\"type\":\"string\",\"description\":\"Text displayed on the certification badge.\"},\"is_biz_account\":{\"type\":\"integer\",\"description\":\"Numeric business-account indicator reported with the certification badge.\"}}},\"description\":\"Optional certification badge information as JSON text. Parse it as a separate JSON value.\"},\"is_star\":{\"type\":\"boolean\",\"description\":\"Whether the account is marked with a star-account designation.\"},\"live_status\":{\"type\":\"integer\",\"description\":\"Numeric live broadcast status code reported for the account.\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"Thumbnail avatar variant.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Platform resource identifier for this avatar.\"},\"url_list\":{\"type\":\"array\",\"description\":\"Avatar URLs returned for this size variant.\",\"items\":{\"type\":\"string\",\"description\":\"One avatar URL.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Reported avatar width in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Reported avatar height in pixels.\"}}},\"avatar_medium\":{\"type\":\"object\",\"description\":\"Medium-size avatar variant.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Platform resource identifier for this avatar.\"},\"url_list\":{\"type\":\"array\",\"description\":\"Avatar URLs returned for this size variant.\",\"items\":{\"type\":\"string\",\"description\":\"One avatar URL.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Reported avatar width in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Reported avatar height in pixels.\"}}},\"avatar_larger\":{\"type\":\"object\",\"description\":\"Large avatar variant.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Platform resource identifier for this avatar.\"},\"url_list\":{\"type\":\"array\",\"description\":\"Avatar URLs returned for this size variant.\",\"items\":{\"type\":\"string\",\"description\":\"One avatar URL.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Reported avatar width in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Reported avatar height in pixels.\"}}},\"versatile_display\":{\"type\":\"string\",\"description\":\"Additional display text returned for the account.\"},\"display_info\":{\"type\":\"array\",\"description\":\"Information lines displayed with the account result.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed information line.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title of the displayed information line.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the displayed information line.\"},\"tag\":{\"type\":\"array\",\"description\":\"Tags shown on this information line.\",\"items\":{\"type\":\"object\",\"description\":\"One tag displayed on the information line.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Textual type of this tag.\"},\"description\":{\"type\":\"string\",\"description\":\"Displayed description of this tag.\"},\"icon_url\":{\"type\":\"string\",\"description\":\"Icon URL for this tag, when available.\"}}}}}}},\"user_tags\":{\"type\":\"array\",\"description\":\"Tags reported for this account.\",\"items\":{\"type\":\"object\",\"description\":\"One account tag.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Textual type of this tag.\"},\"description\":{\"type\":\"string\",\"description\":\"Displayed description of this tag.\"},\"icon_url\":{\"type\":\"string\",\"description\":\"Icon URL for this tag, when available.\"}}}}}},\"display\":{\"type\":\"object\",\"description\":\"Display content that can accompany a result without an account profile.\",\"properties\":{\"card_rank\":{\"type\":\"integer\",\"description\":\"Rank reported for this display card.\"},\"is_last_item\":{\"type\":\"integer\",\"description\":\"Numeric final-item indicator reported for the display card.\"},\"feedback\":{\"type\":\"object\",\"description\":\"Feedback metadata accompanying the display card.\"}}}}},\"description\":\"Result data returned as JSON text. Parse this string first. A display-only card may omit user_info.\"}}}}}},\"business_config\":{\"type\":\"object\",\"description\":\"Reported query and pagination information for the results page.\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"Search keyword reported for the current page.\"},\"card_count\":{\"type\":\"integer\",\"description\":\"Number of result cards reported for this page.\"},\"has_more\":{\"type\":\"integer\",\"description\":\"Pagination flag. A value of 1 indicates that another page is reported. End pagination at 0.\"},\"next_page\":{\"type\":\"object\",\"description\":\"Additional pagination metadata. Increment the page request parameter to continue.\",\"properties\":{\"cursor\":{\"type\":\"integer\",\"description\":\"Paging position reported in the response.\"},\"keyword\":{\"type\":\"string\",\"description\":\"Keyword included in the pagination metadata.\"}}}}},\"status_code\":{\"type\":\"integer\",\"description\":\"Inner status code reported by the search response.\"},\"success\":{\"type\":\"boolean\",\"description\":\"Success flag reported in the search data.\"}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/douyin/search-user/v2\"")' />

<p>Searches Douyin (TikTok China) users by keyword with page-based pagination and optional account-type filtering. Use it to discover creators, brands, or verified accounts for research.</p>

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for this API service. |
| <code>keyword</code> | query | <code>string</code> | Yes | - | The search keyword. |
| <code>page</code> | query | <code>integer</code> | No | <code>1</code> | Page number (starting from 1). |
| <code>userType</code> | query | <code>string</code> | No | - | Filter by user type.<br /><br><br>Available Values:<br /><br>- <code>common_user</code>: Common User<br /><br>- <code>enterprise_user</code>: Enterprise User<br /><br>- <code>personal_user</code>: Verified Individual User |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "User Search (V2)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE
API Endpoint: BASE_URL + /api/douyin/search-user/v2?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/douyin-tiktok-china/user-search-v2-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- keyword (query): The search keyword. (Required)
- page (query): Page number (starting from 1).
- userType (query): Filter by user type.

Available Values:
- `common_user`: Common User
- `enterprise_user`: Enterprise User
- `personal_user`: Verified Individual User

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 [🐍 Python]
import requests

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

url = BASE_URL + "/api/douyin/search-user/v2?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 [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/douyin/search-user/v2?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 [☕ 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/douyin/search-user/v2?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 [🐹 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/douyin/search-user/v2?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]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/douyin/search-user/v2?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;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/douyin-tiktok-china/user-search-v2-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

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

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | One results page for a Douyin account search. |
| <code>data.business_data</code> | <code>array</code> | Search result cards on this page. A card can contain a user profile or display-only content. Account results may repeat across pages. |
| <code>data.business_data[]</code> | <code>object</code> | One card in the search results. |
| <code>data.business_data[].data_id</code> | <code>string</code> | Text identifier linking this card to its result entry. |
| <code>data.business_data[].card_id</code> | <code>string</code> | Card identifier reported in the search results. |
| <code>data.business_data[].type</code> | <code>integer</code> | Numeric card type code reported in the search results. |
| <code>data.business_data[].data</code> | <code>object</code> | Data carried by this result card. |
| <code>data.business_data[].data.raw_data</code> | <code>string</code> | Result data returned as JSON text. Parse this string first. A display-only card may omit user_info. |
| <code>data.business_data[].data.raw_data (JSON)</code> | <code>object</code> | Parsed content of the result's JSON string. |
| <code>data.business_data[].data.raw_data (JSON).user_info</code> | <code>object</code> | Public Douyin account profile returned for a user result. |
| <code>data.business_data[].data.raw_data (JSON).user_info.uid</code> | <code>string</code> | Douyin account ID as text. Use this value to deduplicate account results across pages. |
| <code>data.business_data[].data.raw_data (JSON).user_info.sec_uid</code> | <code>string</code> | Public Douyin account identifier used in profile links. |
| <code>data.business_data[].data.raw_data (JSON).user_info.unique_id</code> | <code>string</code> | Public Douyin handle reported for the account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.nickname</code> | <code>string</code> | Display name of the account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.follower_count</code> | <code>integer</code> | Reported follower count for the account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.verification_type</code> | <code>integer</code> | Numeric verification type code reported for the account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.enterprise_verify_reason</code> | <code>string</code> | Displayed enterprise certification text, which may be empty. |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info</code> | <code>string</code> | Optional certification badge information as JSON text. Parse it as a separate JSON value. |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON)</code> | <code>object</code> | Decoded certification badge information. The object may be empty. |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON).label_style</code> | <code>integer</code> | Numeric display style code for the certification badge. |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON).label_text</code> | <code>string</code> | Text displayed on the certification badge. |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON).is_biz_account</code> | <code>integer</code> | Numeric business-account indicator reported with the certification badge. |
| <code>data.business_data[].data.raw_data (JSON).user_info.is_star</code> | <code>boolean</code> | Whether the account is marked with a star-account designation. |
| <code>data.business_data[].data.raw_data (JSON).user_info.live_status</code> | <code>integer</code> | Numeric live broadcast status code reported for the account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb</code> | <code>object</code> | Thumbnail avatar variant. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.uri</code> | <code>string</code> | Platform resource identifier for this avatar. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.url_list</code> | <code>array</code> | Avatar URLs returned for this size variant. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.url_list[]</code> | <code>string</code> | One avatar URL. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.width</code> | <code>integer</code> | Reported avatar width in pixels. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.height</code> | <code>integer</code> | Reported avatar height in pixels. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium</code> | <code>object</code> | Medium-size avatar variant. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.uri</code> | <code>string</code> | Platform resource identifier for this avatar. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.url_list</code> | <code>array</code> | Avatar URLs returned for this size variant. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.url_list[]</code> | <code>string</code> | One avatar URL. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.width</code> | <code>integer</code> | Reported avatar width in pixels. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.height</code> | <code>integer</code> | Reported avatar height in pixels. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger</code> | <code>object</code> | Large avatar variant. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.uri</code> | <code>string</code> | Platform resource identifier for this avatar. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.url_list</code> | <code>array</code> | Avatar URLs returned for this size variant. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.url_list[]</code> | <code>string</code> | One avatar URL. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.width</code> | <code>integer</code> | Reported avatar width in pixels. |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.height</code> | <code>integer</code> | Reported avatar height in pixels. |
| <code>data.business_data[].data.raw_data (JSON).user_info.versatile_display</code> | <code>string</code> | Additional display text returned for the account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info</code> | <code>array</code> | Information lines displayed with the account result. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[]</code> | <code>object</code> | One displayed information line. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].title</code> | <code>string</code> | Title of the displayed information line. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].text</code> | <code>string</code> | Text of the displayed information line. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag</code> | <code>array</code> | Tags shown on this information line. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[]</code> | <code>object</code> | One tag displayed on the information line. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[].type</code> | <code>string</code> | Textual type of this tag. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[].description</code> | <code>string</code> | Displayed description of this tag. |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[].icon_url</code> | <code>string</code> | Icon URL for this tag, when available. |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags</code> | <code>array</code> | Tags reported for this account. |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[]</code> | <code>object</code> | One account tag. |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[].type</code> | <code>string</code> | Textual type of this tag. |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[].description</code> | <code>string</code> | Displayed description of this tag. |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[].icon_url</code> | <code>string</code> | Icon URL for this tag, when available. |
| <code>data.business_data[].data.raw_data (JSON).display</code> | <code>object</code> | Display content that can accompany a result without an account profile. |
| <code>data.business_data[].data.raw_data (JSON).display.card_rank</code> | <code>integer</code> | Rank reported for this display card. |
| <code>data.business_data[].data.raw_data (JSON).display.is_last_item</code> | <code>integer</code> | Numeric final-item indicator reported for the display card. |
| <code>data.business_data[].data.raw_data (JSON).display.feedback</code> | <code>object</code> | Feedback metadata accompanying the display card. |
| <code>data.business_config</code> | <code>object</code> | Reported query and pagination information for the results page. |
| <code>data.business_config.keyword</code> | <code>string</code> | Search keyword reported for the current page. |
| <code>data.business_config.card_count</code> | <code>integer</code> | Number of result cards reported for this page. |
| <code>data.business_config.has_more</code> | <code>integer</code> | Pagination flag. A value of 1 indicates that another page is reported. End pagination at 0. |
| <code>data.business_config.next_page</code> | <code>object</code> | Additional pagination metadata. Increment the page request parameter to continue. |
| <code>data.business_config.next_page.cursor</code> | <code>integer</code> | Paging position reported in the response. |
| <code>data.business_config.next_page.keyword</code> | <code>string</code> | Keyword included in the pagination metadata. |
| <code>data.status_code</code> | <code>integer</code> | Inner status code reported by the search response. |
| <code>data.success</code> | <code>boolean</code> | Success flag reported in the search data. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/douyin/search-user/v2\"")' />

