Social media6 min readBy Purrkey teamUpdated

How to search Xigua videos by keyword

Search Xigua for keyword-matched videos and build a first-page table with titles, creators, durations, comment counts, watch counts, publish times and open URLs

On this page

You need five food videos on Xigua, each lasting 1 to 180 seconds, for a cooking trend brief and you have one keyword to search. Run one keyword search, read the first page, and turn the items into a shortlist table before you open any clip

The worksheet below is the deliverable: one row per video, with title, creator name, video duration, comment count, watch count, publish time, open URL and a shortlist note. The table is a design, not a result. Values here are placeholders showing the shape

Example input and worksheet design

Example input for the tool. The reader replaces the keyword with the food term from the brief

Input fieldExample valueNote
query.keyword咖啡Required. Example term
query.offset0Optional; defaults to 0
query.min_duration1Optional; check the current unit
query.max_duration180Optional; check the current unit
query.order_type(empty)Optional; set it only if the research task gives an order

The worksheet has these columns. Values here are placeholders showing the shape

TitleCreator nameVideo durationComment countWatch countPublish timeOpen URLShortlist note
(title)(name)(integer)(integer)(integer)(integer)(url or empty)review or skip, with reason

A row enters the shortlist when the title names a food or technique from the brief, the duration sits inside 1 to 180 seconds, and the open URL is present. Comment count and watch count are triage signals. They cannot prove that a clip is a trend

The tool is tikhub.xigua.app.v2.search_video; the Agents call it through POST /v1/runs with toolId tikhub.xigua.app.v2.search_video. The contract lists query as required. Inside it, query.keyword is required; query.offset defaults to 0; query.order_type, query.min_duration, and query.max_duration are optional. Check the current input schema before you run

For this task, start with one call on 咖啡 and read the first page. If the current schema defines the duration fields in seconds, you can try query.min_duration 1 and query.max_duration 180. The contract's field descriptions for those two duration fields do not state a unit, so leave them out if the unit is not clear and filter on data.video_duration after the call. The first page is the scope; do not page unless the brief asks for more

Step 2: read the fields that drive the shortlist

Read data.results. For each item, read data.title, data.user_info.name, data.video_duration, data.comment_count, data.video_detail_info.video_watch_count, data.publish_time, and data.open_url. If you need a row key, data.id_str and data.item_id appear in the observed item shape

The supplier JSON is preserved as is and has no fixed schema. Field names under output in the contract were observed on one run, and keys not listed there may be missing on other inputs. A missing data.open_url means the row has no link for a human to review; leave the URL cell empty and mark the row skip unless another supplied field gives you a reason to keep it. data.publish_time is an integer, and the field description does not state its unit, so check it before you put a date in the brief. data.has_more tells you whether the supplier reports another page; it does not make the later pages part of this first-page task. For the Douyin version of this workflow, see search Douyin videos by keyword

What one real call returned

One real call ran on 2026-11-13. The input sent was {"query": {"keyword": "咖啡"}}. Billing was SETTLED, with a charge of 0.001 USD against a ceiling of 0.001 USD

The top-level keys of data were count, offset, req_id, results, err_code, has_more, raw_data, extra_data, fb_results, common_data, custom_data, feed_up_tag, list_length, feed_down_tag, filtered_data, is_empty_content, and extra_data_element. data.count was 10, data.offset was 10, and data.req_id was 202611131037214FDB568E25E398B976CA. data.results was an array with 3 items, data.err_code was 0, and data.has_more was true. data.fb_results was an array with 1 item. data.list_length was 3, data.filtered_data was an array with 0 items, and data.is_empty_content was false. data.feed_up_tag and data.feed_down_tag were empty strings

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Xigua videos by keyword. Check the current inputs and price of tikhub.xigua.app.v2.search_video before running anything. Run one query with query.keyword set to 咖啡 and query.offset set to 0. If the current input schema defines query.min_duration and query.max_duration in seconds, set them to 1 and 180; if that is not clear, omit them and filter on data.video_duration after the call. Read the field names from the first page before you map columns. Return a table with title, creator name, video duration, comment count, watch count, publish time, open URL and shortlist note. Do not page past the first page. Do not state that a clip is a trend; mark each row as review or skip for a human to confirm. If a field is missing, leave the cell empty and say so in the shortlist note.

Estimated tool cost

The listed price is $0.001 per call, and the price block gives the unit as call. Where the catalog uses max_call, the note reads "Maximum per call. Successful runs settle at the actual AnyAPI charge"; the totals below are ceilings. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
Single keyword searchcalls x price$0.001 per call1$0.001
Batch of 20 keyword searchescalls x price$0.001 per call20$0.020

The price rule says fixed per-call price and successful empty results are charged. A single search plans 1 call. A batch of 20 keyword searches plans 20 calls

Open the tool page

Start with one call on 咖啡 and check the current schema and price on the Xigua search video tool page

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Xigua.
Explore Xigua tools and pricing

FAQ

How do I search Xigua videos by keyword?

Call tikhub.xigua.app.v2.search_video with query.keyword set to the term you want. The first page gives supplier JSON with video items, and you read the fields you need for a review table.

What input fields does tikhub.xigua.app.v2.search_video take?

The input has a required query object. Inside it, query.keyword is required; query.offset defaults to 0, and query.order_type, query.min_duration, and query.max_duration are optional.

What fields should I read from the search output?

For a review table, read data.results and then each item's data.title, data.user_info.name, data.video_duration, data.comment_count, data.video_detail_info.video_watch_count, data.publish_time, and data.open_url.

Does a search with no matching videos cost a call?

Yes. The price rule says fixed per-call price and successful empty results are charged.

How much does one Xigua keyword search cost?

The listed price is $0.001 per call: 1 call is $0.001 and 20 calls are $0.020.

Why might some fields be missing from the output?

The contract says output fields were observed on one run, and keys not listed there may be missing on other inputs.

Can I filter Xigua search results by duration?

The input accepts optional query.min_duration and query.max_duration beside query.keyword. The field descriptions do not state the unit, so check the current schema before you rely on them.

Next step

Try this with Xigua

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Xigua tools

Share this article