{"openapi":"3.1.0","info":{"title":"Shopee Regional Products Suggestions and Shops (x402 & MCP)","version":"0.1.0","description":"Shopee search suggestions, discover-feed listings, products and shop profiles across 11 regional markets, 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/shopee-com/v1/search":{"post":{"operationId":"shopee_com_search","summary":"Shopee Regional Products Suggestions and Shops: Shopee search suggestions, discover feed and products","description":"Open Shopee suggestion, discover-feed or item rows across 11 APAC and LATAM markets. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["shopee-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":{"fetchMode":{"type":"string","description":"What to fetch. Leave it on Auto to pick the mode from the fields you fill: a product link or item ID runs Products, a shop ID or username runs Shop profile, a keyword runs Search suggestions. 'Discover feed' returns the market's daily-discover feed and needs no keyword.","default":"auto","enum":["auto","suggestions","products","discover","shop"]},"keyword":{"type":"string","description":"Search phrase for suggestions, or for finding a product seed when fetchMode is products. In products mode the keyword must match a Shopee suggestion word for word; if none matches, the input returns 0 rows (not charged), so enter a product link instead. Discover mode does not use it to filter the feed; no keyword is needed for a shop target."},"market":{"type":"string","description":"Shopee country or region to collect from. Select the market that matches your product or shop; available data varies by market and mode.","default":"SG","enum":["PH","SG","MY","TH","TW","VN","ID","BR","MX","CO","CL"]},"discoverySource":{"type":"string","description":"Catalog face used by discover mode.","default":"daily_discover","enum":["auto","daily_discover","hot_picks_bfs"]},"includeFilterConfig":{"type":"boolean","description":"In suggestions mode, include Shopee's search filter configuration in the SEARCH_SIGNALS key-value record. Does not fetch product details.","default":false},"includeCatTree":{"type":"boolean","description":"In suggestions mode, save the available market category tree, including nested categories, to the CATEGORY_TREE record in the default key-value store.","default":false},"includeSearchFacet":{"type":"boolean","description":"In products mode, request category breadcrumbs for up to the first three rows. In shop mode, request the market-level Shopee Mall category list.","default":false},"maxResults":{"type":"integer","description":"Maximum rows per input, from 1 to 200; defaults to 70 when a target is supplied without a limit. Also accepts maxResults or maxItems; Free-plan users have a 200-row run cap and 10 runs of this Actor, subject to their maximum run charge.","minimum":1,"maximum":10,"default":5}},"additionalProperties":false},"example":{"keyword":"phone case","market":"SG","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_shopee_com"},"example":{"jobId":"job_shopee-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","rank":10,"title":"example_title","price":"example_price","sold_text":"example_sold_text"}],"meta":{"site":"shopee-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/shopee-com/v1/shops":{"post":{"operationId":"shopee_com_shops","summary":"Shopee Regional Products Suggestions and Shops: Shopee shop profile or product lookup","description":"Shop profile rows (mode shop) or product detail rows by shopId, shopUsername, itemId or itemUrl. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["shopee-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":{"shopId":{"type":"string","description":"Numeric Shopee shop ID. On its own it runs Shop profile; together with Item ID it names a product seed.","pattern":"^\\s*\\d+\\s*$"},"shopUsername":{"type":"string","description":"The shop's username (the part after the Shopee domain in the shop link). Runs Shop profile."},"itemId":{"type":"string","description":"Numeric Shopee item ID. Use it together with Shop ID (or give the product link instead). Runs Products.","pattern":"^\\s*\\d+\\s*$"},"itemUrl":{"type":"string","description":"Shopee product link, such as https://shopee.sg/product/<shopId>/<itemId> or a link ending in -i.<shopId>.<itemId>. Select the matching market and avoid supplying separate IDs with the link.","pattern":"^(https?://)?([A-Za-z0-9-]+\\.)*shopee\\.(sg|ph|com\\.my|co\\.th|tw|vn|co\\.id|com\\.br|com\\.mx|com\\.co|cl)/.+"},"market":{"type":"string","description":"Shopee country or region to collect from. Select the market that matches your product or shop; available data varies by market and mode.","default":"SG","enum":["PH","SG","MY","TH","TW","VN","ID","BR","MX","CO","CL"]},"maxResults":{"type":"integer","description":"Maximum rows per input, from 1 to 200; defaults to 70 when a target is supplied without a limit. Also accepts maxResults or maxItems; Free-plan users have a 200-row run cap and 10 runs of this Actor, subject to their maximum run charge.","minimum":1,"maximum":10,"default":5}},"additionalProperties":false},"example":{"shopId":"1234567","market":"SG","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_shopee_com"},"example":{"jobId":"job_shopee-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","rank":10,"title":"example_title","price":"example_price","sold_text":"example_sold_text"}],"meta":{"site":"shopee-com","endpoint":"shops","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/shopee-com/v1/health":{"get":{"operationId":"shopee_com_health","summary":"Shopee Regional Products Suggestions and Shops: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["shopee-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_shopee_com":{"type":"object","properties":{"rowType":{"type":["string","number","boolean","object","array","null"]},"id":{"type":["string","number","boolean","object","array","null"]},"rank":{"type":["number","null"],"title":"Rank"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["string","null"],"title":"Price"},"sold_text":{"type":["string","null"],"title":"Sold"},"rating_text":{"type":["string","null"],"title":"Rating"},"location":{"type":["string","null"],"title":"Location"},"shop_id":{"type":["string","null"],"title":"Shop ID"},"item_id":{"type":["string","null"],"title":"Item ID"},"shop_name":{"type":["string","null"],"title":"Shop"},"stock":{"type":["number","null"],"title":"Stock"},"sold":{"type":["number","null"],"title":"Sold (raw)"},"rating_star":{"type":["number","null"],"title":"Rating"},"is_official_shop":{"type":["boolean","null"],"title":"Official"},"global_cat_raw":{"type":["object","null"],"title":"Global category (raw)"},"product_url":{"type":["string","null"],"format":"uri","title":"Product URL"},"image":{"type":["string","null"],"title":"Image"},"keyword":{"type":["string","null"],"title":"Keyword"},"market":{"type":["string","null"],"title":"Market"},"source":{"type":["string","null"],"title":"Source"},"provider":{"type":["string","null"],"title":"Provider"},"captured_at":{"type":["string","null"],"format":"date-time","title":"Captured At"}},"additionalProperties":true},"Response_shopee_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_shopee_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"]}}