# Rating summary OG image template

The rating block of a review site: product picture and name, a big average over partly filled stars, the review count and a five-to-one histogram.

- Slug: `rating-summary`
- Preview (real render): https://shareglint.com/storage/template-previews/rating-summary.jpg
- Page: https://shareglint.com/en/templates/rating-summary

For shops, apps, venues and SaaS review pages showing what all reviews add up to (one review is `testimonial-stars`). Give the average and count or let the card work them out from the distribution. Stars are clipped to the average and clamped to 0–5; a missing picture becomes a monogram tile. Wide and square frames put the score beside the histogram; vertical ones centre a big picture, the score and the bars under each other.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `subject` | text | What is rated, e.g. Northwind Studio Headphones. (default: Product name) | Northwind Studio Headphones |
| `average` | text | Average rating as written, e.g. 4.7. Empty = computed from the distribution. | 4.7 |
| `count` | text | Review count as written, e.g. 1,240 reviews. Empty = the sum of the distribution. | 1,240 reviews |
| `distribution` | text | Reviews per star, as 5:820, 4:260, 3:90, 2:40, 1:30 or five bare numbers from five stars down. | 5:902, 4:228, 3:62, 2:28, 1:20 |
| `platform` | text | Where the reviews come from, e.g. Verified buyers on northwind.shop. | Verified buyers on northwind.shop |
| `platform_logo` | image URL | Logo next to the platform. | https://example.com/images/logo-northwind.png |
| `image` | image URL | Product picture; without it the first letter of the subject is shown. | https://example.com/images/headphones.jpg |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #f59e0b) | #f59e0b |
| `theme` | dark | light | Colour scheme: dark or light. (default: light) | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "rating-summary",
    "modifications": {
        "subject": "Northwind Studio Headphones",
        "average": "4.7",
        "count": "1,240 reviews",
        "distribution": "5:902, 4:228, 3:62, 2:28, 1:20",
        "platform": "Verified buyers on northwind.shop",
        "platform_logo": "https://example.com/images/logo-northwind.png",
        "image": "https://example.com/images/headphones.jpg"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/rating-summary/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
