Search
PA’s Search API provides near real-time (less than 100ms) search results for your website. Before you get started, please check with your PA Account Manager that search is approved for your account.
post
/1.0/Search
Search Request

Example Request

As PA does all the complex computation in the background, the API interface for receiving search results is simple.
1
curl --request POST 'https://int-api.particularaudience.com/1.0/Search' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"customerId": "CUSTOMER_ID",
5
"websiteId": "WEBSITE_ID",
6
"q": "toothbrush",
7
"client": "xyz",
8
"personalise": true,
9
"searchFields": [
10
"title",
11
"brand"
12
],
13
"fuzzy": true
14
}'
15
Copied!

Example Response

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.
1
{
2
"payload": {
3
"product_info_list": [
4
{
5
"attributes": {
6
"colour": "Walnut",
7
"price": 1200.0,
8
"size": "8 Seater"
9
},
10
"image_url": "https://XXXX.jpg",
11
"item_url": "https://XXXX.uk",
12
"product_ref_id": 21260,
13
"product_sku_id": 268262,
14
"product_title": "8 Seater Oval Walnut Dining Table",
15
"product_type": "Furniture > Dining Room > Dining tables",
16
"score": 0.9670957669803361
17
},
18
{
19
"attributes": {
20
"colour": "Silver",
21
"price": 60.0,
22
},
23
"image_url": "https://XXXX.jpg",
24
"item_url": "https://XXXX.uk",
25
"product_ref_id": 23210,
26
"product_sku_id": 780594,
27
"product_title": "Estelle Silver Round Side Table",
28
"product_type": "Furniture > Living Room",
29
"score": 0.7840473618525863
30
}
31
],
32
"website_id": "D6EB943D-CCCCCCXXXXXX-A093EF"
33
},
34
"type": 1
35
}
Copied!
Last modified 5mo ago