linkfox-ehunt-temu-product-query
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEHunt Temu 商品查询(ehunt/temu/productQuery
)
ehunt/temu/productQueryEHunt Temu 商品查询(ehunt/temu/productQuery
)
ehunt/temu/productQuery在具备 LinkFox「第三方数据服务」MCP 时,对应网关路由 调用(MCP 展示名:Temu 商品查询,确切工具名以当前环境下发的工具元数据为准)。鉴权与上游路由由网关处理;若响应含根级 字段,是否成功以实网为准。
ehunt/temu/productQuerycode在具备 LinkFox「第三方数据服务」MCP 时,对应网关路由 调用(MCP 展示名:Temu 商品查询,确切工具名以当前环境下发的工具元数据为准)。鉴权与上游路由由网关处理;若响应含根级 字段,是否成功以实网为准。
ehunt/temu/productQuerycode要点
要点
- 分页:从 1 起;
page默认 20、最大 100(建议 ≤50)。pageSize - 区间入参:/
*Begin成对出现(价格、评分、评论、总/周/日销量、上架时间),组成上游区间。*End - 类目:前台类目 ID、
categoryHome后台类目 ID;可先用 Temu 品类检索拿到 id。categoryBackend - 托管模式:(0=全托管,1=半托管);半托管可用
isLocal限定地区(多个逗号分隔)。region - 上下架:(0=上架,1=下架)。
soldOut - 标签:/
tags多个用逗号分隔。customTags - 排序:为「字段-方向」字符串,如
sortBy(周销量降序,默认)、order_week-0、price-0、order_total-0。rating-0
- 分页:从 1 起;
page默认 20、最大 100(建议 ≤50)。pageSize - 区间入参:/
*Begin成对出现(价格、评分、评论、总/周/日销量、上架时间),组成上游区间。*End - 类目:前台类目 ID、
categoryHome后台类目 ID;可先用 Temu 品类检索拿到 id。categoryBackend - 托管模式:(0=全托管,1=半托管);半托管可用
isLocal限定地区(多个逗号分隔)。region - 上下架:(0=上架,1=下架)。
soldOut - 标签:/
tags多个用逗号分隔。customTags - 排序:为「字段-方向」字符串,如
sortBy(周销量降序,默认)、order_week-0、price-0、order_total-0。rating-0
脚本(可选)
脚本(可选)
命令行调试:(需 )。详见 references/api.md 末尾。
python scripts/ehunt_temu_product_query.py '<JSON>'LINKFOXAGENT_API_KEY命令行调试:(需 )。详见 references/api.md 末尾。
python scripts/ehunt_temu_product_query.py '<JSON>'LINKFOXAGENT_API_KEY参考
参考
入参/出参表见 references/api.md。
<!-- LF_LARGE_RESPONSE_BLOCK -->入参/出参表见 references/api.md。
<!-- LF_LARGE_RESPONSE_BLOCK -->Handling Large Responses
处理大响应结果
To avoid overflowing the agent context, persist the response to disk and extract only the fields you need:
python scripts/response_io.py run --script scripts/ehunt_temu_product_query.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"Pickoutside any git working tree (e.g.--out-diron Unix,/tmp/...on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.%TEMP%/...
runread--limit/--offset--format json|jsonl|csv|tableWhen to prefer this pattern — apply your judgment based on the response characteristics, e.g.:
- High field count per record, or fields you don't need
- Batch/paginated results (multiple items per call)
- Long-text fields (descriptions, reviews, HTML, time series)
- Output reused across later steps rather than consumed immediately
For small, single-use responses, calling the main script directly is fine.
⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via .
<!-- /LF_LARGE_RESPONSE_BLOCK -->read为避免超出Agent上下文限制,请将响应结果保存到磁盘,仅提取所需字段:
python scripts/response_io.py run --script scripts/ehunt_temu_product_query.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"请将设置在Git工作区之外(例如Unix系统的--out-dir,Windows系统的/tmp/...)。保存的响应结果可能包含个人身份信息(PII)、定价或敏感鉴权数据——请勿提交这些文件。文件不会自动删除,完成任务后请自行清理。%TEMP%/...
runread--limit/--offset--format json|jsonl|csv|table何时优先使用此模式——根据响应结果的特性判断,例如:
- 每条记录字段数量多,或包含不需要的字段
- 批量/分页结果(每次调用返回多个条目)
- 长文本字段(描述、评论、HTML、时间序列)
- 输出结果需在后续步骤复用,而非立即使用
对于小型、单次使用的响应结果,直接调用主脚本即可。
⚠️ 预览内容是截断的schema + 示例,并非完整数据。任何字段级别的操作都必须通过命令从保存的文件中读取。
<!-- /LF_LARGE_RESPONSE_BLOCK -->read