share_linkstring必須
Share link
https://api.sandbase.ai/v1/api/tiktok/shop-web/product-id-by-share-linkReturns the TikTok Shop product identifier extracted from a provided product share link. Takes a required share URL to resolve the associated product ID.
[
{
"data": {
"final_url": "test",
"message": "无法识别的链接形态 / unrecognized link shape;原样重试不会成功,请核对分享链接 / retrying the same link will not succeed — please check the share link",
"product_id": null,
"resolved": false,
"share_link": "test",
"status_code": null
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns the TikTok Shop product ID for a product share link. Send the full share URL in share_link. The response also includes a product_link deep link for the TikTok app.
product_id into a product detail call to get price and seller data.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/shop-web/product-id-by-share-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"share_link": "https://affiliate-us.tiktok.com/api/v1/share/AJ4hS3OdXmSg"}'
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.
{
"product_id": "8651224669119091502",
"product_link": "snssdk1180://lynxview?bundle=partner-product-page%2Ftemplate.js&channel=tea_prod…"
}
| Field | Meaning |
|---|---|
product_id | The TikTok Shop product ID that the share link points to. It is returned as a string of digits. |
product_link | A TikTok app deep link (snssdk1180:// scheme) for the product page. It carries URL-encoded query parameters such as the page bundle and channel. |
share_link, for example https://affiliate-us.tiktok.com/api/v1/share/AJ4hS3OdXmSg.product_id as a string, because the value is a long number.product_id to TikTok Shop Product Details or TikTok Shop Product Detail (V3) to get full product data.$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/product-id-by-share-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_link": "test"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
share_linkstring必須Share link
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"final_url": "test",
"message": "无法识别的链接形态 / unrecognized link shape;原样重试不会成功,请核对分享链接 / retrying the same link will not succeed — please check the share link",
"product_id": null,
"resolved": false,
"share_link": "test",
"status_code": null
}
}
]さらに探索
| 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/product-id-by-share-link に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: share_link (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Shop Product ID by Share Link は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。