{"openapi":"3.1.0","info":{"title":"SHEIN Fashion Products Prices and Categories (x402 & MCP)","version":"0.1.0","description":"SHEIN products, prices, images, sizes, colors, ratings and trending collections across regional storefronts, 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/shein-com/v1/search":{"post":{"operationId":"shein_com_search","summary":"SHEIN Fashion Products Prices and Categories: Search SHEIN products, categories and trending lists","description":"Product and category rows from SHEIN regional storefronts. Verified storefronts: US, DE, FR, AU and BR. Other storefronts (for example UK or MX) can answer 502 source_blocked while the source refuses collection there; nothing is billed for a failed request. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["shein-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 keyword search, category listings, product details, the category tree, or trending products. Auto selects a mode from the target fields you fill.","default":"auto","enum":["auto","keywordSearch","categorySearch","categories","trending"]},"query":{"type":"string","description":"Search phrase, such as linen dress. Ignored when keyword or keywords is filled."},"keyword":{"type":"string","description":"Alternative to query for one search phrase. Takes precedence over query when set."},"keywords":{"type":"array","items":{"type":"string"},"description":"Search phrases to collect in one run; each has its own maxResults limit. If keyword is also set, it runs first."},"categoryUrl":{"type":"string","description":"SHEIN HTTPS category or promotion URL, or a relative path. Use a current address from the selected storefront.","pattern":"^(?!.*[\\s\\\\\\x00-\\x1f\\x7f])(?:[hH][tT][tT][pP][sS]://(?:[A-Za-z0-9-]+\\.)*[sS][hH][eE][iI][nN]\\.(?:[cC][oO][mM](?:\\.(?:[mM][xX]|[hH][kK]|[vV][nN]))?|[cC][oO]\\.[uU][kK]|[sS][eE]|[tT][wW]|[iI][nN])(?::(?:[0-9]{1,4}|[0-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#].*)?|(?!//)(?![A-Za-z][A-Za-z0-9+.-]*:).*)$"},"catId":{"type":"string","description":"Numeric SHEIN category identifier, such as 2223. Category IDs can differ by region or change over time.","pattern":"^([0-9]+)?$"},"categorySlug":{"type":"string","description":"Category address slug, such as Women-Tops. Pair it with catId or choose a known bucket."},"bucket":{"type":"string","description":"Category shortcut such as women, men, kids, shoes, beauty, sale, new, or just-for-you. In categories mode, it narrows the category tree."},"region":{"type":"string","description":"SHEIN storefront code, such as us, uk, de, fr, ph, or au. Defaults to the US storefront when omitted.","pattern":"^([A-Za-z]{2,6})?$"},"browseCountry":{"type":"string","description":"Country alias that overrides region when set. For example, US selects us, GB selects uk, and PH selects ph."},"currency":{"type":"string","description":"Optional currency hint, such as USD, PHP, or EUR. Availability depends on the selected storefront."},"sort":{"type":"string","description":"Listing order: recommended, sales, ascending price, descending price, or newest. An empty value uses the site order.","enum":["","recommend","sales","price_asc","price_desc","newest","discount"]},"minPrice":{"type":"number","description":"Minimum listing price in the selected local currency. Must not exceed maxPrice.","minimum":0},"maxPrice":{"type":"number","description":"Maximum listing price in the selected local currency. Must not be below minPrice.","minimum":0},"color":{"type":"string","description":"Optional color filter value from the selected SHEIN storefront. Accepted values can vary by category."},"size":{"type":"string","description":"Optional size filter value from the selected SHEIN storefront. Accepted values can vary by category."},"refine":{"type":"string","description":"Optional SHEIN filter expression, when known. Leave empty if you do not have a category-specific value."},"enrichDetails":{"type":"boolean","description":"Add available product details, such as sizes, images, and USD prices, to listing rows. Enabled by default; enrichment updates existing rows without a separate row charge.","default":true},"enrichLimit":{"type":"integer","description":"Maximum listing rows to enrich, from 0 to 50. Defaults to 3; unavailable details remain missing.","default":3,"minimum":0,"maximum":50},"includeReviews":{"type":"boolean","description":"SHEIN product pages currently carry no review texts, so this returns 0 review rows today and nothing is charged for them. If review texts come back, each review is its own billed row. Kept so existing tasks keep working. Off by default.","default":false},"expandColors":{"type":"boolean","description":"Add color-product rows from available variants when room remains within maxResults. Off by default; each added row is billed, and its details may be reused from the parent product.","default":false},"page":{"type":"integer","description":"Starting listing page, from 1 to 100. Later pages may be unavailable or return fewer products.","default":1,"minimum":1,"maximum":100},"maxPages":{"type":"integer","description":"Legacy page-count setting. It is not a reliable stopping limit for Actor runs; use maxResults and Maximum cost per run to bound collection.","default":1,"minimum":1,"maximum":50},"maxResults":{"type":"integer","description":"Maximum delivered and billed rows per keyword; category, product, and category-tree requests each count as one input. Default 70; larger requests continue in parts of up to 70, within the run cost limit and the Free-plan cap of 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"query":"linen dress","region":"us","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_shein_com"},"example":{"jobId":"job_shein-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","goodsId":"example_goodsId","title":"example_title","price":"example_price","salePrice":"example_salePrice"}],"meta":{"site":"shein-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/shein-com/v1/products":{"post":{"operationId":"shein_com_products","summary":"SHEIN Fashion Products Prices and Categories: SHEIN product details by goodsId or URL","description":"Detailed SHEIN product, SKU color/size and pricing rows for a given goodsId or productUrl. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["shein-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":{"goodsId":{"type":"string","description":"Numeric SHEIN product identifier, also found after -p- in a product URL.","pattern":"^([0-9]+)?$"},"productUrl":{"type":"string","description":"SHEIN HTTPS product page containing -p-<number>.html, or a relative product path. Use a current product URL for the chosen region.","pattern":"^(?!.*[\\s\\\\\\x00-\\x1f\\x7f])(?:|(?:[hH][tT][tT][pP][sS]://(?:[A-Za-z0-9-]+\\.)*[sS][hH][eE][iI][nN]\\.(?:[cC][oO][mM](?:\\.(?:[mM][xX]|[hH][kK]|[vV][nN]))?|[cC][oO]\\.[uU][kK]|[sS][eE]|[tT][wW]|[iI][nN])(?::(?:[0-9]{1,4}|[0-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?/|(?!//)(?![A-Za-z][A-Za-z0-9+.-]*:))[^?#]*-p-[0-9]+(?:-[^?#]*|\\.html[^?#]*)?(?:[?#].*)?)$"},"region":{"type":"string","description":"SHEIN storefront code, such as us, uk, de, fr, ph, or au. Defaults to the US storefront when omitted.","pattern":"^([A-Za-z]{2,6})?$"},"currency":{"type":"string","description":"Optional currency hint, such as USD, PHP, or EUR. Availability depends on the selected storefront."},"expandColors":{"type":"boolean","description":"Add color-product rows from available variants when room remains within maxResults. Off by default; each added row is billed, and its details may be reused from the parent product.","default":false},"includeReviews":{"type":"boolean","description":"SHEIN product pages currently carry no review texts, so this returns 0 review rows today and nothing is charged for them. If review texts come back, each review is its own billed row. Kept so existing tasks keep working. Off by default.","default":false},"maxResults":{"type":"integer","description":"Maximum delivered and billed rows per keyword; category, product, and category-tree requests each count as one input. Default 70; larger requests continue in parts of up to 70, within the run cost limit and the Free-plan cap of 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"goodsId":"414286470","region":"us","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_shein_com"},"example":{"jobId":"job_shein-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","goodsId":"example_goodsId","title":"example_title","price":"example_price","salePrice":"example_salePrice"}],"meta":{"site":"shein-com","endpoint":"products","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/shein-com/v1/health":{"get":{"operationId":"shein_com_health","summary":"SHEIN Fashion Products Prices and Categories: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["shein-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_shein_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"Stable ID"},"goodsId":{"type":["string","null"],"title":"Goods ID"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["string","null"],"title":"Price"},"salePrice":{"type":["string","null"],"title":"Sale price"},"currency":{"type":["string","null"],"title":"Currency"},"region":{"type":["string","null"],"title":"Region"},"mode":{"type":["string","null"],"title":"Mode"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"phones":{"type":["string","null"],"title":"Phones (platform)"},"emails":{"type":["string","null"],"title":"Emails (platform)"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"}},"additionalProperties":true},"Response_shein_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_shein_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"]}}