{"openapi":"3.1.0","info":{"title":"x402-market","version":"0.1.0","description":"Machine-payable API marketplace on Base. Every endpoint settles via the x402 protocol using USDC. Agents can discover and call APIs without human intervention."},"servers":[{"url":"https://x402-market-api.lien-studio-akiyama.workers.dev"}],"paths":{"/api/seller-4068b8fc/test-echo-cdp-high":{"post":{"operationId":"call_test_echo_cdp_high","summary":"Echo (Coinbase Facilitator) — price-floor test","description":"Identical to test-echo-cdp-fresh except priced at 0.10 USDC (= 100000 atomic units) instead of 0.01. Used to test the hypothesis that Coinbase Bazaar has an undocumented price floor above $0.01.\n\nUse this tool when validating x402-market end-to-end via the Coinbase Facilitator path with a higher per-call price. Echoes the JSON body. Returns { request_id, timestamp, method, echoed }.\n\nWhen to use:\n- Confirming the listing surfaces in Coinbase Bazaar /discovery/resources at the higher 0.10 USDC price point.\n- A/B testing Bazaar indexing behaviour vs the existing 0.01 USDC listings (test-echo-cdp, test-echo-cdp-2, test-echo-cdp-fresh).\n- Smoke-testing CDP-mediated settle on Base mainnet at the 10x price step.\n\nOutput:\nrequest_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent.\n\nUse cases:\n- test integration\n- echo for debugging\n\nPrice: 0.1 USDC per call (x402 settlement on Base).","tags":["data","test","integration","echo","cdp","bazaar","price-floor-test"],"x-x402":{"price":"0.1","asset":"USDC","network":"base","facilitator":"cdp"},"x-when-to-use":["Confirming the listing surfaces in Coinbase Bazaar /discovery/resources at the higher 0.10 USDC price point.","A/B testing Bazaar indexing behaviour vs the existing 0.01 USDC listings (test-echo-cdp, test-echo-cdp-2, test-echo-cdp-fresh).","Smoke-testing CDP-mediated settle on Base mainnet at the 10x price step."],"x-output-format":"request_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent.","x-tags":["test","integration","echo","cdp","bazaar","price-floor-test"],"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}},"/api/seller-4068b8fc/test-echo-cdp-fresh":{"post":{"operationId":"call_test_echo_cdp_fresh","summary":"Echo (Coinbase Facilitator) fresh","description":"Third cdp-mode echo listing, created after the v2-spec PaymentPayload.extensions fix. Used to test whether a brand-new resource indexed only with the corrected wire format gets picked up by Bazaar discovery.\n\nUse this tool to verify x402-market end-to-end via the Coinbase Facilitator settlement path. Echoes whatever JSON you POST. Returns { request_id, timestamp, method, echoed }.\n\nWhen to use:\n- Verifying a buyer SDK that signs EIP-3009 transferWithAuthorization rather than broadcasting txs directly.\n- Confirming the listing appears in Coinbase Bazaar discovery (https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources).\n- Smoke-testing the CDP-mediated settle path end-to-end on Base mainnet for under one cent.\n\nOutput:\nrequest_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).\n\nUse cases:\n- test integration\n- echo for debugging\n\nPrice: 0.01 USDC per call (x402 settlement on Base).","tags":["data","test","integration","echo","cdp","bazaar","real-time"],"x-x402":{"price":"0.01","asset":"USDC","network":"base","facilitator":"cdp"},"x-when-to-use":["Verifying a buyer SDK that signs EIP-3009 transferWithAuthorization rather than broadcasting txs directly.","Confirming the listing appears in Coinbase Bazaar discovery (https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources).","Smoke-testing the CDP-mediated settle path end-to-end on Base mainnet for under one cent."],"x-output-format":"request_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).","x-tags":["test","integration","echo","cdp","bazaar","real-time"],"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}},"/api/seller-4068b8fc/test-echo-cdp-2":{"post":{"operationId":"call_test_echo_cdp_2","summary":"Echo (Coinbase Facilitator) #2","description":"Second cdp-mode listing identical to test-echo-cdp, used to A/B test whether the Bazaar indexer picks up newly-created resources differently from one that has been live for several days.\n\nUse this tool to verify x402-market end-to-end via the Coinbase Facilitator settlement path. Echoes whatever JSON you POST. Returns { request_id, timestamp, method, echoed }.\n\nWhen to use:\n- Verifying a buyer SDK that signs EIP-3009 transferWithAuthorization rather than broadcasting txs directly.\n- Confirming the listing appears in Coinbase Bazaar discovery (https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources).\n- Smoke-testing the CDP-mediated settle path end-to-end on Base mainnet for under one cent.\n\nOutput:\nrequest_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).\n\nUse cases:\n- test integration\n- echo for debugging\n\nPrice: 0.01 USDC per call (x402 settlement on Base).","tags":["data","test","integration","echo","cdp","bazaar","real-time"],"x-x402":{"price":"0.01","asset":"USDC","network":"base","facilitator":"cdp"},"x-when-to-use":["Verifying a buyer SDK that signs EIP-3009 transferWithAuthorization rather than broadcasting txs directly.","Confirming the listing appears in Coinbase Bazaar discovery (https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources).","Smoke-testing the CDP-mediated settle path end-to-end on Base mainnet for under one cent."],"x-output-format":"request_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).","x-tags":["test","integration","echo","cdp","bazaar","real-time"],"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}},"/api/seller-4068b8fc/test-echo-cdp":{"post":{"operationId":"call_test_echo_cdp","summary":"Echo (Coinbase Facilitator)","description":"Same echo endpoint as test-echo-prod, but settlement is routed through the Coinbase Facilitator instead of self-verified on-chain. Used to validate Coinbase Bazaar discoverability for x402-market listings.\n\nUse this tool to verify x402-market end-to-end via the Coinbase Facilitator settlement path. Echoes whatever JSON you POST. Returns { request_id, timestamp, method, echoed }.\n\nWhen to use:\n- Verifying a buyer SDK that signs EIP-3009 transferWithAuthorization rather than broadcasting txs directly.\n- Confirming the listing appears in Coinbase Bazaar discovery (https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources).\n- Smoke-testing the CDP-mediated settle path end-to-end on Base mainnet for under one cent.\n\nOutput:\nrequest_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).\n\nUse cases:\n- test integration\n- echo for debugging\n\nPrice: 0.01 USDC per call (x402 settlement on Base).","tags":["data","test","integration","echo","cdp","bazaar","real-time"],"x-x402":{"price":"0.01","asset":"USDC","network":"base","facilitator":"cdp"},"x-when-to-use":["Verifying a buyer SDK that signs EIP-3009 transferWithAuthorization rather than broadcasting txs directly.","Confirming the listing appears in Coinbase Bazaar discovery (https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources).","Smoke-testing the CDP-mediated settle path end-to-end on Base mainnet for under one cent."],"x-output-format":"request_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).","x-tags":["test","integration","echo","cdp","bazaar","real-time"],"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}},"/api/seller-4068b8fc/test-echo-prod":{"post":{"operationId":"call_test_echo_prod","summary":"Test Echo API","description":"Test endpoint that echoes back input. Used for SDK integration testing and end-to-end verification.\n\nUse this tool when the user wants to verify x402-market end-to-end (payment, proxy, response) without spending real money on a meaningful API. Echoes whatever JSON you POST. Returns { request_id, timestamp, method, echoed }.\n\nWhen to use:\n- Smoke-testing your buyer wallet against Base mainnet x402 settlement.\n- Confirming your MCP host (Claude Desktop, Cursor) actually invokes pay_and_call rather than hallucinating.\n- Demoing the marketplace to someone for under one cent.\n\nOutput:\nrequest_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).\n\nUse cases:\n- test integration\n- echo for debugging\n\nPrice: 0.01 USDC per call (x402 settlement on Base).","tags":["data","test","integration","echo","real-time"],"x-x402":{"price":"0.01","asset":"USDC","network":"base","facilitator":"self"},"x-when-to-use":["Smoke-testing your buyer wallet against Base mainnet x402 settlement.","Confirming your MCP host (Claude Desktop, Cursor) actually invokes pay_and_call rather than hallucinating.","Demoing the marketplace to someone for under one cent."],"x-output-format":"request_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).","x-tags":["test","integration","echo","real-time"],"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}},"/api/seller-4068b8fc/test-echo":{"post":{"operationId":"call_test_echo","summary":"Test Echo API","description":"Test endpoint that echoes back input. Used for SDK integration testing and end-to-end verification.\n\nUse this tool when the user wants to verify x402-market end-to-end (payment, proxy, response) without spending real money on a meaningful API. Echoes whatever JSON you POST. Returns { request_id, timestamp, method, echoed }.\n\nWhen to use:\n- Smoke-testing your buyer wallet against Base mainnet x402 settlement.\n- Confirming your MCP host (Claude Desktop, Cursor) actually invokes pay_and_call rather than hallucinating.\n- Demoing the marketplace to someone for under one cent.\n\nOutput:\nrequest_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).\n\nUse cases:\n- test integration\n- echo for debugging\n\nPrice: 0.01 USDC per call (x402 settlement on Base).","tags":["data","test","integration","echo","real-time"],"x-x402":{"price":"0.01","asset":"USDC","network":"base","facilitator":"self"},"x-when-to-use":["Smoke-testing your buyer wallet against Base mainnet x402 settlement.","Confirming your MCP host (Claude Desktop, Cursor) actually invokes pay_and_call rather than hallucinating.","Demoing the marketplace to someone for under one cent."],"x-output-format":"request_id: server-generated UUID for tracing. timestamp: ISO-8601 UTC of when the upstream handled the request. method: the HTTP method observed at the upstream. echoed: byte-identical copy of the JSON body you sent (or {} for GET/HEAD).","x-tags":["test","integration","echo","real-time"],"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}},"/api/platform/npb-predict":{"post":{"operationId":"call_npb_predict","summary":"NPB Game Outcome Predictor","description":"Predicts the winner and run distribution of upcoming Nippon Professional Baseball (NPB) games using a model trained on team-level offense/defense, starting pitcher splits, recent form, and ballpark factors. Returns calibrated win probabilities (sum to 1.0) and an expected run differential. Suitable for betting analysis, fantasy lineup decisions, content generation, and quantitative research. Updated daily before first pitch.\n\nUse this tool when the user wants a model-backed prediction for an upcoming Nippon Professional Baseball game. Returns calibrated win probabilities and an expected run differential.\n\nWhen to use:\n- User asks \"who will win tonight's NPB game between G and T?\"\n- Building a fantasy lineup or DFS slate that needs win-probability inputs.\n- Backtesting a betting strategy against historical NPB outcomes.\n- Deciding which side of a sportsbook line carries positive expected value.\n\nOutput:\nhome_win_prob / away_win_prob: calibrated probabilities, sum to 1.0. expected_run_diff: home runs minus away runs (positive = home favored). confidence: model's self-assessed reliability (\"low\" when teams have insufficient recent data). model_version: pin for reproducibility.\n\nUse cases:\n- Decide which side to bet given a sportsbook line for an NPB game.\n- Generate pre-game preview articles or social posts with a defensible model-backed angle.\n- Filter a slate of NPB games down to the highest-edge picks for fantasy or DFS.\n- Backtest a betting strategy by querying historical predictions vs. closing lines.\n- Surface upset alerts when model probability disagrees sharply with implied market probability.\n\nPrice: 0.05 USDC per call (x402 settlement on Base).","tags":["sports","sports","baseball","japan","npb","prediction","real-time"],"x-x402":{"price":"0.05","asset":"USDC","network":"base","facilitator":"self"},"x-when-to-use":["User asks \"who will win tonight's NPB game between G and T?\"","Building a fantasy lineup or DFS slate that needs win-probability inputs.","Backtesting a betting strategy against historical NPB outcomes.","Deciding which side of a sportsbook line carries positive expected value."],"x-output-format":"home_win_prob / away_win_prob: calibrated probabilities, sum to 1.0. expected_run_diff: home runs minus away runs (positive = home favored). confidence: model's self-assessed reliability (\"low\" when teams have insufficient recent data). model_version: pin for reproducibility.","x-tags":["sports","baseball","japan","npb","prediction","real-time"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["home_team","away_team","game_date"],"properties":{"away_team":{"type":"string"},"game_date":{"type":"string","format":"date","description":"JST game date YYYY-MM-DD"},"home_team":{"type":"string","description":"NPB team code, e.g. G (Giants), T (Tigers), B (Buffaloes)"}}},"examples":{"example_1":{"value":{"away_team":"T","game_date":"2026-05-03","home_team":"G"}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"confidence":{"enum":["low","medium","high"],"type":"string"},"away_win_prob":{"type":"number","maximum":1,"minimum":0},"home_win_prob":{"type":"number","maximum":1,"minimum":0},"model_version":{"type":"string"},"expected_run_diff":{"type":"number","description":"home runs - away runs (positive = home favored)"}}},"examples":{"example_1":{"value":{"confidence":"medium","away_win_prob":0.42,"home_win_prob":0.58,"model_version":"npb-v3.2","expected_run_diff":0.7}}}}}},"402":{"description":"Payment required. Body contains x402 payment instructions."}}}}}}