{"payload": {"product_info_list": [{"attributes": {"colour": "Walnut","price": 1200.0,"size": "8 Seater"},"image_url": "https://XXXX.jpg","item_url": "https://XXXX.uk","product_ref_id": 21260,"product_sku_id": 268262,"product_title": "8 Seater Oval Walnut Dining Table","product_type": "Furniture > Dining Room > Dining tables","score": 0.9670957669803361},{"attributes": {"colour": "Silver","price": 60.0,},"image_url": "https://XXXX.jpg","item_url": "https://XXXX.uk","product_ref_id": 23210,"product_sku_id": 780594,"product_title": "Estelle Silver Round Side Table","product_type": "Furniture > Living Room","score": 0.7840473618525863}],"website_id": "D6EB943D-CCCCCCXXXXXX-A093EF"},"type": 1}
As PA does all the complex computation in the background, the API interface for receiving search results is simple.
curl --request POST 'https://int-api.particularaudience.com/1.0/Search' \--header 'Content-Type: application/json' \--data-raw '{"customerId": "CUSTOMER_ID","websiteId": "WEBSITE_ID","q": "toothbrush","client": "xyz","personalise": true,"searchFields": ["title","brand"],"fuzzy": true}'
For all our search APIs, the output is standardised to ensure that our clients have the smoothest experience in integrating different algorithms for different use cases.
{"payload": {"product_info_list": [{"attributes": {"colour": "Walnut","price": 1200.0,"size": "8 Seater"},"image_url": "https://XXXX.jpg","item_url": "https://XXXX.uk","product_ref_id": 21260,"product_sku_id": 268262,"product_title": "8 Seater Oval Walnut Dining Table","product_type": "Furniture > Dining Room > Dining tables","score": 0.9670957669803361},{"attributes": {"colour": "Silver","price": 60.0,},"image_url": "https://XXXX.jpg","item_url": "https://XXXX.uk","product_ref_id": 23210,"product_sku_id": 780594,"product_title": "Estelle Silver Round Side Table","product_type": "Furniture > Living Room","score": 0.7840473618525863}],"website_id": "D6EB943D-CCCCCCXXXXXX-A093EF"},"type": 1}