Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

TikTok Web General Search

Dokumentacja API
https://api.sandbase.ai/v1/api/tiktok/web/general-search

Returns general TikTok search results matching a specified keyword. Supports pagination through offset and search ID parameters.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 2 opcjonalnych

Playground

Wejście
Search keyword
Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor.
Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

TikTok Web General Search API

Call this endpoint with a keyword to look up general search results across TikTok Web, using offset and search_id for subsequent page queries.

Use cases

  • Look up TikTok search listings for specific keywords.
  • Retrieve user and content search cards across TikTok Web.
  • Paginate through multi-category search results.

Request

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

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
offsetintegerNoPage cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor.
search_idstringNoSearch id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request.

Example response

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

{
  "data": [
    {
      "card_title": "Users",
      "type": 4,
      "common": {
        "doc_id_str": "1"
      }
    }
  ]
}

Notes

  • Set offset to 0 on initial requests, then pass subsequent cursor offsets for pagination.
  • Leave search_id empty on the initial request and pass the returned identifier in subsequent calls.

Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.05 za wywołanieJSON

Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API TikTok Web General Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/web/general-search z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API TikTok Web General Search?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API TikTok Web General Search?

Wymagane: keyword (string). Opcjonalne: offset (integer) i search_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API TikTok Web General Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego TikTok lub klucza API?

Nie. TikTok Web General Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API TikTok.