PeumeAPI

Social media data · TikTok

TikTok Keyword Search

Search TikTok by keyword and get matching videos (caption, views, likes, comments, shares) as normalized JSON.

$0.0018 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/tiktok-keyword-search \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "datePosted": 0,
    "query": "cooking",
    "sortBy": 0
  }
}'

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: tiktok-keyword-search.

Parameters

fieldsstring

Comma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.

max_itemsinteger

Caps the result rows returned; `_truncated` says how many were withheld. Not the charge.

summaryboolean

`true` returns only an outline: keys, item counts, per-field sizes.

jqstring

jq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.

cursorstring

Pagination cursor from a previous response.

datePostedinteger

Time frame filter. Use a canonical JSON integer that is nonnegative; common values are 0 for any time, 1 for the past 24 hours, 7 for the past week, and 30 for the past month. Legacy numeric strings remain accepted.

Example: 0

queryRequiredstring

The keyword to search TikTok for.

Example: cooking

sortByinteger

Sort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted.

Example: 0

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.