search-for-service
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSearching the x402 Bazaar
搜索x402 Bazaar
Use the commands to discover and inspect paid API endpoints available on the x402 bazaar marketplace. No authentication or balance is required for searching.
npx awal@latest x402使用命令来发现和查看x402 bazaar市场中可用的付费API端点。搜索无需身份验证或余额。
npx awal@latest x402Commands
命令
Search the Bazaar
搜索市场
Find paid services by keyword using BM25 relevance search:
bash
npx awal@latest x402 bazaar search <query> [-k <n>] [--force-refresh] [--json]| Option | Description |
|---|---|
| Number of results (default: 5) |
| Re-fetch resource index from CDP API |
| Output as JSON |
Results are cached locally at and auto-refresh after 12 hours.
~/.config/awal/bazaar/使用BM25相关性搜索,按关键词查找付费服务:
bash
npx awal@latest x402 bazaar search <query> [-k <n>] [--force-refresh] [--json]| 选项 | 说明 |
|---|---|
| 结果数量(默认值:5) |
| 从CDP API重新获取资源索引 |
| 以JSON格式输出 |
结果会缓存在本地目录下,12小时后自动刷新。
~/.config/awal/bazaar/List Bazaar Resources
列出市场资源
Browse all available resources:
bash
npx awal@latest x402 bazaar list [--network <network>] [--full] [--json]| Option | Description |
|---|---|
| Filter by network (base, base-sepolia) |
| Show complete details including schemas |
| Output as JSON |
浏览所有可用资源:
bash
npx awal@latest x402 bazaar list [--network <network>] [--full] [--json]| 选项 | 说明 |
|---|---|
| 按网络筛选(base、base-sepolia) |
| 显示完整详情,包括模式(schemas) |
| 以JSON格式输出 |
Discover Payment Requirements
查看支付要求
Inspect an endpoint's x402 payment requirements without paying:
bash
npx awal@latest x402 details <url> [--json]Auto-detects the correct HTTP method (GET, POST, PUT, DELETE, PATCH) by trying each until it gets a 402 response, then displays price, accepted payment schemes, network, and input/output schemas.
无需付费即可查看端点的x402支付要求:
bash
npx awal@latest x402 details <url> [--json]通过尝试每种HTTP方法(GET、POST、PUT、DELETE、PATCH)直到收到402响应,自动检测正确的HTTP方法,然后显示价格、接受的支付方案、网络以及输入/输出模式。
Examples
示例
bash
undefinedbash
undefinedSearch for weather-related paid APIs
搜索与天气相关的付费API
npx awal@latest x402 bazaar search "weather"
npx awal@latest x402 bazaar search "weather"
Search with more results
搜索并获取更多结果
npx awal@latest x402 bazaar search "sentiment analysis" -k 10
npx awal@latest x402 bazaar search "sentiment analysis" -k 10
Browse all bazaar resources with full details
浏览市场所有资源并查看完整详情
npx awal@latest x402 bazaar list --full
npx awal@latest x402 bazaar list --full
Check what an endpoint costs
查看某个端点的费用
npx awal@latest x402 details https://example.com/api/weather
undefinednpx awal@latest x402 details https://example.com/api/weather
undefinedPrerequisites
前提条件
- No authentication needed for search, list, or details commands
- 搜索、列出或查看详情命令无需身份验证
Next Steps
后续步骤
Once you've found a service you want to use, use the skill to make a paid request to the endpoint.
pay-for-service找到想要使用的服务后,使用 skill向该端点发起付费请求。
pay-for-serviceError Handling
错误处理
- "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
- "CDP API returned 429" - 触发速率限制;如果有缓存数据,将使用缓存数据
- "No X402 payment requirements found" - 该URL可能不是x402端点