{"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 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered. Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://agensi.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 on Auto to infer from filled fields: a product link or item ID runs Products, a shop URL/ID/username runs Shop profile, a keyword runs Search suggestions. Discover, Official Mall brands, Categories, and Flash sales need no keyword.","default":"auto","enum":["auto","suggestions","products","discover","shop","mall_brands","categories","flash_sales"]},"keyword":{"type":"string","description":"Search phrase for suggestions, product seed matching, or optional filtering in Mall brands and Categories modes. Discover, Flash sales, and Shop modes do not require a keyword."},"market":{"type":"string","description":"Shopee country or region to collect from. When omitted and itemUrl/shopUrl is supplied, inferred automatically from the link domain. Categories are available across all 11 markets including CO and CL.","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 SEARCH_SIGNALS.","default":false},"includeCatTree":{"type":"boolean","description":"In suggestions mode, save the available market category tree to CATEGORY_TREE 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":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","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:8453","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"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","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 path segment after the Shopee domain in the shop link). Directly queries shop profile."},"itemId":{"type":"string","description":"Numeric Shopee item ID. Use together with Shop ID (or give itemUrl 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>. Automatically infers market when omitted.","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. When omitted and itemUrl/shopUrl is supplied, inferred automatically from the link domain. Categories are available across all 11 markets including CO and CL.","default":"SG","enum":["PH","SG","MY","TH","TW","VN","ID","BR","MX","CO","CL"]},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","minimum":1,"maximum":10,"default":5}},"additionalProperties":false},"example":{"shopId":"442800909","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:8453","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"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","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"]}}}}