Douyin General Search (V2)

https://api.sandbase.ai/v1/api/douyin/search/general-search-v2

Returns search results from Douyin's general search tab. Supports filtering by keyword, sort method, post date, video duration, and content type.

Price
$0.01USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
0 required · 8 optional
Production route

Try the model

Playground

Open playground
Input
Backtrace identifier (empty for first request, obtained from previous response for pagination)
Content type filter
Pagination cursor (0 for the first page, use the last response cursor for subsequent pages)
Video duration filter
Search keyword, e.g., "cat"
Publish time filter
Search ID (empty for first request, obtained from previous response for pagination)
Sorting method
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.01 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

backtrace
string · optional
content_type
string · optional
cursor
integer · optional
filter_duration
string · optional
keyword
string · optional
publish_time
string · optional
search_id
string · optional
sort_type
string · optional

Access

Provider
Douyin
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/douyin/search/general-search-v2
Authentication
Bearer API key

API README

Douyin General Search (V2) API

Look up Douyin general search results using a query keyword and optional parameters for sorting and content filtering.

Use cases

  • Retrieve mixed search cards matching specific keywords on Douyin.
  • Filter Douyin search items by post date, video length, or sort order.
  • Paginate through general search rankings using session tokens.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/general-search-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Parameters

NameTypeRequiredDescription
cursorintegerNoPagination cursor (0 for the first page, use the last response cursor for subsequent pages)
keywordstringNoSearch keyword, e.g., "cat"
backtracestringNoBacktrace identifier (empty for first request, obtained from previous response for pagination)
search_idstringNoSearch ID (empty for first request, obtained from previous response for pagination)
sort_typestringNoSorting method
content_typestringNoContent type filter
publish_timestringNoPublish time filter
filter_durationstringNoVideo duration filter

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "business_data": [
    {
      "card_id": "douyin.doctype_aweme_image",
      "data_id": "0",
      "type": 1,
      "data": {
        "card_id": "douyin.doctype_aweme_image",
        "card_type": 1,
        "doc_type": 303,
        "provider_doc_id": 7621594405576706417,
        "provider_doc_id_str": "7621594405576706417",
        "type": 1
      },
      "log": {
        "search_result_id": "7621594405576706417"
      }
    }
  ]
}

Notes

  • Set cursor to 0 for initial requests and pass the returned value for subsequent pages.
  • Pass search_id and backtrace from previous responses to maintain pagination state.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/douyin/search/general-search-v2
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/douyin/search/general-search-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "cursor": 0,
  "keyword": "猫咪",
  "backtrace": "",
  "search_id": "",
  "sort_type": "0",
  "content_type": "0",
  "publish_time": "0",
  "filter_duration": "0"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Douyin General Search (V2) API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/search/general-search-v2 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Douyin General Search (V2) API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Douyin General Search (V2) API accept?

No parameters are required. Optional: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) and publish_time (string) and 2 more. The Parameters table and the Playground on this page list every field.

What does the Douyin General Search (V2) API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Douyin developer account or API key?

No. Douyin General Search (V2) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.