pp-ebay
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseeBay — Printing Press CLI
eBay — Printing Press CLI
Prerequisites: Install the CLI
前提条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
ebay-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install ebay --cli-only - Verify:
ebay-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.23+):
npxbash
go install github.com/mvanhorn/printing-press-library/library/commerce/ebay/cmd/ebay-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATH本Skill驱动二进制文件。在调用本Skill的任何命令前,必须验证CLI已安装。若未安装,请先执行以下步骤:
ebay-pp-cli- 通过Printing Press安装器安装:
bash
npx -y @mvanhorn/printing-press install ebay --cli-only - 验证安装:
ebay-pp-cli --version - 确保(或
$GOPATH/bin)已添加至$HOME/go/bin环境变量。$PATH
若安装失败(无Node环境、离线等情况),可改用Go直接安装(要求Go 1.23+版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/commerce/ebay/cmd/ebay-pp-cli@latest若安装后执行提示“command not found”,说明安装程序未将二进制文件添加至。请在验证成功前不要执行Skill命令。
--version$PATHUnique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
这些功能是其他eBay API工具所不具备的。
Discovery and intelligence
发现与智能分析
-
— Search active auctions filtered by bid count and ending window (e.g. "Steph Curry cards with at least 3 bids ending in next hour"). The eBay site can no longer answer this query since the Finding API was retired in February 2025.
auctionsFinds price-discoverable competition windows where last-second bidding actually moves the price.bashebay-pp-cli auctions "Steph Curry rookie" --has-bids --ending-within 1h --json --select item_id,price,bids,time_left -
— Average sale price for any item over the last 90 days with smart matching, condition normalization, outlier trim, and percentile distribution.
compWhen pricing a bid (or deciding whether to even bother), you need the realistic distribution of recent sales, not a single anchor. Trim handles outliers; dedupe handles title variants.bashebay-pp-cli comp "Cooper Flagg /50 Topps Chrome" --trim --json --select mean,median,sample_size -
outlier trim — 1.5x IQR outlier trim on sold-comp results. Surfaces the realistic price band buyers should anchor on, with stddev and quartiles.
compTells you what a normal buyer actually paid versus a record sale or a fire-sale outlier.bashebay-pp-cli comp "Rolex Submariner 116610LN" --trim --json --select p25,median,p75,std_dev -
— Collapse near-duplicate sold listings to one exemplar per fingerprint (token-bag, order-insensitive).
comp --dedupe-variantsWithout dedupe, the comp distribution is biased toward whichever seller listed the same card 5 times.bashebay-pp-cli comp "Cooper Flagg /50" --dedupe-variants -
— Active listing search filtered by auction/BIN, condition, and price band.
listingsbashebay-pp-cli listings --nkw "PSA Mariners Griffey" --lh-bin 1 --udlo 10 --udhi 30
-
— 按出价次数和结束时段筛选在售拍卖(例如:"Steph Curry cards with at least 3 bids ending in next hour")。自2025年2月Finding API停用后,eBay官网已无法响应此类查询。
auctions可找到价格波动明显的竞价窗口,此时段内的最后出价会真正影响成交价。bashebay-pp-cli auctions "Steph Curry rookie" --has-bids --ending-within 1h --json --select item_id,price,bids,time_left -
— 基于智能匹配、状态归一化、异常值剔除和百分位分布,计算任意商品过去90天的平均售价。
comp在出价定价(或决定是否参与竞价)时,你需要的是近期真实的售价分布,而非单一参考价。异常值剔除功能可过滤极端数据;去重功能可处理标题变体带来的重复数据。bashebay-pp-cli comp "Cooper Flagg /50 Topps Chrome" --trim --json --select mean,median,sample_size -
异常值剔除 — 对已售比价结果采用1.5倍四分位距(IQR)剔除异常值,呈现买家应参考的真实价格区间,并提供标准差和四分位数数据。
comp可告诉你普通买家的实际成交价,区别于创纪录售价或甩卖价这类异常值。bashebay-pp-cli comp "Rolex Submariner 116610LN" --trim --json --select p25,median,p75,std_dev -
— 将近似重复的已售列表按指纹(词袋模型、顺序无关)合并为单个样本。
comp --dedupe-variants若不进行去重,比价分布会偏向同一卖家多次上架的同款商品。bashebay-pp-cli comp "Cooper Flagg /50" --dedupe-variants -
— 按拍卖/一口价、商品状态和价格区间筛选在售商品。
listingsbashebay-pp-cli listings --nkw "PSA Mariners Griffey" --lh-bin 1 --udlo 10 --udhi 30
When to use
使用场景
- User asks "what did this card / watch / item sell for" →
ebay-pp-cli comp "<title>" --trim - User asks "find auctions ending soon with bids" →
ebay-pp-cli auctions "<query>" --has-bids --ending-within 1h - User asks "find Buy It Now listings under $X for ..." →
ebay-pp-cli listings --nkw "<query>" --lh-bin 1 --udhi <max> - User asks "watch this listing" / "show my watchlist" →
ebay-pp-cli watch list - User asks to bid programmatically → explain the limitation (eBay step-ups auth on ); link them to bid in the browser. Do not run
/bfl/placebidorbidon their behalf.snipe
- 用户询问“这款卡片/手表/商品卖了多少钱” → 执行
ebay-pp-cli comp "<标题>" --trim - 用户询问“查找即将结束且已有出价的拍卖” → 执行
ebay-pp-cli auctions "<查询词>" --has-bids --ending-within 1h - 用户询问“查找价格低于$X的一口价商品” → 执行
ebay-pp-cli listings --nkw "<查询词>" --lh-bin 1 --udhi <最高价> - 用户询问“关注该商品”/“查看我的关注列表” → 执行
ebay-pp-cli watch list - 用户要求程序化出价 → 说明限制条件(eBay在接口启用进阶认证);引导用户在浏览器中出价。不要代为执行
/bfl/placebid或bid命令。snipe
Anti-triggers
不适用于以下场景
This CLI is NOT the right tool for:
- Placing bids. /
bid/snipeare experimental and fail end-to-end. Direct the user to bid in their browser.bid-group - Listing items as a seller (use the eBay Sell APIs / Seller Hub directly).
- Order fulfillment or shipping label generation.
- Bulk inventory management for sellers.
本CLI并非适用于:
- 出价操作。/
bid/snipe功能处于实验阶段,无法完整执行。请引导用户在浏览器中出价。bid-group - 卖家发布商品(直接使用eBay Sell API或卖家中心)。
- 订单履约或运单标签生成。
- 卖家批量库存管理。
Known Limitations
已知限制
- Bid placement (,
bid,snipe) cannot complete end-to-end because eBay step-ups auth onbid-groupfor cookie-only sessions. These commands are hidden from default/bfl/placebidand print a warning when invoked. Users should bid in the browser.--help - Rate limiting: Sustained scraping triggers eBay 403s. Recovery: and back off.
ebay-pp-cli auth refresh - Stub commands: Watchlist write paths, saved-search CRUD, feed, offer-hunter ship as "not yet implemented" stubs.
- 出价功能(、
bid、snipe)无法完整执行,因为eBay针对仅使用Cookie的会话在bid-group接口启用了进阶认证。这些命令默认不在/bfl/placebid中显示,调用时会打印警告信息。用户应在浏览器中出价。--help - 速率限制:持续抓取会触发eBay的403错误。恢复方法:执行并暂停操作一段时间。
ebay-pp-cli auth refresh - 占位命令:关注列表写入路径、已保存搜索的增删改查、feed、offer-hunter等功能以“尚未实现”的占位形式提供。
HTTP Transport
HTTP传输
This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.
本CLI使用兼容Chrome的HTTP传输协议访问浏览器端接口。正常API调用无需常驻浏览器进程。
Discovery Signals
发现信号
This CLI was generated with browser-observed traffic context.
- Capture coverage: 15 API entries from 25 total network entries
- Protocols: html_scraping (95% confidence), rest_json (90% confidence)
- Auth signals: — cookies: cid, s, nonsession, dp1, ebaysid, ds1, ds2, shs, npii
- Generation hints: requires_browser_auth, requires_protected_client, uses_chrome_cookie_import, has_per_request_csrf, has_per_request_fraud_token
- Caveats: placebid_step_up: eBay redirects /bfl/placebid/<id> to sign-in for cookie-only sessions, so bid placement cannot complete from this CLI today; akamai_active: Akamai bot manager active — Surf must use Chrome TLS fingerprint or stdlib HTTP will be blocked; rate_limit: sustained scraping triggers 403s, recover with auth refresh and back off
本CLI基于浏览器捕获的流量上下文生成:
- 捕获覆盖范围:25条网络请求中的15条API请求
- 协议:html_scraping(95%置信度)、rest_json(90%置信度)
- 认证信号:Cookie:cid、s、nonsession、dp1、ebaysid、ds1、ds2、shs、npii
- 生成提示:requires_browser_auth、requires_protected_client、uses_chrome_cookie_import、has_per_request_csrf、has_per_request_fraud_token
- 注意事项:placebid_step_up:eBay会将仅使用Cookie会话的请求重定向至登录页面,因此目前本CLI无法完成出价操作;akamai_active:Akamai反机器人系统已启用 — Surf必须使用Chrome TLS指纹,否则标准库HTTP请求会被拦截;rate_limit:持续抓取会触发403错误,可通过刷新认证并暂停操作恢复
/bfl/placebid/<id>
Command Reference
命令参考
deal — eBay Deals feed
- — Browse the eBay Deals feed
ebay-pp-cli deal
item — Item details
- — Get item detail by listing id
ebay-pp-cli item <itemId>
listings — Active listing search (HTML scrape of /sch/i.html)
- — Search active eBay listings by keyword
ebay-pp-cli listings
sold — Sold/completed listings (last 90 days, HTML scrape)
- — Search sold completed listings by keyword (90 day window)
ebay-pp-cli sold
watch — Watchlist (authenticated, read-only)
- — List items in the user's watchlist
ebay-pp-cli watch
Hand-written commands
- — Sold-comp intelligence: average sale price, distribution, trendline for items matching the query over the last 90 days.
ebay-pp-cli comp <query> - — Search active auctions filtered by bid count, ending window, condition. The 'has bids ending in next hour' query.
ebay-pp-cli auctions <query> - — Stream new listings matching a saved search, with sold-comp context appended to each item.
ebay-pp-cli feed <saved-search> - — Buying history (won, lost, paid) over a configurable window.
ebay-pp-cli history - — Local saved-search CRUD.
ebay-pp-cli saved-search
Hidden experimental commands
These commands exist in the binary but are excluded from because they currently fail end-to-end. Reach them by name (e.g. ) for details.
--helpebay-pp-cli snipe --help- — Place bids (experimental; eBay step-up auth blocks).
ebay-pp-cli bid - — Sniper bid (experimental; depends on bid flow).
ebay-pp-cli snipe <itemId> --max <amount> - — Coordinated multi-item snipe groups (experimental; depends on snipe).
ebay-pp-cli bid-group
deal — eBay Deals商品流
- — 浏览eBay Deals商品流
ebay-pp-cli deal
item — 商品详情
- — 按商品ID获取详情
ebay-pp-cli item <itemId>
listings — 在售商品搜索(基于/sch/i.html的HTML抓取)
- — 按关键词搜索eBay在售商品
ebay-pp-cli listings
sold — 已售/完成交易的商品(过去90天,基于HTML抓取)
- — 按关键词搜索已售/完成交易的商品(90天窗口)
ebay-pp-cli sold
watch — 关注列表(需认证,只读)
- — 列出用户关注列表中的商品
ebay-pp-cli watch
手写命令
- — 已售商品比价分析:过去90天内匹配查询词的商品平均售价、价格分布和趋势线。
ebay-pp-cli comp <query> - — 按出价次数、结束时段、商品状态筛选在售拍卖。即“查找即将结束且已有出价的拍卖”查询。
ebay-pp-cli auctions <query> - — 推送匹配已保存搜索的新商品,并附加已售商品比价上下文。
ebay-pp-cli feed <saved-search> - — 可配置时间窗口内的购买历史(已中标、未中标、已支付)。
ebay-pp-cli history - — 本地已保存搜索的增删改查。
ebay-pp-cli saved-search
隐藏的实验性命令
这些命令存在于二进制文件中,但因目前无法完整执行,未包含在中。可直接通过命令名称调用(例如)查看详情。
--helpebay-pp-cli snipe --help- — 出价(实验性;eBay进阶认证拦截)。
ebay-pp-cli bid - — 狙击出价(实验性;依赖出价流程)。
ebay-pp-cli snipe <itemId> --max <amount> - — 多商品协同狙击出价组(实验性;依赖狙击功能)。
ebay-pp-cli bid-group
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
ebay-pp-cli which "<capability in your own words>"which02--help当你知道要执行的操作但不确定对应命令时,可直接询问CLI:
bash
ebay-pp-cli which "<用自然语言描述的功能>"which02--helpAuth Setup
认证设置
This CLI uses a browser session. Log in to .ebay.com in Chrome, then:
bash
ebay-pp-cli auth login --chromeRequires a cookie extraction tool ( via pip, or via Homebrew).
pycookiecheatcookiesRun to verify setup.
ebay-pp-cli doctor本CLI使用浏览器会话。先在Chrome中登录.ebay.com,然后执行:
bash
ebay-pp-cli auth login --chrome需依赖Cookie提取工具(通过pip安装的,或通过Homebrew安装的)。
pycookiecheatcookies执行验证设置是否正确。
ebay-pp-cli doctorAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbashebay-pp-cli deal --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
在任何命令后添加参数,等效于:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 — 标准输出为JSON,错误信息输出至标准错误流
-
可过滤 —参数保留指定字段。点路径可深入嵌套结构;数组可遍历元素。对于输出冗长的API,此功能可有效缩减上下文内容:
--selectbashebay-pp-cli deal --agent --select id,name,status -
可预览 —参数显示请求内容但不发送
--dry-run -
离线友好 — 同步/搜索命令可在本地SQLite存储可用时使用本地数据
-
非交互式 — 从不弹出提示,所有输入均通过参数传递
Response envelope
响应信封
Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse for data and to know whether it's live or local. A human-readable summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
.results.meta.sourceN results (live)读取本地存储或API的命令会将输出包裹在来源信封中:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <数据>
}解析获取数据,通过判断数据来自实时API还是本地存储。仅当标准输出为终端时,才会在标准错误流中打印人类可读的摘要 — 管道/Agent消费者仅会在标准输出获取纯JSON内容。
.results.meta.sourceN results (live)Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
ebay-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
ebay-pp-cli feedback --stdin < notes.txt
ebay-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.ebay-pp-cli/feedback.jsonlEBAY_FEEDBACK_ENDPOINT--sendEBAY_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当你(或Agent)发现本CLI存在问题时,可记录反馈:
ebay-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
ebay-pp-cli feedback --stdin < notes.txt
ebay-pp-cli feedback list --json --limit 10反馈条目存储在本地文件中。仅当设置了且传递了参数或设置时,才会将反馈发送至远程端点。默认仅存储在本地。
~/.ebay-pp-cli/feedback.jsonlEBAY_FEEDBACK_ENDPOINT--sendEBAY_FEEDBACK_AUTO_SEND=true请记录让你感到意外的内容,而非正式的Bug报告。简短、具体、单条记录:这样的反馈才更有价值。
Output Delivery
输出交付
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
所有命令均支持参数。输出会除标准输出外(或替代标准输出)发送至指定的接收端,以便Agent无需手动管道即可路由命令结果。支持三种接收端:
--deliver <sink>| 接收端 | 效果 |
|---|---|
| 默认;仅输出至标准输出 |
| 原子性写入输出至 |
| 将输出内容POST至指定URL(当使用 |
不支持的协议会返回结构化错误,并列出支持的类型。Webhook失败时返回非零退出码,并在标准错误流中记录URL和HTTP状态码。
Named Profiles
命名配置文件
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
ebay-pp-cli profile save briefing --json
ebay-pp-cli --profile briefing deal
ebay-pp-cli profile list --json
ebay-pp-cli profile show briefing
ebay-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profiles配置文件是一组保存的参数值,可在多次调用中复用。适用于定时Agent每次运行时使用相同配置调用同一命令的场景 — 即HeyGen的“Beacon”模式。
ebay-pp-cli profile save briefing --json
ebay-pp-cli --profile briefing deal
ebay-pp-cli profile list --json
ebay-pp-cli profile show briefing
ebay-pp-cli profile delete briefing --yes显式参数优先级高于配置文件值;配置文件值优先级高于默认值。会在下列出所有可用配置文件,以便Agent在运行时自动发现。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 4 | 需要认证 |
| 5 | API错误(上游问题) |
| 7 | 速率限制(等待后重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputebay-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
解析的规则:
$ARGUMENTS- 为空、或
help→ 显示--help输出ebay-pp-cli --help - 以开头 → 若结尾为
install→ 安装MCP;否则 → 参考上方前提条件中的安装步骤mcp - 其他情况 → 直接使用(添加参数执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
- Install the MCP server:
bash
go install github.com/mvanhorn/printing-press-library/library/commerce/ebay/cmd/ebay-pp-mcp@latest - Register with Claude Code:
bash
claude mcp add ebay-pp-mcp -- ebay-pp-mcp - Verify:
claude mcp list
- 安装MCP服务器:
bash
go install github.com/mvanhorn/printing-press-library/library/commerce/ebay/cmd/ebay-pp-mcp@latest - 在Claude Code中注册:
bash
claude mcp add ebay-pp-mcp -- ebay-pp-mcp - 验证:
claude mcp list
Direct Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which ebay-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashebay-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
ebay-pp-cli <command> --help
- 检查是否已安装:若未找到,提供安装选项(参考顶部前提条件中的安装步骤)。
which ebay-pp-cli - 将用户查询匹配到上方独特功能和命令参考中最合适的命令。
- 添加参数执行:
--agentbashebay-pp-cli <command> [subcommand] [args] --agent - 若存在歧义,查看子命令帮助:。
ebay-pp-cli <command> --help