GET and live under:
Who can call it
What you can pull
Filter the lists by category with the category’s
name from GET /categories, spelled the
same: category on shops, category_l1 (and category_l2, category_l3) on products,
videos and creators.
Time ranges
Each list takeswindow. The values differ by list:
Every answer carries a
window that says which range it actually covers, so read the dates
from there. Two things to know:
7d,30dandcustomon shops are added up from daily numbers. Where we hold fewer days than the range needs, which is most likely with30dand long custom ranges, the row’s numbers arenullandnullReasonssaysinsufficient_history.monthalways answers.- A value outside a list’s table answers
422, and the message lists the values that work. (allis also accepted on products and categories, and means the same asdefault.)
Paging and rank
- Lists take
page(from 1) andpage_size(1 to 100; default 20, or 100 on categories). A largerpage_sizeis read as 100. Two exceptions: a shop’s creators (/shops/{id}/creators) come 20 a page,page1 to 250, and shop search answers one page only. - Rows on the shops, products, videos and creators lists have
rank: their place in the whole list, not just the page. Row 1 of page 3 at 50 a page is rank 101. The answer’sranked_bynames what the list is ordered by. - On categories,
rankis the category’s own place in the market (nulloutside the ranking). A shop’s creators and shop search carry norank. - Change the order with
sort. Shops:gmv(default),units,growth,videos,creators,products,rating. Products:gmv,units,growth,videos,creators,newest. Videos:gmv,views,posted. Creators are ranked by GMV. totalis how many rows match in all.
Shops outside the top lists
The top lists rank the top shops we track (cohortSize on the shops list says how many).
They are always there and cost nothing extra.
A shop outside them is collected the first time someone asks for it:
- Find it with
GET /shops/search?q=name. If the answer says"lookup": "queued", more matches are being collected: search again shortly. - Call
GET /shops/{id}with itssellerId. The first call answers503witherror.codecollectingand aRetry-Afterheader. Repeat the call after that many seconds. - From then on the shop answers right away, for everyone.
lookup_limit_reached can occasionally come before you’ve used your 6. Past that, a shop that has never
been collected answers 429 with lookup_limit_reached and a Retry-After header, and a
search says "lookup": "limit_reached" (it only covered shops already collected). The top
lists are not affected.
A shop’s videos list holds the top videos we track for that shop, about 20 per shop. An
empty list means we haven’t collected that shop’s videos yet.
Missing numbers
A number we don’t hold isnull, never 0. nullReasons on the row (or on the answer)
says why for each field:
Money
Money is in US dollars, as plain numbers:702330.5 is $702,330.50. This is different
from the creator TikTok Shop analytics
endpoints, which answer in cents.
Rate limits
Market calls have their own budget per key, apart from your other API calls:
Neither budget affects the other: pulling the market doesn’t make your other integrations
wait, and the reverse. Every answer counts, errors included (
403, 404 for an id, 422, 429
lookup_limit_reached, 503); calls refused before they run (401, rate-limit 429s and
an unknown organization_id) don’t. The X-RateLimit-*
headers and Retry-After work as described in rate limits.
At 100 rows a page that’s up to 30,000 rows an hour. Need more? Email
info@growi.io; higher limits are set per organization.
Errors
Examples
Set your key and the base URL once:Sample responses
Every endpoint page in the API reference shows its full response with each field described. Two short ones:gmvChange and unitsChange are fractions against the period before: 0.18 is +18%.
Pulling the top shops and their videos
1
Pick the category
GET /categories once, and keep the name of the category you want.2
List the top shops
GET /shops?category=NAME&window=7d&page_size=100, then page=2 and so on until you
have as many as you need. Keep each row’s sellerId.3
Get their top videos
GET /videos?seller_ids=ID1,ID2,...&window=28d&sort=gmv, up to 100 shops per call.
Each row says which shop (sellerId), product, creator and post date it belongs to.4
Add products and creators
GET /products?category_l1=NAME and GET /creators?category_l1=NAME, or narrow
either one to your shops with seller_ids.