/install agnicpay-search-for-service
Searching the x402 Bazaar
Use npx agnic@latest x402 commands to discover and inspect paid API endpoints on the x402 bazaar marketplace. No authentication or balance is required for searching.
Commands
Search the Bazaar
Find paid services by keyword using BM25 relevance search:
npx agnic@latest x402 bazaar search \x3Cquery> [-k \x3Cn>] [--force-refresh] [--json]
| Option | Description |
|---|---|
-k, --top \x3Cn> |
Number of results (default: 5) |
--force-refresh |
Re-fetch resource index from CDP API |
--json |
Output as JSON |
Results are cached locally at ~/.config/agnic/bazaar/ and auto-refresh after 12 hours.
List Bazaar Resources
Browse all available resources:
npx agnic@latest x402 bazaar list [--network \x3Cnetwork>] [--full] [--json]
| Option | Description |
|---|---|
--network \x3Cname> |
Filter by network (base, base-sepolia) |
--full |
Show complete details including schemas |
--json |
Output as JSON |
Discover Payment Requirements
Inspect an endpoint's x402 payment requirements without paying:
npx agnic@latest x402 details \x3Curl> [--json]
Auto-detects the correct HTTP method by trying each until it gets a 402 response, then displays price, accepted payment schemes, network, and input/output schemas.
Examples
# Search for weather-related paid APIs
npx agnic@latest x402 bazaar search "weather" --json
# Search with more results
npx agnic@latest x402 bazaar search "sentiment analysis" -k 10 --json
# Browse all bazaar resources
npx agnic@latest x402 bazaar list --full --json
# Check what an endpoint costs
npx agnic@latest x402 details https://example.com/api/weather
Prerequisites
- No authentication needed for search, list, or details commands
Next Steps
Once you've found a service, use the pay-for-service skill to make a paid request.
Error Handling
Common errors:
- "CDP API returned 429" -- Rate limited; cached data will be used if available
- "No X402 payment requirements found" -- URL may not be an x402 endpoint
- No results -- Try broadening the search query or using different keywords
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agnicpay-search-for-service - 安装完成后,直接呼叫该 Skill 的名称或使用
/agnicpay-search-for-service触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agnic Search for Service 是什么?
Search the x402 bazaar for paid API services. Use when the user wants to find APIs, discover services, browse the marketplace, or needs an external service.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。
如何安装 Agnic Search for Service?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agnicpay-search-for-service」即可一键安装,无需额外配置。
Agnic Search for Service 是免费的吗?
是的,Agnic Search for Service 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agnic Search for Service 支持哪些平台?
Agnic Search for Service 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agnic Search for Service?
由 Agnic.AI(@agnicpay-prog)开发并维护,当前版本 v2.0.2。