For AI

Endpoints by data type

Product search API

2 endpoints on 2 platforms return product search results as the same Product object. Products in a platform’s shop that match a keyword, a page at a time: title, current and original price, image, shop and, where the shop shows them, units sold and rating. A call costs from $0.004 to $0.02, each endpoint at its own price; a failed call is free.

Product search · on each platform

PlatformEndpointPathA pagePrice
TikTokTikTok Shop product searchGET /v1/tiktok/shop/products/search20$0.004 per call · about 20 products per page
Xiaohongshu (RedNote)Xiaohongshu shop product searchGET /v1/xiaohongshu/shop/products/search20$0.02 per call · about 20 products per page

from $0.004 to $0.02 a call, each endpoint at its own price. A call that fails costs nothing.

The object it returns: Product

Every endpoint above returns these fields with the same names and types. A field a platform does not show comes back null and is named in meta.unavailable.

FieldTypeMeaning
idstringProduct ID in the shop.
urlstringProduct page.
titlestringProduct title.
pricenumber | nullCurrent price (the lowest variant), in the currency given.
original_pricenumber | nullList price before discount, where shown.
currencystring | nullISO 4217 currency code.
soldinteger | nullUnits sold, as the shop shows it.
ratingnumber | nullAverage stars, 0 to 5.
reviewsinteger | nullNumber of reviews.
imagesstring[] | nullProduct image URLs.
shopShopRefWho sells it.
extobjectPlatform-specific extras. Only returned with view=full.

The same call on two platforms

Same parameters, same paging, same response shape. Only the path changes.

cURL
# TikTok
curl -G "https://api.okdata.online/v1/tiktok/shop/products/search" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'query=portable coffee maker'

# Xiaohongshu (RedNote)
curl -G "https://api.okdata.online/v1/xiaohongshu/shop/products/search" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'query=便携咖啡机'

What people use it for

  • See the price range of a product category before you set your own price.
  • Find the best-selling listings for a keyword.
  • Spot new competitors that appear in a search week by week.

Questions

Are sales numbers included?
Where the shop shows them. TikTok Shop does; Xiaohongshu’s shop does not show units sold as a number, so sold is null there.
Which currency are prices in?
Each product carries a currency code. Xiaohongshu prices are in yuan; TikTok Shop prices are in the currency the shop shows.
What do I do with a result?
Keep the product id. Pass it to product detail for all images and the shop, or to product reviews for what buyers say.

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp