{"openapi":"3.1.0","info":{"title":"Mercari Japan Listings and Sellers (x402 & MCP)","version":"0.1.0","description":"Mercari Japan listings, JPY prices, images, item details, seller profiles, categories and search facets, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/mercari-com/v1/search":{"post":{"operationId":"mercari_com_search","summary":"Mercari Japan Listings and Sellers: Search Mercari Japan listings, categories, brands and facets","description":"Listing, taxonomy or facet rows by keyword, categoryId, brandId or startUrls. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["mercari-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose what to collect, or leave auto to select a mode from your target fields. Select categories or facets explicitly; seller mode returns a profile row and available listing rows within the same limit.","default":"auto","enum":["auto","search","category","brand","categories","facets"]},"keyword":{"type":"string","description":"Enter a search word or phrase, such as kindle; use Japanese product names when appropriate. Empty input starts a billed kindle example search capped at 10 rows."},"searchQueries":{"type":"array","items":{"type":"string"},"description":"Enter a list of search words or phrases. A nonempty list replaces keyword, and each query has its own maxResults allowance."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Mercari Japan search, item, seller profile or category-tree URLs. A category or brand search URL without keyword= lists that page without applying the separate keyword field."},"categoryId":{"type":"string","description":"Enter a Mercari category ID. Alone it selects category listings; with a keyword it narrows the search to that category."},"brandId":{"type":"string","description":"Enter a Mercari brand ID. Alone it selects brand listings; with a keyword it narrows the search to that brand."},"sort":{"type":"string","description":"Choose recommended order, newest first or lowest price first for listing searches.","default":"recommended","enum":["recommended","created_time_desc","price_asc"]},"status":{"type":"string","description":"Filter listing searches by status, such as on_sale or sold_out. Leave empty to avoid selecting a status."},"priceMin":{"type":"number","description":"Optional minimum listing price in Japanese yen (JPY)."},"priceMax":{"type":"number","description":"Optional maximum listing price in Japanese yen (JPY)."},"itemConditionId":{"type":"string","description":"Optional Mercari condition ID for listing searches. Leave empty if you do not need a condition filter."},"pageToken":{"type":"string","description":"Optional search-page token for starting from a later page. Normally leave empty for automatic pagination."},"taxonomyDepth":{"type":"integer","description":"Category-tree depth for categories mode, from 1 to 4. The default is 3; maxResults also limits the number of category rows.","default":3,"minimum":1,"maximum":4},"enrichDetails":{"type":"boolean","description":"Add item details (items/get), such as description, photos, seller, shipping and category fields, to search, category and brand rows. This is off by default; it updates the same rows without adding a separate row charge.","default":false},"useSeedPool":{"type":"boolean","description":"Allow previously collected category data when it is within seedPoolMaxAgeS. Turn off to request current category data instead.","default":true},"maxResults":{"type":"integer","description":"Maximum rows per input, from 1 to 500; default 70, with larger allowances collected in parts of at most 70. All row types count, the run stops at your maximum total charge, and the Free plan allows 10 runs with at most 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"mode":"search","keyword":"kindle","enrichDetails":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_mercari_com"},"example":{"jobId":"job_mercari-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","itemId":"example_itemId","title":"example_title","price":10,"currency":"example_currency","sellerId":"example_sellerId"}],"meta":{"site":"mercari-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/mercari-com/v1/items":{"post":{"operationId":"mercari_com_items","summary":"Mercari Japan Listings and Sellers: Mercari item details by itemId or URL","description":"Detailed Mercari Japan item rows for a given itemId or startUrls. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["mercari-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","description":"Enter one item ID, such as m60491956645, from the end of a Mercari Japan item URL."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Mercari Japan search, item, seller profile or category-tree URLs. A category or brand search URL without keyword= lists that page without applying the separate keyword field."},"enrichDetails":{"type":"boolean","description":"Add item details (items/get), such as description, photos, seller, shipping and category fields, to search, category and brand rows. This is off by default; it updates the same rows without adding a separate row charge.","default":false},"maxResults":{"type":"integer","description":"Maximum rows per input, from 1 to 500; default 70, with larger allowances collected in parts of at most 70. All row types count, the run stops at your maximum total charge, and the Free plan allows 10 runs with at most 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"itemId":"m60491956645","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_mercari_com"},"example":{"jobId":"job_mercari-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","itemId":"example_itemId","title":"example_title","price":10,"currency":"example_currency","sellerId":"example_sellerId"}],"meta":{"site":"mercari-com","endpoint":"items","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/mercari-com/v1/sellers":{"post":{"operationId":"mercari_com_sellers","summary":"Mercari Japan Listings and Sellers: Mercari seller profile and listings","description":"Listings and profile rows for a given Mercari sellerId. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["mercari-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sellerId":{"type":"string","description":"Enter the numeric seller ID from the end of a Mercari Japan user/profile URL."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Mercari Japan search, item, seller profile or category-tree URLs. A category or brand search URL without keyword= lists that page without applying the separate keyword field."},"enrichDetails":{"type":"boolean","description":"Add item details (items/get), such as description, photos, seller, shipping and category fields, to search, category and brand rows. This is off by default; it updates the same rows without adding a separate row charge.","default":false},"maxResults":{"type":"integer","description":"Maximum rows per input, from 1 to 500; default 70, with larger allowances collected in parts of at most 70. All row types count, the run stops at your maximum total charge, and the Free plan allows 10 runs with at most 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"sellerId":"123456789","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_mercari_com"},"example":{"jobId":"job_mercari-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","itemId":"example_itemId","title":"example_title","price":10,"currency":"example_currency","sellerId":"example_sellerId"}],"meta":{"site":"mercari-com","endpoint":"sellers","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/mercari-com/v1/health":{"get":{"operationId":"mercari_com_health","summary":"Mercari Japan Listings and Sellers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["mercari-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_mercari_com":{"type":"object","properties":{"recordType":{"type":["string","null"],"title":"Type"},"itemId":{"type":["string","null"],"title":"Item ID"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["number","null"],"title":"Price"},"currency":{"type":["string","null"],"title":"Currency"},"sellerId":{"type":["string","null"],"title":"Seller"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"scrapedAt":{"type":["string","null"],"title":"Scraped"}},"additionalProperties":true},"Response_mercari_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_mercari_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}