platform_sourceinteger
Platform source, 1=Douyin, 2=Toutiao
Default: 1
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/search-field-options" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"task_category": 1,
"platform_source": 1
}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
platform_sourceintegerPlatform source, 1=Douyin, 2=Toutiao
Default: 1
task_categoryintegerTask category, 1=Douyin video, 6=Douyin live, 11=Toutiao article
Default: 1
Saved example response for this API; no live request is made when viewing it.
No saved response has been published. Run the API in Playground to inspect its response.