QuickView Search
Query Parameters
Rebuy-Api-Key · string
- [Mandatory] Your Rebuy public API key
Code Example
// POST https://rebuyengine.com/api/v1/smart-search/search/quick-view
const params = new URLSearchParams({
Rebuy-Api-Key: "YOUR_VALUE"
});
fetch(`https://rebuyengine.com/api/v1/smart-search/search/quick-view?${params}`)
.then(response => response.json())
.then(data => console.log(data));
Response Examples
200 - 200
{
"successful": true,
"data": {
"productSuggestions": [
{
"id": "7433398157545",
"compareAtPrice": 1000,
"price": 500,
"name": "Mystery Coffee Bag",
"url": "https://rebuydemo.myshopify.com/products/mystery-coffee-bag",
"images": [
{
"alt": "",
"url": "https://cdn.shopify.com/s/files/1/0605/0555/5177/files/Mystery_1_1500x_1.png?v=1709661781"
}
],
"variants": [
{
"id": "42120430026985",
"compareAtPrice": 1000,
"price": 500,
"name": "1 lb",
"url": "https://rebuydemo.myshopify.com/products/mystery-coffee-bag?variant=42120430026985",
"images": [],
"canPurchase": true
},
{
"id": "42120430059753",
"compareAtPrice": 2000,
"price": 1000,
"name": "2 lb",
"url": "https://rebuydemo.myshopify.com/products/mystery-coffee-bag?variant=42120430059753",
"images": [],
"canPurchase": true
}
],
"canPurchase": true,
"ratings": {
"average": 5,
"count": 2
}
}
],
"collections": [],
"query": "coffee"
},
"status": 200,
"errorMessage": null
}
400 - 400
---
title: QuickView Search
excerpt: >-
The Quickview API provides product autocomplete suggestions based on a user
query.
api:
file: rebuy-smart-search.json
operationId: quickview-search
deprecated: false
hidden: false
metadata:
title: ''
description: ''
robots: index
next:
description: ''
---
## Query Parameters
`Rebuy-Api-Key` · string
: [Mandatory] Your Rebuy public API key
## Code Example
```javascript
// POST https://rebuyengine.com/api/v1/smart-search/search/quick-view
const params = new URLSearchParams({
Rebuy-Api-Key: "YOUR_VALUE"
});
fetch(`https://rebuyengine.com/api/v1/smart-search/search/quick-view?${params}`)
.then(response => response.json())
.then(data => console.log(data));
```
## Response Examples
### 200 - 200
```json
{
"successful": true,
"data": {
"productSuggestions": [
{
"id": "7433398157545",
"compareAtPrice": 1000,
"price": 500,
"name": "Mystery Coffee Bag",
"url": "https://rebuydemo.myshopify.com/products/mystery-coffee-bag",
"images": [
{
"alt": "",
"url": "https://cdn.shopify.com/s/files/1/0605/0555/5177/files/Mystery_1_1500x_1.png?v=1709661781"
}
],
"variants": [
{
"id": "42120430026985",
"compareAtPrice": 1000,
"price": 500,
"name": "1 lb",
"url": "https://rebuydemo.myshopify.com/products/mystery-coffee-bag?variant=42120430026985",
"images": [],
"canPurchase": true
},
{
"id": "42120430059753",
"compareAtPrice": 2000,
"price": 1000,
"name": "2 lb",
"url": "https://rebuydemo.myshopify.com/products/mystery-coffee-bag?variant=42120430059753",
"images": [],
"canPurchase": true
}
],
"canPurchase": true,
"ratings": {
"average": 5,
"count": 2
}
}
],
"collections": [],
"query": "coffee"
},
"status": 200,
"errorMessage": null
}
```
### 400 - 400
```json
{}
```