Search TikTok top results by keyword — videos, photos
scrapecreators.x.v1-tiktok-search-topSearches TikTok's 'Top' results by query — returns both videos and photo carousels, unlike keyword search which only returns videos.
- Price
- $0.00188/callプロバイダー原価
- Success rate
- 99.5%Last 30 days · 4,677 calls
- Latency p50
- 4.3 sp95 6.7 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funnyPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
query | 文字列 | 必須 | Keyword to search for | funny |
cursor | 数値 | 任意 | Cursor to get more videos. Get 'cursor' from previous response. | |
region | 文字列 | 任意 | Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc | |
sort_by | 文字列 | 任意 | Sort by | relevance |
publish_time | 文字列 | 任意 | Time Frame TikTok was posted | all-time |
- クエリパラメータ
query文字列必須Keyword to search for
例:
funnycursor数値任意Cursor to get more videos. Get 'cursor' from previous response.
region文字列任意Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc
sort_by文字列任意Sort by
例:
relevancepublish_time文字列任意Time Frame TikTok was posted
例:
all-time
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funny' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funny",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funny", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.00188/call です。サービス料を含みます。