{"openapi":"3.0.0","info":{"title":"Watsons Asia Pacific Products and Reviews","version":"1.0.0","description":"Watsons products, guest prices, reviews, categories, brands and physical store directories across 9 APAC and Turkey markets, one row per entity."},"servers":[{"url":"https://ah-watsons-com.opendata.best/s/watsons-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Watsons products, categories, brands and taxonomies","description":"Product, taxonomy or hot-keyword rows across PH, HK, TW, TH, SG, MY, VN, ID and TR.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","search","category","brand","taxonomies","hot_keywords"],"description":"Mode. Auto selects the mode from your URL, product code, category code, brand token or search phrase. Taxonomies, stores, base stores and enumerate need only a market.","default":"auto","example":"auto"},"keyword":{"type":"string","description":"Keyword. One search phrase, such as vitamin. Auto selects search when this field supplies the target.","example":"vitamin"},"searchQueries":{"type":"array","items":{"type":"string"},"description":"Search queries. A list of search phrases instead of a single keyword. Each query has its own maxResults row allowance."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Watsons search, /c/ category, /p/ product or /all-brands/b/ URLs from the eight listed markets. Each URL determines its market and mode and has its own maxResults allowance; /lc/ shelves are rejected."},"categoryCode":{"type":"string","description":"Category code. Use a category code from a /c/ URL in the selected market, such as PH 031130 or TW 10450703. Codes are not interchangeable across markets; put full URLs in Start URLs instead."},"brandCode":{"type":"string","description":"Brand code. Use the brand token from /all-brands/b/{token}/..., such as ANUA. Do not use a numeric brand identifier from a product row."},"market":{"type":"string","enum":["ph","hk","tw","th","sg","my","vn","id","tr"],"description":"Market. Select the Watsons storefront for codes and search phrases; a start URL selects its own market. Product availability and category codes vary by market.","default":"ph","example":"ph"},"locale":{"type":"string","description":"Locale. Optional storefront language: Hong Kong accepts en, zh-hk or zh-cn; Thailand accepts th or en. Leave empty for the market default, such as en for the Philippines or zh-tw for Taiwan."},"sort":{"type":"string","enum":["","mostRelevant","bestSeller","brand","new","topRated","price-asc","price-desc","flashSaleQuota"],"description":"Sort. Choose the product ordering. Empty uses mostRelevant for search and bestSeller for categories.","default":"","example":""},"currentPage":{"type":"integer","minimum":0,"maximum":2000,"description":"Start page (0-based). Starting page for collection, counted from zero. Use 0 to begin with the first page.","default":0,"example":0},"maxPages":{"type":"integer","minimum":1,"maximum":500,"description":"Max pages. Legacy page setting retained for compatibility; values above 200 are treated as 200. Current product collection continues across pages until the row allowance is reached or results end; use maxResults to limit rows.","default":1,"example":1},"enrichReviews":{"type":"boolean","description":"Include review rows. Add guest review rows for the first few products when available; off by default.","default":false,"example":false},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"keyword":"vitamin","market":"ph","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products":{"post":{"operationId":"products","summary":"Watsons product details or customer reviews","description":"Detailed product or review rows for a given productCode, productCodes or startUrls.","tags":["products"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["product","reviews"],"description":"Mode. Auto selects the mode from your URL, product code, category code, brand token or search phrase. Taxonomies, stores, base stores and enumerate need only a market.","default":"product","example":"auto"},"productCode":{"type":"string","description":"Product code. Product code for product details or reviews, such as BP_10098771. Numeric codes are normalized to the BP_ form."},"productCodes":{"type":"array","items":{"type":"string"},"description":"Product codes (batch). Multiple Watsons product codes for batch product or reviews collection (e.g. BP_10098771). Each product code has its own maxResults row allowance."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Watsons search, /c/ category, /p/ product or /all-brands/b/ URLs from the eight listed markets. Each URL determines its market and mode and has its own maxResults allowance; /lc/ shelves are rejected."},"market":{"type":"string","enum":["ph","hk","tw","th","sg","my","vn","id","tr"],"description":"Market. Select the Watsons storefront for codes and search phrases; a start URL selects its own market. Product availability and category codes vary by market.","default":"ph","example":"ph"},"locale":{"type":"string","description":"Locale. Optional storefront language: Hong Kong accepts en, zh-hk or zh-cn; Thailand accepts th or en. Leave empty for the market default, such as en for the Philippines or zh-tw for Taiwan."},"enrichReviews":{"type":"boolean","description":"Include review rows. Add guest review rows for the first few products when available; off by default.","default":false,"example":false},"reviewPageSize":{"type":"integer","minimum":1,"maximum":200,"description":"Reviews per page. Optional page size for review requests (1 to 200). Leave empty for the default."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"mode":"product","productCode":"BP_10098771","market":"ph","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/stores":{"post":{"operationId":"stores","summary":"Watsons store locations and basestores","description":"Physical store directory (publicly exposed on supported markets such as tr; other APAC markets return 0 rows unbilled) or regional basestore metadata rows (mode=basestores).","tags":["stores"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["stores","basestores"],"description":"Mode. Auto selects the mode from your URL, product code, category code, brand token or search phrase. Taxonomies, stores, base stores and enumerate need only a market.","default":"stores","example":"auto"},"market":{"type":"string","enum":["ph","hk","tw","th","sg","my","vn","id","tr"],"description":"Market. Select the Watsons storefront for codes and search phrases; a start URL selects its own market. Product availability and category codes vary by market.","default":"ph","example":"ph"},"locale":{"type":"string","description":"Locale. Optional storefront language: Hong Kong accepts en, zh-hk or zh-cn; Thailand accepts th or en. Leave empty for the market default, such as en for the Philippines or zh-tw for Taiwan."},"currentPage":{"type":"integer","minimum":0,"maximum":2000,"description":"Start page (0-based). Starting page for collection, counted from zero. Use 0 to begin with the first page.","default":0,"example":0},"maxPages":{"type":"integer","minimum":1,"maximum":500,"description":"Max pages. Legacy page setting retained for compatibility; values above 200 are treated as 200. Current product collection continues across pages until the row allowance is reached or results end; use maxResults to limit rows.","default":1,"example":1},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"mode":"stores","market":"tr","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"rowType":{"type":"string","description":"Entity type: product, review, category, brand, store, basestore (market store settings) or hot_keyword."},"id":{"type":"string","description":"Entity identifier used with rowType to distinguish rows."},"recordType":{"nullable":true,"type":"string"},"uid":{"nullable":true,"type":"string"},"productCode":{"nullable":true,"type":"string"},"productId":{"nullable":true,"type":"string"},"productName":{"nullable":true,"type":"string"},"productUrl":{"nullable":true,"type":"string"},"reviewId":{"nullable":true,"type":"string"},"headline":{"nullable":true,"type":"string"},"comment":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"rating":{"nullable":true},"date":{"nullable":true,"type":"string"},"alias":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"elabTitle":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"brand":{"nullable":true,"type":"string"},"brandCode":{"nullable":true,"type":"string"},"categoryCode":{"nullable":true,"type":"string"},"categories":{"nullable":true,"type":"array","items":{}},"storeCode":{"nullable":true,"type":"string"},"storeName":{"nullable":true,"type":"string"},"address1":{"nullable":true,"type":"string"},"address2":{"nullable":true,"type":"string"},"town":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"},"phone":{"nullable":true,"type":"string"},"locale":{"nullable":true,"type":"string"},"lang":{"nullable":true,"type":"string"},"price":{"nullable":true},"priceFormatted":{"nullable":true,"type":"string"},"oldPrice":{"nullable":true},"currency":{"nullable":true,"type":"string"},"stockStatus":{"nullable":true,"type":"string"},"averageRating":{"nullable":true},"reviewCount":{"nullable":true},"variantCount":{"nullable":true,"type":"number"},"variantCodes":{"nullable":true,"type":"array","items":{}},"elabIngredients":{"nullable":true,"type":"string"},"elabHalal":{"nullable":true,"type":"boolean"},"elabFeatures":{"nullable":true,"type":"string"},"pagination":{"nullable":true,"type":"object"},"market":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"contentDepth":{"nullable":true,"type":"string"},"scrapedAt":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"ean":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"memberPrice":{"nullable":true},"memberPriceFormatted":{"nullable":true,"type":"string"},"memberDiscountAmount":{"nullable":true},"memberDiscountPercent":{"nullable":true},"eliteMemberPrice":{"nullable":true},"eliteMemberPriceFormatted":{"nullable":true,"type":"string"},"flashSalePrice":{"nullable":true},"flashSalePriceFormatted":{"nullable":true,"type":"string"},"flashSale":{"nullable":true},"discountAmount":{"nullable":true},"discountPercent":{"nullable":true},"onSale":{"nullable":true,"type":"boolean"},"promotionFirstTag":{"nullable":true,"type":"string"},"promotionFirstTagStartDate":{"nullable":true},"promotionFirstTagEndDate":{"nullable":true},"promotionTitle":{"nullable":true,"type":"string"},"promotionStart":{"nullable":true},"promotionEnd":{"nullable":true},"promotion":{"nullable":true},"multiBuy":{"nullable":true},"countryOfOrigin":{"nullable":true,"type":"string"},"size":{"nullable":true},"sellQuantity":{"nullable":true},"sellQuantityMsg":{"nullable":true,"type":"string"},"keyword":{"nullable":true,"type":"string","description":"Search words of the request; empty on category and brand pages, and the popular term on hot_keyword rows."},"sourceQuery":{"nullable":true,"type":"string","description":"Watsons internal query string of the page that listed the product."},"parentCode":{"nullable":true,"type":"string"},"baseStoreId":{"nullable":true,"type":"string"},"timezone":{"nullable":true,"type":"string"},"defaultCurrency":{"nullable":true,"type":"string"},"currencies":{"nullable":true,"type":"array","items":{}},"defaultLanguage":{"nullable":true,"type":"string"},"languages":{"nullable":true,"type":"array","items":{}},"deliveryCountries":{"nullable":true,"type":"array","items":{}},"deliveryModes":{"nullable":true,"type":"array","items":{}},"maxRadiusForPosSearch":{"nullable":true,"type":"number"},"stockLevel":{"nullable":true},"inStock":{"nullable":true,"type":"boolean"},"manufacturer":{"nullable":true,"type":"string"},"reviewToken":{"nullable":true,"type":"string"},"customerHashId":{"nullable":true,"type":"string"},"approvalStatus":{"nullable":true,"type":"string"},"replyCount":{"nullable":true},"taggedComment":{"nullable":true},"vpCode":{"nullable":true,"type":"string"},"isShowMyName":{"nullable":true,"type":"boolean"},"displayTime":{"nullable":true},"reportable":{"nullable":true,"type":"boolean"},"pickupAvailable":{"nullable":true,"type":"boolean"},"pickup24Available":{"nullable":true,"type":"boolean"},"pickupExpressEligible":{"nullable":true,"type":"boolean"},"terminalPaymentEnabled":{"nullable":true,"type":"boolean"},"posType":{"nullable":true,"type":"string"},"extendedFeatures":{"nullable":true},"externalId":{"nullable":true},"businessName":{"nullable":true,"type":"string"},"district":{"nullable":true,"type":"string"},"formattedAddress":{"nullable":true,"type":"string"},"rank":{"nullable":true,"type":"number"},"trend":{"nullable":true},"count":{"nullable":true},"recommendationId":{"nullable":true,"type":"string"}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=product: id, title, url, price; rowType=review: id, reviewId, productCode; rowType=category: id, categoryCode, title; rowType=brand: id, brandCode, title; rowType=store: id, storeCode, storeName; rowType=basestore: id, baseStoreId; rowType=hot_keyword: id, keyword."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"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"}}}}}}