1. Platforms
  2. TikTok Scraper API
  3. TikTok Shop product search API

TikTok Shop product search API

Products matching a search, each with price, rating, sold count and shop.

GET api.socialscrape.dev/v1/tiktok/shop/search

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

Pages of 20 by cursor; TikTok decides how deep a query goes (past 40 results when it has them). US catalogue only.

You send query.

Part of the TikTok Scraper API: 24 TikTok endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/tiktok/shop/search" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'query=water bottle' \4  --data-urlencode 'region=US'

Parameters

NameTypeRequiredDescription
querystringyesSearch terms. Also accepted as keyword, q.
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.
regionstringTwo-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_94b33d5e742bf593d03e2930",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "product",13        "platform": "tiktok",14        "id": "1731932327542428280",15        "url": "https://www.tiktok.com/shop/pdp/wicked-bubble-broomstick-hydration-pearlescent-pink-shimmer/1731932327542428280",16        "title": "Wicked",17        "description": null,18        "price": {19          "amount": 46.98,20          "currency": "USD",21          "original_amount": null,22          "display": "$46.98"23        },24        "seller": {25          "id": "7495318983844203128",26          "handle": null,27          "name": "Owala",28          "url": null,29          "avatar_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/d4da4b135fa745508c3ca9549b2e8920~tplv-fhlh96nyum-resize-png:300:300.png?dr=12184&t=5...",30          "verified": null31        },32        "rating": 4.8,33        "review_count": 1251,34        "sold_count": 15491,35        "image_urls": [36          "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/d302dcb0442349afa3f89f3241e72a63~tplv-fhlh96nyum-crop-webp:1080:1080.webp?dr=12190&t..."37        ],38        "category": null,39        "in_stock": null,40        "location": null,41        "published_at": null,42        "extra": {43          "brand": "Owala",44          "sku_id": "1731932327605015160"45        }46      },47      {48        "object": "product",49        "platform": "tiktok",50        "id": "1729403902741811222",51        "url": "https://www.tiktok.com/shop/pdp/water-bottle-sol-and-selene-stainless-steel-bpa-free-3-x-10-4/1729403902741811222",52        "title": "Water Bottle Water Bottle",53        "description": null,54        "price": {55          "amount": 14.99,56          "currency": "USD",57          "original_amount": null,58          "display": "$14.99"59        },60        "seller": {61          "id": "7495197880337991702",62          "handle": null,63          "name": "Sol and Selene",64          "url": null,65          "avatar_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/owbkODtGUen2pzGDbK8SjIAUDyA8QjCfZNASOD~tplv-fhlh96nyum-resize-png:300:300.png?dr=121...",66          "verified": null67        },68        "rating": 4.8,69        "review_count": 4,70        "sold_count": 40,71        "image_urls": [72          "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/40c6aab88cc7403aab5475380ae3194b~tplv-fhlh96nyum-crop-webp:2000:2000.webp?dr=12190&t..."73        ],74        "category": null,75        "in_stock": null,76        "location": null,77        "published_at": null,78        "extra": {79          "brand": "Sol and Selene",80          "labels": [81            "Free shipping"82          ],83          "sku_id": "1729403902741876758"84        }85      }86    ],87    "cursor": null,88    "has_more": false,89    "parent": null90  },91  "cursor": null,92  "has_more": false93}

Fields

A page of results. Each entry in items is a Product. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"product"
platformPlatformyes
idstringyes
urlstring or null
titlestring or null
descriptionstring or null
pricePrice or null
sellerAuthor or null
ratingnumber or null
review_countinteger or null
sold_countinteger or null
image_urlsstring[] or null
categorystring or null
in_stockboolean or null
Show the other 3 fields
FieldTypeAlwaysNotes
locationPlace or null
published_atstring (ISO 8601 date-time) or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The Python client has client.tiktok.shop_search(...) and the TypeScript client client.tiktok.shopSearch(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.