Retrieve Features
Features provides the list of all features, called “Keywords”, that consumers are using in the product reviews to describe the product.
GET /features
curl -X 'GET' \
'https://[stg.]api.bazaarvoice.com/sentiment/v1/features? productId=29366&language=es&limit=10' \
--header ‘Authorization: passKey’
-H 'accept: application/json'
'https://[stg.]api.bazaarvoice.com/sentiment/v1/features?productId=29366&language=es&limit=10' \
--header ‘Authorization: passKey’
Header | Description |
---|---|
Authorization | Passkey (API key) provided to client for authentication |
Query Parameters
Request Parameter | Description | Required |
---|---|---|
productId | Unique identifier of the product for which you want to retrieve features | Yes |
language | Only the English language code en is supported. Passing multiple language codes in a single request is not allowed. Use only the base language code en . Do not add any locale codes like en_US , en_CA , or en_UK .Note: The PS API currently works best for sites configured with English locales only. For sites using non-English locales, contact your account manager or Bazaarvoice Support to discuss your site-specific requirements | Yes |
limit | Number of features. Default value: 10 | No |
Sample Response
{
"features": [
{
"feature": "comfort",
"nativeFeature": "consuelo"
},
{
"feature": "satisfaction",
"nativeFeature": "satisfacción"
},
{
"feature": "quality",
"nativeFeature": "calidad"
},
{
"feature": "fit",
"nativeFeature": "caber"
},
{
"feature": "purchase",
"nativeFeature": "compra"
},
{
"feature": "appearance",
"nativeFeature": "apariencia"
},
{
"feature": "size",
"nativeFeature": "tamaño"
},
{
"feature": "material",
"nativeFeature": "material"
},
{
"feature": "price",
"nativeFeature": "precio"
},
{
"feature": "color",
"nativeFeature": "color"
}
]
}
Response Parameters
Response Field Name | Data Type | Description |
---|---|---|
features | Array | An array containing list of all features for the requested product. Please refer to feature for attributes type and description of the attributes |
feature
Response Field Name | Data Type | Description |
---|---|---|
feature | String | Unique identifier of the feature. It is composed of words and phrases that match the name of the feature in English, but to be treated as ID. It can contain ‘spaces’ |
nativeFeature | String | Name of the feature displayed in requested language i.e. “en, fr, de, es” |
Updated 22 days ago