TanqoryDocs

tanqoryExtProductRating

  • Query
  • Products

A product's rating from its published reviews.

Arguments

ArgumentTypeRequiredDefault
productIdID!Required

Returns

TanqoryExtProductRating! A product's rating from its published reviews.

FieldTypeDescription
averageFloat

The mean rating, 1-5, two decimals; null without a published review.

countInt!
distribution[Int!]!

Published reviews with 5, 4, 3, 2 and 1 stars.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtProductRating($productId: ID!) {\n  tanqoryExtProductRating(productId: $productId) {\n    average\n    count\n    distribution\n  }\n}","variables":{"productId":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10