Only API keys on our Conversations PRR platform are eligible to use this API version. Refer to the Platforms section of our Platform & API Concepts documentation to learn which platform your API keys are on.
Returns Product-based Review Statistics. This method has been optimized and was created for inline ratings display.
Examples
š§
Demonstration purposes only. Do not reuse the API passkeys below in your application.
Requesting native review statistics for one product
API key is required to authenticate API user and check permission to access particular client's data.
Yes
ApiVersion
The API version, e.g. 5.4.
Yes
Filter
Filter criteria for content of the query. Must be Product IDs.
Yes
Stats
The content type for which statistics should be included. Currently available types:
Reviews: returns statistics for all content, including syndicated content (if enabled on your API key) and product family content.
NativeReviews: returns statistics only for content submitted on your site; Syndicated content and product family content are excluded.
Yes
Callback
Callback function name used with JSONP. Value is a string consisting of the following characters: a-z,A-Z,0-9,_ (excluding comma). See the JSONP tutorial for more information.
No
Filter options
Each filter argument specifies the attribute to filter on followed by a comma-separated list of values. For instance, "Filter=ProductId:eq:Product1,Product2" returns statistics for Product1 and Product2.
If a filter value contains a comma or a colon, that character needs to be escaped with a backslash (\, or \:). If a filter value contains an ampersand (&), the ampersand must be encoded in the filter value by replacing & with %26.
The following table lists the attributes available for filtering.
Name
Description
ContentLocale
Locale of the content on which to calculate the statistics. A wildcard character "*" can be used to define the value, e.g., "en*" returns all content in English (en_US, en_CA, en_GB, etc.). The two valid operators for this filter are equals (eq) and not equals (neq).
ProductId
The indentifier for the products that will be returned in the results. This filter is required. A limit of 100 ProductIds exists when used in the Filter.
Response format
This is a sample response for requesting native review and review statistics for a product: