Use case, TikTok search

TikTok search API for your agent. One call per search.

Send a keyword. Read video caption and views back. Your agent picks the provider, and you pay per call.

Give this to your agent
set up looot - https://looot.ai/skill.md

The job

What the TikTok search API gives your agent

TikTok search shows what is moving right now. Your agent sends a keyword and reads back the videos with captions, views, likes, comments and shares. For a content team it is a view of what a topic looks like this week. For a brand it shows who is talking about the product.

Four endpoints search videos by keyword, from three providers. They differ in the filters. One takes a sort order and a posting-date window. One takes a count and an offset and pages with a search ID. One takes a region and a publish time. One bills a flat price per request regardless of how many videos come back.

You give

a keyword

home workout

You get

  • Video caption
  • Views
  • Likes and comments
  • Shares
  • Author

Sample calls

The request and what comes back

Each run is one POST to /v1/runs with an endpoint id and an input. These are illustrative calls with generic values. The run's result holds the provider's own fields.

Request
{"endpointId":"anyapi-run-tiktok-search-keyword","input":{"query":"home workout"},"wait":30}
ResponseSample output
// POST /v1/runs, then read run.status and run.result
// result: returns videos with caption, views, likes, comments and shares as normalized JSON, with sort and posting-date filters and a flat price per request

The prompt

Copy one prompt, give it to your agent.

Edit the names and numbers, paste it, and the agent runs the job and shows the cost.

  • One run is one search.
  • 1 steps across 3 providers.
  • Runs on demand, whenever you ask.
Prompt: TikTok search API
Use looot to search TikTok for home workout and return the caption, author, views, likes, comments and shares of the top videos, sorted by views. 1. Set up https://looot.ai/skill.md. 2. Search the catalog for each step and check its price before you call. 3. Run the cheapest endpoint that fits. 4. Show the results as a table and the total cost.

Give this to your agent
Setup command
set up looot - https://looot.ai/skill.md

Before you start

Settle these before the first run

  • Set the sort. Most-liked and newest answer different questions, and the default may not be the one you need.
  • Keep the search ID when you page. One provider needs it for the second page and later.
  • Note the region. TikTok serves different results per market, and one endpoint takes a region parameter to set it.

FAQ

Questions people ask

Which hooks and formats a topic uses, how many views a typical post earns and who posts most. Your agent can rank by views and list the phrases that repeat in the captions.

For agents
use case
TikTok search API
run
search
schedule
on demand
step
Search TikTok videos: anyapi anysite tikhub
setup
https://looot.ai/skill.md
llms.txt
https://looot.ai/llms.txt
updated
2026-10-04

Try TikTok search with your own agent.

Start your workspace, top up, and paste the prompt into the agent you already use.