share_linkstringerforderlich
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
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
share_linkstringerforderlichShare link
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"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
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Shop Product ID by Share LinkDiese API TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/shop-web/product-id-by-share-link mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf. Jede Organisation erhält 100 kostenlose Aufrufe pro UTC-Tag, gemeinsam über alle berechtigten SandBase APIs einschließlich dieser hier; danach wird jeder Aufruf zu diesem Preis von Ihrem SandBase-Guthaben abgerechnet. Es gibt kein Abo.
Erforderlich: share_link (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. TikTok Shop Product ID by Share Link läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.