> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Shop Storefronts API

> Products from TikTok Shop storefronts with title, URL, image, seller, sale price and original price. Pass the store URLs.

`POST /v1/data/tiktok-shop/storefronts/run`

**Pricing:** $0.0035 per storefront ($3.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**storeUrls** `string[]` *required*

One or more store urls. One request reads them all.

**region** `string` (default: us)

Region to use. United States by default.

Allowed values: `us` (United States), `gb` (United Kingdom), `mx` (Mexico), `my` (Malaysia), `ph` (Philippines), `sg` (Singapore), `th` (Thailand), `vn` (Vietnam), `jp` (Japan), `id` (Indonesia).

**maxResults** `integer` (default: 100)

How many storefronts to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/tiktok-shop/storefronts/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "storeUrls": [
      "https://shop.tiktok.com/us/store/hallee-bob/7495759925640530518"
    ],
    "region": "us",
    "maxResults": 4
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/tiktok-shop/storefronts/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "storeUrls": [
        "https://shop.tiktok.com/us/store/hallee-bob/7495759925640530518"
    ],
    "region": "us",
    "maxResults": 4
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/tiktok-shop/storefronts/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "storeUrls": [
    "https://shop.tiktok.com/us/store/hallee-bob/7495759925640530518"
  ],
  "region": "us",
  "maxResults": 4
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one storefront, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `productId` | Product ID | text |
| `title` | Title | text |
| `productUrl` | Product URL | url |
| `image` | Image | image |
| `seller` | Seller | object |
| `salePrice` | Sale Price | number |
| `originalPrice` | Original Price | number |
| `discount` | Discount | number |
| `currency` | Currency | text |
| `rating` | Rating | number |
| `reviewCount` | Review Count | number |
| `soldCount` | Sold Count | number |
| `priceMin` | Price Min | number |
| `priceMax` | Price Max | number |
| `variantCount` | Variant Count | number |
| `freeShipping` | Free Shipping | boolean |
| `brand` | Brand | text |
| `position` | Position | number |
| `region` | Region | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "tiktok-shop/storefronts",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "salePrice": 27.98,
      "rating": 4.5,
      "variantCount": 6,
      "productId": "1729963906907411030",
      "reviewCount": 2763,
      "soldCount": 34810,
      "brand": null,
      "seller": null,
      "position": 1,
      "priceMin": 27.98,
      "region": "us",
      "priceMax": 30.98,
      "freeShipping": false,
      "title": "Kids Toy Smartphone, Birthday Gift Unicorn Toy, Touch Screen HD Dual Camera, Interactive phone toy, Travel Toy, Learning Educational Phone with 8GB SD Card, ...",
      "productUrl": "https://shop.tiktok.com/us/pdp/kids-toy-smartphone-by-bscoret-with-dual-cameras-8gb-sd-card/1729963906907411030",
      "originalPrice": 32.99,
      "image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/7c3e5b9e0e6d4bcabc33ef9ca9aa711c~tplv-fhlh96nyum-crop-webp:1200:1200.webp?dr=12190&t...",
      "currency": "USD",
      "discount": 15
    }
  ]
}
```

## Related APIs

For products across all shops by keyword use [`tiktok/shop`](https://docs.mindcase.co/apis/tiktok/shop); for review text use [`tiktok-shop/reviews`](https://docs.mindcase.co/apis/tiktok-shop/reviews).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.