handlestring必須
TikTok username without the leading @ (e.g. "stoolpresidente").
https://api.sandbase.ai/v1/api/tiktok/profile-regionResolve the home region (country) of a TikTok creator by handle.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns the home region of a TikTok creator as a two-letter country code. It needs one input, the creator's handle without the leading @.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/profile-region" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "stoolpresidente"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | TikTok username without the leading @ (e.g. "stoolpresidente"). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"handle": "stoolpresidente",
"profileUrl": "https://www.tiktok.com/@stoolpresidente",
"region": "US"
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the handle matched a TikTok profile. A lookup that finds nothing returns found: false. |
data.region | Two-letter country code for the creator's home region, for example US. |
data.handle | The TikTok username that was looked up, without the @. |
data.profileUrl | Direct link to the creator's TikTok profile page. |
handle without the leading @, for example stoolpresidente.found before you read data.region.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/profile-region" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "stoolpresidente"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
handlestring必須TikTok username without the leading @ (e.g. "stoolpresidente").
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok Profile Regionこの API TikTok | 1回あたり $0.0012 から | JSON |
TikTok | 1回あたり $0.0012 から | JSON |
TikTok | 1回あたり $0.0008 から | JSON |
TikTok | 1回あたり $0.0008 から | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/profile-region に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: handle (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Profile Region は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。