PeumeAPI

Social media data · TikTok

Search TikTok videos by keyword

Searches for TikTok videos by keyword or phrase — the general video search across all of TikTok. date_posted and sort_by are forwarded upstream but are not reliably enforced; treat create_time / digg_count as authoritative and post-filter when a window or order matters.

$0.0028 per callUsually answers in a few seconds

Call it

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

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-videos-by-keyword.

Parameters

queryRequiredstring

Keyword to search for

Example: ai

date_postedstring

Requested publish window forwarded upstream. Not reliably enforced — responses can include create_time outside the window (or match an unscoped call). When recency matters, filter create_time locally.

Example: all-time

sort_bystring

Requested order forwarded upstream. Not reliably enforced — most-liked / date-posted may leave digg_count or create_time unsorted. When order matters, sort locally.

relevance · most-liked · date-posted

Example: relevance

regionstring

Does NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR

cursornumber

Pagination cursor from previous response cursor field

Example: 10

trimboolean

Set to true for a trimmed response

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.