PeumeAPI

Social media data · TikTok

Search TikTok top results by keyword — videos, photos

Searches TikTok's 'Top' results by query — returns both videos and photo carousels, unlike keyword search which only returns videos.

$0.0028 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/search-tiktok-top-results-by-keyword-videos-photos \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "query": "funny",
    "publish_time": "all-time",
    "sort_by": "relevance"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-tiktok-top-results-by-keyword-videos-photos.

Parameters

queryRequiredstring

Keyword to search for

Example: funny

publish_timestring

Time Frame TikTok was posted

Example: all-time

sort_bystring

Sort by

Example: relevance

regionstring

Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc

cursornumber

Cursor to get more videos. Get 'cursor' from previous response.

Other ways to do it

Same job, other sources.

Start free · $1 of calls included

Every API your business needs. One key.

7,267 data and AI APIs behind one key, with backup sources built in.