TokConnect API
The TokConnect API gives your code TikTok data: TikTok Shop sales, products, shops and creators in 17 markets, plus videos, comments, search demand, sounds and hashtags. Every route runs the same tool as the TokConnect MCP server, so anything your AI can look up, your code can too.
- Base URL
https://api.tokconnect.com/v1- Auth
X-API-Keyheader- Cost
- 1 credit per call
- Plans
- Pro and Enterprise
Your first request
Rank the best-selling TikTok Shop products for a keyword. Put your key in TOKCONNECT_API_KEY and run:
curl "https://api.tokconnect.com/v1/products/top?keyword=lip%20oil®ion=US" \
-H "X-API-Key: $TOKCONNECT_API_KEY"import os
import requests
r = requests.get(
"https://api.tokconnect.com/v1/products/top",
params={
"keyword": "lip oil",
"region": "US",
},
headers={"X-API-Key": os.environ["TOKCONNECT_API_KEY"]},
timeout=100,
)
r.raise_for_status()
body = r.json()
print(body["data"])const params = new URLSearchParams({
keyword: "lip oil",
region: "US",
});
const res = await fetch(`https://api.tokconnect.com/v1/products/top?${params}`, {
headers: { "X-API-Key": process.env.TOKCONNECT_API_KEY },
});
if (!res.ok) throw new Error((await res.json()).error?.message);
const { data, next_cursor } = await res.json();Every success comes back in the same envelope: the tool's JSON under data, next_cursor when there is another page, and meta with the credits charged.
{
"data": { "...": "the tool's JSON" },
"next_cursor": "eyJwYWdlIjoyfQ",
"meta": { "credits_charged": 1, "request_id": "req_…" }
}New here? The quickstart takes you from key to response in about a minute. The full spec is at GET /v1/openapi.json (send your key).
API reference
137 routes in 13 groups. Each one has parameters, code samples, the matching MCP tool and a console to try it.
- Rankings5 routes
The best-selling TikTok Shop products, shops, creators, videos and LIVEs in any of 17 markets, ranked by revenue, units or growth.
- Products18 routes
Everything about one TikTok Shop product: live price and stock, sales, daily trend, the creators and videos selling it, and what reviews say. Plus the store as shoppers see it now.
- Shops10 routes
One TikTok Shop seller: its storefront, sales split by channel, daily trend, products, launches, affiliates and the videos that sell for it.
- Creators20 routes
A creator's public profile and posts, and their TikTok Shop business: what they sell, for which brands, and who follows them.
- Videos16 routes
One video or photo post: counts, comments, transcript, similar videos and the sales it drove. Plus samples of TikTok's own feeds and a fair comment giveaway draw.
- LIVE7 routes
One TikTok LIVE room: who is watching now, what it sold, and how the broadcast performed.
- Search7 routes
Search TikTok the way the app answers right now: videos, photo posts, accounts, hashtags, LIVE rooms and places.
- Demand and keywords16 routes
What people search for on TikTok, from TikTok's own Creator Search Insights, plus autocomplete and keyword ideas from TikTok and TikTok Shop.
- Categories5 routes
TikTok Shop categories ranked by revenue and growth, the category tree with ids, and a category's top products.
- Ads and Creative Center8 routes
TikTok's ads library and Creative Center: search ads by keyword, see where each ad ran and how viewers held on second by second, plus trending videos by market, SEO inspiration lists and Creative Partner agencies.
- Charts5 routes
TikTok's own leaderboards: the music charts, trending hashtags and searches, LIVE leaders and the top videos by market.
- Sounds, hashtags and places12 routes
Sounds, hashtags and tagged places, each with the videos that use it.
- Reference and markets8 routes
The 17 markets, and the lists other routes take values from: filters, category ids, channels, languages and LIVE gift prices.
Guides
- Quickstart
Key to first response in about a minute, in curl, Python or JavaScript.
- Authentication
Send your key in one header. Where to find it and how to keep it safe.
- Markets
The 17 TikTok Shop markets, their currencies, and the region parameter.
- Credits and limits
1 credit per call, failed calls refunded, and the per-plan rate limits.
- Pagination
Walk long lists with next_cursor and cursor.
- Errors
Every error code, what causes it and what to do.
- MCP
The same tools inside ChatGPT, Claude and Cursor.