如果你在 eBay 上卖货或从那里进货,你定的价格取决于此刻有哪些商品在售:多少卖家在竞争,最便宜的那家能低到多少,是否包邮。逐个商品手动检查太慢,到晚上数据就过时了。Lovely Router 替你执行 eBay 搜索:传入关键词,每件在售商品返回一个 JSON 对象,按商品数量从预付费余额中计费。用一个 API 密钥,就能从脚本、调价任务或 AI 智能体中运行。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
按关键词监控 eBay 上的竞品价格和卖家报价. Use the Lovely Router data tools: each returns JSON and is billed per result.
- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <the inputs (links, keywords or accounts) and how many results you need>工作原理
列出你的搜索词
你卖或要买的每个商品一个关键词:型号、商品名称、商品编号,或加引号的“精确短语”。
设置上限后运行工具
发送到
POST /v1/tools/ebay-listings/run,附上 eBay 站点、可选的价格和成色筛选,并用max_results作为运行上限。运行会从你的余额中预留它的最高费用,并以 JSON 返回商品。与你的价格对比
对每个关键词,找出最低价、价格中位数以及提供包邮的卖家数量。市场变动时调价或发出提醒。
一次请求获取当前在售商品
搜索 eBay 商品在 keywords 中接受搜索词,每个词各执行一次搜索,并在 ebaySite 中指定国家站点。可用 minPrice、maxPrice(以该站点的币种计)和 condition 筛选。该工具读取每次搜索的第一页结果:
curl https://lovelyrouter.com/v1/tools/ebay-listings/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"keywords": ["mechanical keyboard"],
"ebaySite": "www.ebay.com"
},
"max_results": 20
}'运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。一次运行最多可返回 60 条商品。
每条商品包含什么
| Field group | What you get |
|---|---|
| 价格 | 挂牌价,以该站点的币种计 |
| 成色 | 全新、二手以及 eBay 显示的其他成色 |
| 卖家 | 卖家是谁 |
| 运费 | 运费或运送条款 |
使用方案
每天早上运行你最重要的 30 个关键词,存储每个关键词的最低价和中位价,价格下跌超过设定百分比时发出提醒。
对每个关键词,统计包邮商品的占比,再决定是否把运费计入你的价格。
对同一关键词分别用 condition 筛选全新和二手,看价差,并为你的翻新库存定价。
把 ebaySite 切换为 www.ebay.co.uk 或 www.ebay.de,在跨境发货之前比较各币种下的价格。
设置 maxPrice,找出价格远低于同一关键词中位价的商品。
更想用自然语言?连接 MCP 服务器,然后告诉 Claude Code 或 Cursor:"在 eBay 上搜索 products.txt 中的 15 个关键词,以表格形式给出每个关键词的最低价、中位价和卖家数量。把 max_results 设为 60。"
与其他数据源搭配
在售商品的价格是挂牌价。其余信息:
按关键词获取 eBay 商品:价格、成色、卖家、运费。
商品在 eBay 上的实际成交情况:成交价、运费、成色、结束日期。适合价格调研与估值。
ebay-sold显示商品实际成交的价格,也就是买家愿意接受的价格。
如需在一项任务中覆盖多个电商平台,请参阅电商情报。
费用说明
按商品计费:开始运行时会预留最高费用,即单次调用费加上单条商品费乘以 max_results,运行结束后按实际返回的数量结算,其余预留金额退回你的余额。失败或超时的运行只为已交付的商品付费,开始时就被拒绝的运行不收费。
监控 30 个关键词、每个 20 条商品,按 600 条商品计费。没有订阅,也没有每月最低消费:从 $5 起充值,一份余额同时支付工具和模型。上方卡片显示今日价格;价格页列出了每个工具。
常见问题
支持哪些 eBay 站点?+
ebaySite 接受 www.ebay.com、www.ebay.co.uk、www.ebay.de、www.ebay.fr、www.ebay.it、www.ebay.es、www.ebay.ca 和 www.ebay.com.au。价格以该站点的币种返回。
每个关键词能获取多少条商品?+
该工具读取每次搜索的第一页结果,一次运行总共最多返回 60 条商品。
可以按商品编号或精确短语搜索吗?+
可以。keywords 字段接受搜索词、商品编号,或 eBay 语法,例如加引号的“精确短语”。
能看到商品的成交价吗?+
不能,它显示的是当前在售商品。已完成的交易请使用 eBay 成交记录。
可以按成色筛选吗?+
可以,用 condition 字段。全新和二手适用于所有品类。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,也不会自动续费。