share_linkstring必須
Share link
https://api.sandbase.ai/v1/api/tiktok/shop-web/shop-id-by-share-linkResolves a TikTok Shop share URL into its corresponding store identifiers. Returns the numeric shop ID and internal store app link using a valid share link.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Resolves a TikTok Shop share link into the numeric shop ID and an in-app store link. It needs one input, share_link, which is a TikTok Shop share URL such as https://vt.tiktok.com/ZT2AHoGsE/.
shop_id you can store in a database.shop_id values.sellerId out of a shared store link to identify the seller behind it.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/shop-web/shop-id-by-share-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"share_link": "https://vt.tiktok.com/ZT2AHoGsE/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
share_link | string | Yes | Share link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"shop_id": "7495832087428237549",
"shop_link": "snssdk1180://ec/store?sellerId=7495832087428237549&store_page_version=2&trackPar…"
}
| Field | Meaning |
|---|---|
shop_id | Numeric ID of the TikTok Shop, returned as a string. It is the same value as sellerId inside shop_link. |
shop_link | In-app deep link to the store page, using the snssdk1180://ec/store scheme. The query string holds sellerId, store_page_version and URL-encoded trackParams. |
share_link, for example a short vt.tiktok.com link.shop_id is a string of digits. Keep it as a string to avoid precision loss in your code.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/shop-web/shop-id-by-share-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_link": "https://vt.tiktok.com/ZT2AHoGsE/"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
share_linkstring必須Share link
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | 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/shop-web/shop-id-by-share-link に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: share_link (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Shop ID by Share Link は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。