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 for TikTok search API - https://looot.ai/use-cases/tiktok-search-api/skill.md

The short answer

The short answer

TikTok search API for an agent: it sends a keyword to a catalog endpoint and reads video caption, views and likes back. Several providers sell the call, so the agent tries the cheapest first. You pay per call, and a failed call costs nothing.

Updated

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

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

Providers, cheapest first

What actually differs between providers

Today the price runs from $0.0010 to $0.0012 across 3 endpoints. The dearest costs about 1.2 times the cheapest. Price is only one difference. Each entry below says what that endpoint takes or returns that the others do not.

  1. TikHub logoTikHub

    Takes a keyword, a count and an offset, and pages with a search ID.

    tikhub-api-tiktok-web-fetch-search-video
    $0.0010 / call
  2. TikHub logoTikHub

    Takes a keyword with a region, a sort type and a publish-time filter.

    tikhub-api-tiktok-app-fetch-video-search-result
    $0.0010 / call
  3. AnyAPI logoAnyAPI

    Returns videos with caption, views, likes, comments and shares as normalized JSON, with sort and posting-date filters and a flat price per request.

    anyapi-run-tiktok-search-keyword
    $0.0012 / call
  4. Any Site API

    Searches videos by keyword with a count, and bills per result.

    anysite-api-tiktok-videos-search
    price on request

Cost

What 100 TikTok search runs cost

$0.1000

100 searches cost about $0.1000 through the cheapest endpoint, at TikHub, and about $0.1200 through the dearest. Each run is one call.

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 step 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 for TikTok search API - https://looot.ai/use-cases/tiktok-search-api/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.

Send the keyword to a TikTok search endpoint. Your agent reads back the videos with their caption, views, likes, comments and shares.

On the providers that support it. One takes a sort and a posting-date window, and another takes a sort type and a publish-time filter.

The catalog has hashtag endpoints from the same providers. Ask your agent to search the catalog for TikTok hashtag results and show the price first.

Page with the cursor, the offset or the search ID the first call returns. Each page is billed as a call.

You pay per call, and the price depends on the provider your agent picks. This page reads the cheapest live price from the catalog and shows no number when the catalog is unreachable.

No. A call that fails at the provider costs nothing, and your agent can retry it or send it to another provider.

No. One looot key reaches every provider in the catalog. You top up once, and each call is billed at the price shown before it runs.

Send a POST to /v1/runs with the endpoint id, the input and a new idempotency key, and your looot token in the Authorization header. With wait set to 30, the answer comes back in the response when the run ends within 30 seconds. Otherwise poll GET /v1/runs/<runId>.

That needs scheduled runs, not available yet. Run it by hand whenever you want fresh results.

No. looot bills per call, and nothing runs while your agent is idle.

More ways to run this job

For agents
use case
TikTok search API
run
search
schedule
on demand
step
Search TikTok videos: anyapi anysite tikhub
setup
https://looot.ai/use-cases/tiktok-search-api/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.