{"openapi":"3.1.0","info":{"title":"Rakuten Japan Products Shops and Rankings (x402 & MCP)","version":"0.1.0","description":"Rakuten Ichiba Japan products, JPY prices, shop details, category rankings, taxonomy and reviews, 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/rakuten-com/v1/search":{"post":{"operationId":"rakuten_com_search","summary":"Rakuten Japan Products Shops and Rankings: Search Rakuten Ichiba products, rankings and categories","description":"Product, ranking, taxonomy or keyword suggestion rows across Rakuten Ichiba Japan. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["rakuten-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose what to collect, or leave auto to select from the fields you fill. Ranking and category modes need no keyword; review mode needs an item or shop. genreId narrows the selected mode.","default":"auto","enum":["auto","search","ranking","categories","suggest"]},"keyword":{"type":"string","description":"Search word or phrase for search or suggestion mode. Japanese keywords are recommended."},"searchQueries":{"type":"array","items":{"type":"string"},"description":"Several keywords at once. Each keyword gets its own maxResults row allowance."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Rakuten Ichiba search, item, shop, ranking or review page addresses, including shop and item pages on a shop's own subdomain (<shop>.rakuten.co.jp). Each address selects its page type and has its own maxResults allowance."},"genreId":{"type":"string","description":"Rakuten genre identifier, such as 564500 for smartphones and tablets. Narrows search, ranking or category mode; does not select a mode by itself."},"genreSlug":{"type":"string","description":"Recognized genre name or alias, such as smartphone. Used when genreId is empty; a known numeric genreId is more precise."},"sort":{"type":"string","description":"Search result order: standard, price_asc, price_desc, newest, review_count or review_score. Leave empty for the site order."},"minPrice":{"type":"integer","description":"Minimum listed price in JPY for search results. Leave empty for no minimum.","minimum":0},"maxPrice":{"type":"integer","description":"Maximum listed price in JPY for search results. Leave empty for no maximum.","minimum":0},"filters":{"type":"array","items":{"type":"string"},"description":"Search filters: free_shipping, super_deal, student, subscription or include_sold_out. Availability depends on the search page."},"tags":{"type":"array","items":{"type":"string"},"description":"Tag identifiers from a Rakuten search page. Leave empty if you do not need tag filtering."},"used":{"type":"integer","description":"Optional used-item setting from the search page: 0 or 1. Availability depends on the page.","minimum":0,"maximum":1},"period":{"type":"string","description":"Ranking period: daily, realtime, weekly or monthly. Used in ranking mode.","default":"daily","enum":["daily","realtime","weekly","monthly"]},"page":{"type":"integer","description":"First search result page to collect, starting at 1.","default":1,"minimum":1,"maximum":150},"maxGenreNodes":{"type":"integer","description":"Limit category exploration in categories mode. maxResults separately limits the rows delivered.","default":800,"minimum":1,"maximum":5000},"enrichDetails":{"type":"boolean","description":"Add available item-page details to product listings. May increase run time.","default":false},"maxResults":{"type":"integer","description":"Maximum rows for each keyword or start URL; a single item, shop, ranking, category or suggestion request counts as one input. Default 70, collected in parts of 70 for larger requests; all row types share the allowance, subject to the run cost cap and the Free plan limit of 200 rows per run.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"keyword":"水筒","maxResults":10}}}},"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_rakuten_com"},"example":{"jobId":"job_rakuten-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","reviewId":"example_reviewId","recordType":"example_recordType","title":"example_title","price":10}],"meta":{"site":"rakuten-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":30000,"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/rakuten-com/v1/items":{"post":{"operationId":"rakuten_com_items","summary":"Rakuten Japan Products Shops and Rankings: Rakuten product details or reviews","description":"Item detail or review rows by itemUrl or shopUrlCode + manageNumber. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["rakuten-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose what to collect, or leave auto to select from the fields you fill. Ranking and category modes need no keyword; review mode needs an item or shop. genreId narrows the selected mode.","default":"item","enum":["item","review"]},"itemUrl":{"type":"string","description":"One item page address, e.g. https://item.rakuten.co.jp/<shop>/<item>/ or https://<shop>.rakuten.co.jp/item/<item>/","pattern":"^(https?://([a-z0-9-]+\\.)*rakuten\\.co\\.jp/.*)?$"},"shopUrlCode":{"type":"string","description":"Shop code from the shop address, e.g. rakutenmobile-store in https://www.rakuten.co.jp/rakutenmobile-store/. Alone it lists the shop; with a manage number it opens one item.","pattern":"^[A-Za-z0-9_-]*$"},"manageNumber":{"type":"string","description":"Item code from the final part of an item page address. Use with shopUrlCode to select one item."},"shopId":{"type":"string","description":"Numeric Rakuten shop identifier. Selects a shop for shop or review mode; use with itemId to select one item."},"itemId":{"type":"string","description":"Numeric Rakuten item identifier. Use with shopId to select one item for item or review mode."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Rakuten Ichiba search, item, shop, ranking or review page addresses, including shop and item pages on a shop's own subdomain (<shop>.rakuten.co.jp). Each address selects its page type and has its own maxResults allowance."},"enrichDetails":{"type":"boolean","description":"Add available item-page details to product listings. May increase run time.","default":false},"enrichReviews":{"type":"boolean","description":"Request available full-text reviews as separate billed rows. Review rows and product rows share the same maxResults allowance; a complete review history is not guaranteed.","default":false},"enrichStock":{"type":"boolean","description":"Request available stock and variant information for items. These details may be missing.","default":false},"enrichShipping":{"type":"boolean","description":"Request available item shipping fees and delivery estimates. These details may be missing.","default":false},"maxResults":{"type":"integer","description":"Maximum rows for each keyword or start URL; a single item, shop, ranking, category or suggestion request counts as one input. Default 70, collected in parts of 70 for larger requests; all row types share the allowance, subject to the run cost cap and the Free plan limit of 200 rows per run.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"mode":"item","shopUrlCode":"book","manageNumber":"12345678","maxResults":10}}}},"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_rakuten_com"},"example":{"jobId":"job_rakuten-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","reviewId":"example_reviewId","recordType":"example_recordType","title":"example_title","price":10}],"meta":{"site":"rakuten-com","endpoint":"items","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":30000,"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/rakuten-com/v1/shops":{"post":{"operationId":"rakuten_com_shops","summary":"Rakuten Japan Products Shops and Rankings: Rakuten shop catalog by shopUrlCode","description":"Shop profile and product rows for a Rakuten Ichiba shopUrlCode. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["rakuten-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shopUrlCode":{"type":"string","description":"Shop code from the shop address, e.g. rakutenmobile-store in https://www.rakuten.co.jp/rakutenmobile-store/. Alone it lists the shop; with a manage number it opens one item.","pattern":"^[A-Za-z0-9_-]*$"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Rakuten Ichiba search, item, shop, ranking or review page addresses, including shop and item pages on a shop's own subdomain (<shop>.rakuten.co.jp). Each address selects its page type and has its own maxResults allowance."},"page":{"type":"integer","description":"First search result page to collect, starting at 1.","default":1,"minimum":1,"maximum":150},"maxResults":{"type":"integer","description":"Maximum rows for each keyword or start URL; a single item, shop, ranking, category or suggestion request counts as one input. Default 70, collected in parts of 70 for larger requests; all row types share the allowance, subject to the run cost cap and the Free plan limit of 200 rows per run.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"shopUrlCode":"book","maxResults":10}}}},"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_rakuten_com"},"example":{"jobId":"job_rakuten-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","reviewId":"example_reviewId","recordType":"example_recordType","title":"example_title","price":10}],"meta":{"site":"rakuten-com","endpoint":"shops","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":30000,"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/rakuten-com/v1/health":{"get":{"operationId":"rakuten_com_health","summary":"Rakuten Japan Products Shops and Rankings: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["rakuten-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_rakuten_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"Entity ID"},"reviewId":{"type":["string","null"],"title":"Review ID"},"recordType":{"type":["string","null"],"title":"Type"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["number","null"],"title":"Price"},"currency":{"type":["string","null"],"title":"Currency"},"shopName":{"type":["string","null"],"title":"Shop"},"itemId":{"type":["string","null"],"title":"Item ID"},"manageNumber":{"type":["string","null"],"title":"Manage #"},"shopUrlCode":{"type":["string","null"],"title":"Shop code"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"scrapedAt":{"type":["string","null"],"title":"Scraped"}},"additionalProperties":true},"Response_rakuten_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_rakuten_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"]}}