Docs · TikTok Shop search suggestions
TikTok Shop search suggestions
What TikTok Shop's search box suggests for a keyword: the longer queries US shoppers type.
https://api.lurkapi.com/v1/tiktok/shop/search/suggestionsWhen to use this
Use it for keyword and demand research: the autocomplete phrases TikTok Shop offers for a seed keyword, in its order, up to 15. Brand and store names show up too (e.g. The Collagen Co. for collagen). Suggestions come from the logged-out US storefront.
A keyword TikTok has no suggestions for returns an empty list.
Parameters
All parameters go in the query string.
| Parameter | Description |
|---|---|
querystringrequired | The seed keyword, e.g. collagen.
|
Example request
Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.
curl "https://api.lurkapi.com/v1/tiktok/shop/search/suggestions?query=collagen" \
-H "x-api-key: YOUR_API_KEY"const params = new URLSearchParams({
query: "collagen",
});
const res = await fetch(`https://api.lurkapi.com/v1/tiktok/shop/search/suggestions?${params}`, {
headers: { "x-api-key": process.env.LURKAPI_KEY },
});
const data = await res.json();
if (!data.success) throw new Error(`${data.code}: ${data.error}`);
console.log(data.suggestions);import os
import requests
res = requests.get(
"https://api.lurkapi.com/v1/tiktok/shop/search/suggestions",
params={
"query": "collagen",
},
headers={"x-api-key": os.environ["LURKAPI_KEY"]},
timeout=60,
)
data = res.json()
if not data["success"]:
raise RuntimeError(f"{data['code']}: {data['error']}")
print(data["suggestions"])Example response
A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in ….
Show the example response (1 KB)Hide
{
"success": true,
"credits_remaining": 999982,
"credits_charged": 1,
"suggestions": [
"collagen peptides",
"collagen for women",
"collagen face masks",
"collagen peptide powder",
"collagen face mask",
"The Collagen Co.",
"collagen peptide",
"collagen",
"collagen mask",
"collagen powder",
"collagen supplement",
"collagen gelatin",
"collagen jelly",
"collagen stick",
"collagen night wrapping mask"
]
}Response fields
Every field of a successful response. [] marks a list: a[].b is the b of each item in a. nullable fields can be null; optional fields can be missing.
Show all 4 fieldsHide
| Field | Type | Description |
|---|---|---|
| success | true | Always true here; errors have success: false. |
| credits_remaining | number | Your balance after this call. On anonymous playground calls: free tries left today. |
| credits_charged | number | Credits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1). |
| suggestions | string[] | Suggested searches, in TikTok's order. |
Caching and freshness
Responses are cached for up to 1 day, so a repeat call within that window can return the same data. It still costs 1 credit.
Errors
Errors return { success: false, error, code, docs } with the HTTP status below. Validation errors, 401/402/429 rejections and 5xx failures are free; not_found is charged (how charging works). All error codes.
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key. Send it in the x-api-key header. |
| 401 | invalid_api_key | The key is unknown or was revoked. |
| 402 | insufficient_credits | Not enough credits for this call. Buy a pack or wait for tomorrow's top-up. |
| 403 | account_suspended | This account is suspended. Contact support@lurkapi.com. Never charged. |
| 405 | method_not_allowed | Endpoints take GET with query params. |
| 429 | rate_limited | Too many calls at once. Wait for the retry-after seconds, then retry. |
| 500 | internal_error | Something broke on our side. Retry; 5xx errors are free. |
| 502 | upstream_error | The platform didn't give a usable answer. Retry; 5xx errors are free. |
| 503 | upstream_busy | All our connections to the platform are busy. Retry in a few seconds; 5xx errors are free. |
| 504 | upstream_timeout | The platform took over 30 seconds to answer (90 for web pages). Retry; timeouts are free. |
Use it in Claude
Once LurkAPI is connected to Claude, this endpoint is the tiktok_shop_suggestions tool. Ask in plain English, for example:
Use LurkAPI's tiktok_shop_suggestions with query "collagen" and summarize what you find.Claude calls tiktok_shop_suggestions with arguments like these, and each call costs 1 credit:
{
"query": "collagen"
}Tool results are compact to save tokens: no nulls or empty lists, one URL per image or video, transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts: its _note gives the offset for the rest, and later parts are free for 15 minutes. trim=false returns the full response.
From the blog
All posts
· 5 min read
Is web scraping legal? The social media cases so far
In the US, scraping public pages while logged out is likely not hacking. Scrapers get sued over terms they accepted, fake accounts and, now, bot checks.

· 4 min read
How to see followers on Snapchat (and why the tab may be missing)
Tap your Bitmoji, then View All under Friends & Followers, then Followers. No Followers tab means you don’t have a Public Profile.

· 5 min read
Why youtube-transcript-api gets blocked on servers, and what works
YouTube sends cloud IPs a bot check, so youtube-transcript-api raises RequestBlocked. Cookies are off in 1.2.4; use residential proxies or a hosted API.