1. Reviews
TrustWILL
  • Reviews Widget Integration
  • Reviews Data API
    • Trustoo Open API — Quick Start
    • OAuth2
      • OAuth2 Merchant Authorization
      • Get OAuth2 Authorization URL
      • OAuth2 Get / Refresh Access Token
      • Revoke Token
    • Platform Management
      • Disconnect Platform Authorization
      • Get Shop Authorization Info
      • Get Shop Installation Status
      • Cancel Platform Authorization
    • Webhooks
      • Create Shop Webhook
      • Update Shop Webhook
      • Delete Shop Webhook
      • Get Shop Webhooks
    • Reviews
      • Get Review Detail
        GET
      • Get Review List
        GET
      • Create Review
        POST
      • Delete Review
        POST
      • Get Rating
        GET
    • Media Upload
      • Get Video Upload URL
      • Get Image Upload Credentials
    • Orders
      • Get Order List
    • Customer Events
      • Get Customer Event List
    • Customers
      • Email Unsubscribe
      • Create Customer Exclusion
      • Delete Customer Exclusion
      • Get Customer Exclusion List
  • Schemas
    • SuccessResponse
    • ErrorResponse
    • Pagination
    • OAuthTokenRequest
    • Webhook
    • CreateReviewRequest
    • Review
    • Rating
    • Order
    • CustomerEvent
    • CustomerExclusion
    • ImageUploadCredentials
  1. Reviews

Get Rating

GET
/api/v1/openapi/get_rating
Get aggregate rating statistics for a product, store, or all products.
Authentication: HMAC signature OR OAuth2 Bearer Token
Scope: read_reviews

Request

Authorization
API Key
Add parameter in header
Public-Token
Example:
Public-Token: ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://rapi.trustoo.io/api/v1/openapi/get_rating?product_id=123455&product_handle=undefined&is_store_rating=1&is_all_products_rating=undefined&is_all_rating=undefined' \
--header 'Sign;' \
--header 'Timestamp;' \
--header 'Public-Token: <api-key>'

Responses

🟢200
application/json
Rating statistics
Bodyapplication/json

Example
{
    "code": 0,
    "message": "string",
    "time": 0,
    "request_id": "string",
    "data": {
        "rating_value": "string",
        "review_count": 0,
        "star1_count": 0,
        "star2_count": 0,
        "star3_count": 0,
        "star4_count": 0,
        "star5_count": 0
    }
}
Modified at 2026-06-24 04:25:21
Previous
Delete Review
Next
Get Video Upload URL
Built with