How to search Pipixia content by keyword with one API call
Fetch one page of Pipixia search results for a keyword and turn the returned items into a review table with IDs, captions, authors and engagement counts
On this page
You have one campaign keyword and need a first page of Pipixia search results to scan, up to 20 returned items, with item IDs, captions, authors and engagement counts laid out in a review table. tikhub.pipixia.app.fetch_search returns that page as supplier JSON, and the table is where the decision about which clips need a closer look gets made
The task and the review table
Values here are placeholders showing the shape, not output from a run
| item_id | content | author.name | play_count | like_count | comment_count | hashtag | city_name | review_flag |
|---|---|---|---|---|---|---|---|---|
| (id string) | (caption text) | (author name) | (number) | (number) | (number) | (hashtag name or empty) | (city or empty) | review or skip |
Set the review flag rule before the first call, because that column is what a person reads. A workable first pass: flag a row when the engagement count sits above the threshold in your brief, or when the hashtag and city match the campaign terms. Rows with no item payload are skipped, not flagged
What the tool takes
The contract's input object requires query, and query.keyword is the required field inside it. query.offset and query.search_type are optional strings, so leave them out for a first-page call and let the defaults of "0" and "1" apply. Agents call it through POST /v1/runs with toolId tikhub.pipixia.app.fetch_search
| Field | Required | Default | Example value |
|---|---|---|---|
query.keyword | yes | none | 咖啡 |
query.offset | no | "0" | "0" |
query.search_type | no | "1" | "1" |
The keyword above is an example taken from the research brief and must be replaced with your own. Successful empty results are still charged at $0.001 per call, so a keyword with no matches costs the same as one that fills the page. Test a single keyword before you commit to three
How to read the returned fields
The response is the supplier's raw JSON with no fixed schema, and the field names listed in the contract come from one run. Read the first page, confirm the names, then map them into the table
data.datais the array of rows to loop overdata.has_morereports whether a next page exists, anddata.real_countreports a count for the page.data.correct_querycan carry a corrected query string, and in the observed sample it was emptycell_id_stridentifies the cell and is the value for the ID columnhashtagsits on the row and is often null, andcity_namesits on the row and is often null too. Leave the cell empty rather than inventing a valuecell_typeis an integer that separates cell kinds, and rows whereitemis null have no clip payload to read
What one real call returned
One call was made on 2026-11-13 with {"query": {"keyword": "咖啡", "offset": "0", "search_type": "1"}}. Billing reported SETTLED, charged 0.001 USD against a ceiling of 0.001 USD
The top-level keys of data were data, user_id, has_more, real_count, user_id_str, middleground and correct_query. The data.data array held 21 items while data.real_count was 20. data.has_more was true, data.middleground was true and data.correct_query was an empty string. The first row's keys included game, item, button, ad_info, cell_id, comment, hashtag, stickup, card_item, cell_type, city_name, cell_id_str and display_time
No content of individual items is described here, only counts and field names
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Pipixia
for the keyword 咖啡 and return a review table. Check the current inputs
and price of tikhub.pipixia.app.fetch_search before running anything.
Send one call with query.keyword set to the keyword and leave query.offset
and query.search_type at their defaults. Read the field names from the
first page before mapping them, because the output is raw supplier JSON
with no fixed schema. Return a table with item_id, content, author.name,
stats.play_count, stats.like_count, stats.comment_count,
hashtag.base_hashtag.name, city_name and review_flag. Skip rows where
item is null. Do not invent values for empty fields. Stop after one page.Replace 咖啡 with your own keyword. Use cell_id_str for the ID column so it stays readable
Estimated tool cost
The listing is a max_call price: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, and the real call above settled at its ceiling
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One keyword search | calls x price | $0.001 per call | 1 | $0.001 |
| Three keyword searches | calls x price | $0.001 per call | 3 | $0.003 |
A successful empty page is charged the same $0.001, so put keywords that may return nothing into the planned quantity. Model fees for the agent are not counted
Start with one keyword
Run the example keyword once, check that the field names match the mapping above, then add the next two. The tool page is at Pipixia search. The same table shape for a different platform is in the Douyin keyword search guide
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 Pipixia.FAQ
How do I search Pipixia by keyword with an API?
Call tikhub.pipixia.app.fetch_search with query.keyword set to your term and leave query.offset and query.search_type at their defaults. The response is supplier JSON, so read the field names from the first page before mapping them.
What inputs does tikhub.pipixia.app.fetch_search take?
The input object requires query, and inside it query.keyword is required. query.offset and query.search_type are optional strings with defaults of "0" and "1".
Does an empty Pipixia search still cost money?
Yes. The price rule says successful empty results are charged, at $0.001 per call. A keyword with no matches costs the same as one that fills the page.
How many items come back from one keyword search?
The one real call behind this guide reported data.real_count of 20 while the data.data array held 21 items. Treat those two numbers as separate fields rather than assuming they match.
What fields does the response return?
The top-level keys in the observed response were data, user_id, has_more, real_count, user_id_str, middleground and correct_query. Each row in data.data carries fields such as item_id, content, hashtag, cell_type, city_name and an item object with author and stats.
How much does it cost to search three Pipixia keywords?
At the fixed $0.001 per call price, three calls total $0.003. The totals are ceilings, and agent model fees are not included.
Can I get the next page of Pipixia results?
query.offset is a page cursor string defaulting to "0", and data.has_more reports whether another page exists. The contract does not document how a next cursor value is built.
Next step
Try this with Pipixia
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.