TikTok Shop Product API. Send a product link or ID.
Price, variants, stock and units sold. We handle the proxies, blocks and platform changes.
TikTok Shop Product API at a glance
Returns a public TikTok Shop product from its link or ID, with its price, discount, units sold and every variant's price and stock. It also has the description, rating with its star breakdown, specifications, category, images, shipping fee and delivery estimate, and the shop selling it with its rating, followers and units sold.
GET /v1/tiktokshop/product
- 1 credit per request, $0.75–$1.97 per 1,000 requests
- 23 typed fields null when unknown
urlis all it needs, e.g.https://shop.tiktok.com/us/pdp/goli-ashwagandha-gummies-with-vitamin-d-ksm-66-vegan-non-gmo/1729587769570529799- 100 credits free when you sign up, no card, so you can build before you spend
Send one request. Get 23 fields back.
Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.
$ npm install socialtapurl = https://shop.tiktok.com/us/pdp/goli-ashwagandha-gummies-with-vitamin-d-ksm-66-vegan-non-gmo/1729587769570529799const params = new URLSearchParams({
url: "https://www.tiktok.com/shop/pdp/1729587769570529799",
});
const res = await fetch(`https://socialtap.dev/v1/tiktokshop/product?${params}`, {
headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);import os
import requests
res = requests.get(
"https://socialtap.dev/v1/tiktokshop/product",
params={"url": "https://www.tiktok.com/shop/pdp/1729587769570529799"},
headers={"x-api-key": os.environ["SOCIALTAP_API_KEY"]},
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
data, meta = body["data"], body["meta"]
print(data, meta["credits_charged"])require "json"
require "net/http"
uri = URI("https://socialtap.dev/v1/tiktokshop/product")
uri.query = URI.encode_www_form('url' => 'https://www.tiktok.com/shop/pdp/1729587769570529799')
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = ENV.fetch("SOCIALTAP_API_KEY")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
body = JSON.parse(res.body)
raise "#{body["error"]["code"]}: #{body["error"]["message"]}" unless res.is_a?(Net::HTTPSuccess)
pp body["data"]
puts body["meta"]["credits_charged"]<?php
$query = http_build_query([
'url' => 'https://www.tiktok.com/shop/pdp/1729587769570529799',
]);
$ch = curl_init('https://socialtap.dev/v1/tiktokshop/product?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: ' . getenv('SOCIALTAP_API_KEY')],
]);
$body = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);
echo $body['meta']['credits_charged'], PHP_EOL;package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os"
)
func main() {
q := url.Values{}
q.Set("url", "https://www.tiktok.com/shop/pdp/1729587769570529799")
req, err := http.NewRequest("GET", "https://socialtap.dev/v1/tiktokshop/product?"+q.Encode(), nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("x-api-key", os.Getenv("SOCIALTAP_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var body struct {
Data json.RawMessage `json:"data"`
Meta map[string]any `json:"meta"`
Error *struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
log.Fatal(err)
}
if body.Error != nil {
log.Fatalf("%s: %s", body.Error.Code, body.Error.Message)
}
fmt.Println(string(body.Data), body.Meta["credits_charged"])
}curl -G 'https://socialtap.dev/v1/tiktokshop/product' \
--data-urlencode 'url=https://www.tiktok.com/shop/pdp/1729587769570529799' \
-H "x-api-key: $SOCIALTAP_API_KEY"{
"data": {
"approximate_fields": [
"platform_specific.tiktokshop.shop.rating"
],
"attributes": [
{
"name": "Brand",
"value": "Goli"
},
{
"name": "Container type",
"value": "Bottle"
},
{
"name": "Flavor",
"value": "Berry"
}
],
"availability": "in_stock",
"category": "Vitamins Supplements",
"category_id": "1298960",
"condition": null,
"condition_label": null,
"country_code": "US",
"currency": "USD",
"description": "Goli Nutrition has sold over 90 Million bottles of gummy vitamins.\n\nVegan, Non-GMO, Gluten-free & Gelatin-free: Each bottle of Goli contains 60 delicious, vegan, non-gmo, gluten-free & gelatin-free Apple Cider Vinegar gummies, which makes them suitable for almost any lifestyle. N…",
"id": "1729587769570529799",
"max_price": 58.47,
"media": [
{
"alt_text": null,
"duration_ms": null,
"expires_at": null,
"height": 800,
"thumbnail_url": null,
"type": "image",
"url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/b0d9acd7ae184c8d89e2e498941485b6~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192",
"width": 800
},
{
"alt_text": null,
"duration_ms": null,
"expires_at": null,
"height": 800,
"thumbnail_url": null,
"type": "image",
"url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/f14272ec92ff4d06996daf72fab0ae5b~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192",
"width": 800
},
{
"alt_text": null,
"duration_ms": null,
"expires_at": null,
"height": 800,
"thumbnail_url": null,
"type": "image",
"url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/35caa171a9874ecd987b7a23fa4ea0a0~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192",
"width": 800
}
],
"original_price": 74.1,
"platform": "tiktokshop",
"platform_specific": {
"tiktokshop": {
"brand": "Goli",
"delivery_max_days": 6,
"delivery_min_days": 3,
"metrics": {
"rating_distribution": {
"five_star_count": 61276,
"four_star_count": 4662,
"one_star_count": 3255,
"three_star_count": 1804,
"two_star_count": 761
},
"review_count": 71758,
"sold_count": 866215,
"stock_count": 240898
},
"rating": 4.671493073942975,
"shop": {
"metrics": {
"follower_count": 601584,
"product_count": 53,
"review_count": 412852,
"sold_count": 5812862
},
"rating": 4.6
},
"variants": [
{
"availability": "in_stock",
"id": "1729587788239049223",
"image_url": null,
"options": [],
"original_price": 74.1,
"price": 58.47,
"stock_count": 240898,
"title": null
}
]
}
},
"price": 58.47,
"seller": {
"avatar_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/e7478d3e93d4487a9e772fa74e10f506~tplv-fhlh96nyum-resize-webp:300:300.webp?dr=12185&t=555f072d&ps=933b5bde&shp=905da467&shcp=607f11de&idc=useast5&from=2422056039",
"display_name": "Goli Nutrition",
"id": "7495794203056835079",
"is_verified": true,
"url": "https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079",
"username": null
},
"shipping": {
"fee": 0,
"is_offered": true
},
"thumbnail_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/b0d9acd7ae184c8d89e2e498941485b6~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192",
"title": "3 Bottles of Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, KSM-66, Vegan, Plant Based, Non-GMO, Gluten & Gelatin Free",
"type": "product",
"unknown_fields": [],
"url": "https://shop.tiktok.com/us/pdp/1729587769570529799"
},
"meta": {
"request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
"platform": "tiktokshop",
"source": "page",
"is_cached": false,
"credits_charged": 1,
"latency_ms": 1198,
"fetched_at": "2026-10-25T12:00:00Z",
"input": {
"kind": "product",
"id": "1729587769570529799",
"url": "https://shop.tiktok.com/us/pdp/1729587769570529799"
},
"credits_remaining": 9999,
"client_request_id": null,
"warnings": []
}
}import { SocialTap } from "socialtap";
const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY
const res = await client.tiktokshop.product.get({ url: "https://www.tiktok.com/shop/pdp/1729587769570529799" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws Exception {
String query = "url=" + encode("https://www.tiktok.com/shop/pdp/1729587769570529799");
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://socialtap.dev/v1/tiktokshop/product?" + query))
.header("x-api-key", System.getenv("SOCIALTAP_API_KEY"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
// An error is {"error": {"code", "message", ...}}; success is {data, meta}, meta.credits_charged its price.
if (response.statusCode() >= 400) throw new RuntimeException(response.body());
System.out.println(response.body());
}
static String encode(String value) {
return URLEncoder.encode(value, StandardCharsets.UTF_8);
}
}using System.Text.Json;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("x-api-key", Environment.GetEnvironmentVariable("SOCIALTAP_API_KEY"));
var query = string.Join("&",
"url=" + Uri.EscapeDataString("https://www.tiktok.com/shop/pdp/1729587769570529799"));
var res = await http.GetAsync("https://socialtap.dev/v1/tiktokshop/product?" + query);
using var body = JsonDocument.Parse(await res.Content.ReadAsStringAsync());
if (!res.IsSuccessStatusCode)
{
var error = body.RootElement.GetProperty("error");
throw new Exception($"{error.GetProperty("code")}: {error.GetProperty("message")}");
}
Console.WriteLine(body.RootElement.GetProperty("data"));
Console.WriteLine(body.RootElement.GetProperty("meta").GetProperty("credits_charged"));// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
use std::env;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let res = reqwest::blocking::Client::new()
.get("https://socialtap.dev/v1/tiktokshop/product")
.query(&[("url", "https://www.tiktok.com/shop/pdp/1729587769570529799")])
.header("x-api-key", env::var("SOCIALTAP_API_KEY")?)
.send()?;
let ok = res.status().is_success();
let body: serde_json::Value = res.json()?;
if !ok {
return Err(format!("{}: {}", body["error"]["code"], body["error"]["message"]).into());
}
println!("{} {}", body["data"], body["meta"]["credits_charged"]);
Ok(())
}200 OK · GET https://socialtap.dev/v1/tiktokshop/productLong arrays and strings are shortened here. Real responses are complete.Docs One schema on 3 platforms.
The response reference lists every field, its type and when it is null. See the full schema.
Null means unknown
A field TikTok Shop doesn't show is null, never zero or an empty string, so a real zero always means zero.
What it accepts
A TikTok Shop product link (shop.tiktok.com/us/pdp/<slug>/<id>, www.tiktok.com/shop/pdp/<id>, or the app's /view/product/<id> link) or the product ID. US products.
Write one parser
TikTok Shop, Amazon and Facebook Marketplace answer in these fields, so the code that reads one reads them all.
platformstring- Platform ID (tiktokshop, facebook, …).
idstring- Platform-native product or listing ID (string).
urlstring- Canonical product page URL.
typestring- product: a catalog product a shop sells in many units, often in variants (TikTok Shop, Instagram and YouTube shopping); listing: a single item a person or business lists for sale (Facebook Marketplace). New values may be added; treat unknown values as product.
titlestring- Product name or listing title, as the seller wrote it.
descriptionstring- Description as plain text (paragraphs separated by blank lines); null when it has none or the source does not show it (lists and search results).
categorystring- The platform's most specific category label (Bicycles, Vitamins & Supplements), as shown; not normalized across platforms.
category_idstring- The platform's ID of that category (what its category browsing and filters take).
Live data from 33 platforms.
What teams build with the TikTok Shop Product API.
Track a product's price, discounts and stock
Estimate a product's sales from units sold
Compare variants, ratings and sellers across products
Enrich creator content with the product it promotes
Good to know before you build.
- US products only: TikTok Shop serves each market's products only inside that market, so other markets' links return invalid_input.
- Units sold is TikTok Shop's own count across markets since the product was listed, and stock is what TikTok Shop reports per variant.
- This endpoint returns the rating, the review count and the star breakdown. The reviews themselves come from the TikTok Shop Reviews API.
1 credit per request. Failed requests are free.
Buy credits once and spend them on any endpoint, on any platform.
| Source | Price per successful request | Per 1,000 requests |
|---|---|---|
Public page page | 1 credit | $0.75–$1.97 |
- Cache hits are free.
- Credits from packs and top-ups never expire.
- A monthly plan's credits are spent first, and what is left of them ends at each renewal.
- Prices exclude tax: sales tax is added at checkout where it applies.
- Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.
Questions about the TikTok Shop Product API.
More in the API reference.
How much does the TikTok Shop Product API cost?
Try it on a link you already have.
Paste it in the playground, or copy the request into your code.
- No credit card
- Failed requests are free
- Works on all 218 endpoints