{"openapi":"3.1.0","info":{"title":"Faire Wholesale Brands and Products (x402 & MCP)","version":"0.1.0","description":"Guest-visible Faire wholesale products, brands, variants and categories across supported 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/faire-com/v1/search":{"post":{"operationId":"faire_com_search","summary":"Faire Wholesale Brands and Products: Browse Faire categories, discover search and suppliers","description":"Product, category or supplier rows by categoryPath, keyword, discoverSlug or startUrls. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["faire-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":"Leave on Auto to select a mode from your target field, or choose one explicitly. Category tree and Suppliers need no target.","default":"auto","enum":["auto","category","discover","categories","suppliers"]},"startUrls":{"type":"array","items":{"type":"string"},"description":"Faire links: a category, discover search, brand, product or suppliers page. Each link sets its own mode and target; several links are collected one by one in the same run."},"categoryPath":{"type":"string","description":"A Faire category, e.g. Pets or Home Decor/Kitchen & Tabletop. A plain phrase like ceramic planters is matched to a category, or searched when no category matches."},"discoverSlug":{"type":"string","description":"A search keyword, e.g. candles."},"keyword":{"type":"string","description":"Search phrase used when discoverSlug is empty."},"country":{"type":"string","description":"Faire market to read prices and availability for.","default":"USA","enum":["USA","GBR","CAN","AUS","DEU","FRA","ITA","ESP","NLD","BEL","IRL","NZL","JPN","KOR","SGP","PHL","MEX","BRA","IND","ARE","SAU","CHE","AUT","DNK","SWE","NOR","FIN","POL","PRT","HKG","TWN"]},"locale":{"type":"string","description":"Language hint for category names and pages, for example en. This does not translate search terms.","default":"en"},"sortBy":{"type":"string","description":"Requested category sort, such as featured, new, price_asc or price_desc. The source may not apply every sort option."},"filterKeys":{"type":"array","items":{"type":"string"},"description":"Category filter keys copied from Faire's filter panel. The source determines which filters apply."},"brandFilters":{"type":"string","description":"Filter value from a Faire brand-page URL, for example category:home_living|kitchen_tabletop."},"brandValues":{"type":"array","items":{"type":"string"},"description":"Filter results by Faire maker values and shop badges : eco_friendly, organic, women_owned, black_owned, asian_owned, lgbtq_owned, gives_back, handmade, not_on_amazon, top_shop, low_moq. Leave empty to include all brands.","default":[]},"maxOrderMinimum":{"type":"integer","description":"Keep only brands or products whose brand minimum order amount is at or below this threshold in major currency units (for example 200 for $200 MOQ). Leave empty for no ceiling.","minimum":0,"maximum":100000},"minRating":{"type":"integer","description":"Keep only brands or products with an average rating at or above this score (0 to 5, decimals supported via JSON input). Leave empty for no rating floor.","minimum":0,"maximum":5},"minProducts":{"type":"integer","description":"Keep only brands with at least this many active published products. Leave empty for no product-count floor.","minimum":0,"maximum":100000},"page":{"type":"integer","description":"Listing page to start from, between 1 and 2500.","default":1,"minimum":1,"maximum":2500},"pageSize":{"type":"integer","description":"Requested number of products per listing page, between 1 and 120. This is not the limit on delivered rows.","default":60,"minimum":1,"maximum":120},"maxPages":{"type":"integer","description":"Requested listing-page limit. Row-based collection may use additional pages; use maxResults to limit delivered rows.","default":10,"minimum":1,"maximum":50},"autoPaginate":{"type":"boolean","description":"Request additional listing pages. Row-based collection may continue paging to fill maxResults even when this is disabled.","default":true},"enrichDetails":{"type":"boolean","description":"Add available product or brand details to listing rows, such as names, prices and images. Enabled by default.","default":true},"enrichLimit":{"type":"integer","description":"Maximum number of listing rows to enrich with details. Zero uses the smaller of the row allowance and 80.","default":0,"minimum":0},"crawlSubcategories":{"type":"boolean","description":"In categories mode, prefer deeper category paths.","default":false},"topLevelOnly":{"type":"boolean","description":"In categories mode, return only top-level categories.","default":false},"maxResults":{"type":"integer","description":"Most rows for each start URL or selected category, search, brand, product, or supplier target. Default 70; larger numbers are collected in parts of 70. Product, variant, review, related-product, brand, and category rows all count together. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor (limits set by the Actor developer).","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"categoryPath":"Pets","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_faire_com"},"example":{"jobId":"job_faire-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","recordType":"example_recordType","id":"example_001","productToken":"example_productToken","brandToken":"example_brandToken","name":"example_name"}],"meta":{"site":"faire-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/faire-com/v1/brands":{"post":{"operationId":"faire_com_brands","summary":"Faire Wholesale Brands and Products: Brand profiles and catalogs by brand token","description":"Brand and product rows for a given Faire brandToken or brand URL. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["faire-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":{"brandToken":{"type":"string","description":"A brand ID from a Faire brand link, e.g. b_8yruuuqrma.","pattern":"^([bB]_[A-Za-z0-9]+)?$"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Faire links: a category, discover search, brand, product or suppliers page. Each link sets its own mode and target; several links are collected one by one in the same run."},"country":{"type":"string","description":"Faire market to read prices and availability for.","default":"USA","enum":["USA","GBR","CAN","AUS","DEU","FRA","ITA","ESP","NLD","BEL","IRL","NZL","JPN","KOR","SGP","PHL","MEX","BRA","IND","ARE","SAU","CHE","AUT","DNK","SWE","NOR","FIN","POL","PRT","HKG","TWN"]},"locale":{"type":"string","description":"Language hint for category names and pages, for example en. This does not translate search terms.","default":"en"},"includeReviews":{"type":"boolean","description":"Add each available product review as a separately billed row within maxResults. Outside product mode, enrichDetails must be enabled; supplier brand rows have no product reviews.","default":false},"expandVariants":{"type":"boolean","description":"Add each available purchase option as a separately billed variant row within maxResults.","default":false},"enrichDetails":{"type":"boolean","description":"Add available product or brand details to listing rows, such as names, prices and images. Enabled by default.","default":true},"maxResults":{"type":"integer","description":"Most rows for each start URL or selected category, search, brand, product, or supplier target. Default 70; larger numbers are collected in parts of 70. Product, variant, review, related-product, brand, and category rows all count together. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor (limits set by the Actor developer).","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"brandToken":"b_8yruuuqrma","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_faire_com"},"example":{"jobId":"job_faire-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","recordType":"example_recordType","id":"example_001","productToken":"example_productToken","brandToken":"example_brandToken","name":"example_name"}],"meta":{"site":"faire-com","endpoint":"brands","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/faire-com/v1/products":{"post":{"operationId":"faire_com_products","summary":"Faire Wholesale Brands and Products: Product details and options by product token","description":"Product (and optional variant/review/related) rows for a given Faire productToken or URL. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["faire-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":{"productToken":{"type":"string","description":"A product ID from a Faire product link, e.g. p_vafjzd5w6a.","pattern":"^([pP]_[A-Za-z0-9]+)?$"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Faire links: a category, discover search, brand, product or suppliers page. Each link sets its own mode and target; several links are collected one by one in the same run."},"country":{"type":"string","description":"Faire market to read prices and availability for.","default":"USA","enum":["USA","GBR","CAN","AUS","DEU","FRA","ITA","ESP","NLD","BEL","IRL","NZL","JPN","KOR","SGP","PHL","MEX","BRA","IND","ARE","SAU","CHE","AUT","DNK","SWE","NOR","FIN","POL","PRT","HKG","TWN"]},"locale":{"type":"string","description":"Language hint for category names and pages, for example en. This does not translate search terms.","default":"en"},"includeReviews":{"type":"boolean","description":"Add each available product review as a separately billed row within maxResults. Outside product mode, enrichDetails must be enabled; supplier brand rows have no product reviews.","default":false},"expandVariants":{"type":"boolean","description":"Add each available purchase option as a separately billed variant row within maxResults.","default":false},"includeRelated":{"type":"boolean","description":"In product mode, add available related products as separately billed rows within maxResults. Related products may be unavailable.","default":false},"maxResults":{"type":"integer","description":"Most rows for each start URL or selected category, search, brand, product, or supplier target. Default 70; larger numbers are collected in parts of 70. Product, variant, review, related-product, brand, and category rows all count together. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor (limits set by the Actor developer).","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"productToken":"p_vafjzd5w6a","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_faire_com"},"example":{"jobId":"job_faire-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","recordType":"example_recordType","id":"example_001","productToken":"example_productToken","brandToken":"example_brandToken","name":"example_name"}],"meta":{"site":"faire-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/faire-com/v1/health":{"get":{"operationId":"faire_com_health","summary":"Faire Wholesale Brands and Products: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["faire-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_faire_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"recordType":{"type":["string","null"],"title":"Record"},"id":{"type":["string","null"],"title":"ID"},"productToken":{"type":["string","null"],"title":"Product"},"brandToken":{"type":["string","null"],"title":"Brand"},"name":{"type":["string","null"],"title":"Name"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"contentDepth":{"type":["string","null"],"title":"Depth"},"country":{"type":["string","null"],"title":"Country"},"page":{"type":["number","null"],"title":"Page"},"source":{"type":["string","null"],"title":"Source"}},"additionalProperties":true},"Response_faire_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_faire_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"]}}