cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/tiktok/product/id?share_url=https%3A%2F%2Fwww.tiktok.com%2Ft%2FZPH7PbVhQDwt7-vS8eu%2F' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/tiktok/product/id',
params={"share_url": "https://www.tiktok.com/t/ZPH7PbVhQDwt7-vS8eu/"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"share_url": "https://www.tiktok.com/t/ZPH7PbVhQDwt7-vS8eu/"});
const response = await fetch(`https://api.keyapi.ai/v1/tiktok/product/id?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/tiktok/product/id")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"productId": "1731833900198630205",
"region": "US"
},
"requestId": null
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}TikTok Shop
Get Product ID from Share Link
Extract the TikTok Shop product ID from a product share link or URL.
GET
/
v1
/
tiktok
/
product
/
id
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/tiktok/product/id?share_url=https%3A%2F%2Fwww.tiktok.com%2Ft%2FZPH7PbVhQDwt7-vS8eu%2F' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/tiktok/product/id',
params={"share_url": "https://www.tiktok.com/t/ZPH7PbVhQDwt7-vS8eu/"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"share_url": "https://www.tiktok.com/t/ZPH7PbVhQDwt7-vS8eu/"});
const response = await fetch(`https://api.keyapi.ai/v1/tiktok/product/id?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/tiktok/product/id")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"productId": "1731833900198630205",
"region": "US"
},
"requestId": null
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 creditper request
Copy for AI
🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Authorizations
Query Parameters
Example:
"https://www.tiktok.com/t/ZPH7PbVhQDwt7-vS8eu/"
Response
Success
The response is of type object.

