share_linkstringobligatoire
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
}
}
]Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
share_linkstringobligatoireShare link
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"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
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
TikTok Shop Product ID by Share LinkCette API TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
Guides :TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/shop-web/product-id-by-share-link avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.001 par appel. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.
Obligatoire : share_link (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. TikTok Shop Product ID by Share Link fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok séparément.