Review Search
AI Review Searches
POST https://api.discoverist.ai/recommend/v1/clients/{client_id}/review_search
Search Reviews.
Request Body
Name
Type
Description
question*
string
user question
product*
collection
product information
product_id*
string
product_id
{
"results": "Your review Answer"
}{
"error": "store not found."
}curl --location 'https://api.discoverist.ai/recommend/v1/clients/{YOUR_CLIENT_ID}/review_search' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json'
--data '{
"product": {
"product_id": "23232323"
},
"question": "what do users say about this product"
}'const apiKey = process.env.REACT_APP_API_KEY || 'YOUR_API_KEY'; // Replace with your actual API key (consider environment variables)
const clientId = 'YOUR_CLIENT_ID'; // Replace with your actual client ID
const url = `https://api.discoverist.ai/recommend/v1/clients/${clientId}/review_search`;
const headers = {
'accept': 'application/json',
'x-api-key': apiKey,
};
const data = {
"product": {
"product_id": "23232323"
},
"question": "what do users say about this product"
}
const response = await fetch(url, {
method: 'GET',
headers,
body: JSON.stringify(data),
});Last updated