---
title: "Emoji Rating Image API — Score with any emoji | Imejis"
description: "Use any emoji — fire, pizza, hearts — as the rating unit via the custom icon shape, with the value set on every API call. Make emoji ratings free."
url: "https://www.imejis.io/components/rating/emoji"
---

# Emoji Rating Image API — Score with any emoji | Imejis

Any emoji as the rating unit via the custom icon shape.

## Use cases

- Playful product scores (fire out of 5)
- Food and restaurant review graphics
- Community poll result images

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `number` (min 0) | `3` | Current rating value (supports fractions). |
| `max` | `number` (min 1) | `5` | Total number of icons. |
| `iconShape` | `'star' \| 'heart' \| 'circle' \| 'custom'` | `"star"` | Icon used for each rating unit. |
| `customPath` | `string` | — | SVG path for the icon when iconShape is 'custom'. |
| `customEmoji` | `string` | — | Emoji used as the icon when iconShape is 'custom'. |
| `activeColor` | `color` | `"#FBBF24"` | Color of filled (active) icons. |
| `inactiveColor` | `color` | `"#E5E7EB"` | Color of unfilled (inactive) icons. |
| `emptyStyle` | `'filled' \| 'outline'` | `"filled"` | Whether empty icons render solid in the inactive color or as outlines. |
| `partial` | `'exact' \| 'half' \| 'round'` | `"exact"` | How fractional values fill the last icon. |
| `showValue` | `boolean` | `false` | Show the numeric value next to the icons. |
| `valueFormat` | `'decimal' \| 'fraction' \| 'countOfTotal'` | `"decimal"` | Format of the numeric label (4.5, 4.5/5, or "4 of 5"). |
| `valueColor` | `color` | `"#374151"` | Color of the numeric label. |
| `perRow` | `number` (min 0) | `0` | Icons per row before wrapping (0 = single row). |
| `opacity` | `number` | `1` | Overall component opacity from 0 (transparent) to 1 (opaque). |
| `borderWidth` | `number` | `0` | Border thickness in pixels around the component. |
| `borderColor` | `color` | `"transparent"` | Border color (any CSS color). |
| `borderStyle` | `'solid' \| 'dashed' \| 'dotted' \| 'double' \| 'none'` | `"solid"` | Border line style. |
| `borderRadius` | `number` | `0` | Corner radius in pixels. |
| `boxShadow` | `string` | — | CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)". |

## Design JSON (this variant)

```json
{
  "title": "Rating sample",
  "description": "A dynamic star rating",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-rating",
      "key": "score",
      "type": "rating",
      "position": {
        "x": 260,
        "y": 182
      },
      "rotation": 0,
      "size": {
        "width": 280,
        "height": 56
      },
      "dynamic": true,
      "properties": {
        "value": 4,
        "max": 5,
        "iconShape": "custom",
        "activeColor": "#FBBF24",
        "inactiveColor": "#E5E7EB",
        "emptyStyle": "filled",
        "partial": "exact",
        "showValue": false,
        "valueFormat": "decimal",
        "opacity": 1,
        "customEmoji": "🔥"
      }
    }
  ]
}
```

## Examples

### Spice level on a menu card

Three of five chili peppers marking a dish as medium-hot.

API overrides that reproduce this example:

```json
{
  "score.iconShape": "custom",
  "score.customEmoji": "🌶️",
  "score.value": 3
}
```

### Pizza place review

A 4.5-pizza score for a playful restaurant review graphic.

API overrides that reproduce this example:

```json
{
  "score.iconShape": "custom",
  "score.customEmoji": "🍕",
  "score.value": 4.5
}
```

## API overrides

Set '<key>.value' (or just '<key>') to the score for each render; max, colors and border props are overridable too.

Flat override payload (`key.property` addressing) with the sample design's current values — send only the keys you want to change:

```json
{
  "score.value": 4,
  "score.max": 5,
  "score.iconShape": "star",
  "score.activeColor": "#FBBF24",
  "score.inactiveColor": "#E5E7EB",
  "score.emptyStyle": "filled",
  "score.partial": "exact",
  "score.showValue": false,
  "score.valueFormat": "decimal",
  "score.opacity": 1
}
```

```bash
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "score.value": 4,
    "score.max": 5,
    "score.iconShape": "star",
    "score.activeColor": "#FBBF24",
    "score.inactiveColor": "#E5E7EB",
    "score.emptyStyle": "filled",
    "score.partial": "exact",
    "score.showValue": false,
    "score.valueFormat": "decimal",
    "score.opacity": 1
}'
```

`{{YOUR_DESIGN_ID}}` and `{{YOUR_API_KEY}}` are placeholders: first create
the design in your account (paste the sample design JSON above into the
editor at https://app.imejis.io, or create it programmatically via the
imejis MCP server's `create_design` + `update_design` tools), then render
it with the design's id and one of your API keys.

Agents: the MCP server at https://api.imejis.io/api/mcp exposes this same
catalog as structured data via the `list_component_types` tool (property
kinds, allowed values, bounds, ready-to-use sample designs).

## Related

- [Rating component](https://www.imejis.io/components/rating.md) — full reference and FAQs
- [Hearts](https://www.imejis.io/components/rating/hearts.md) — Heart icons — likes, favorites and health bars.
- [Half fill + label](https://www.imejis.io/components/rating/half-fill-label.md) — Fractional score rounded to halves with a "3.5/5" label alongside.
- [Outline empty](https://www.imejis.io/components/rating/outline-empty.md) — Unfilled icons render as outlines instead of solid gray.
- [Ten-point scale](https://www.imejis.io/components/rating/ten-point.md) — Ten icons with a fractional "8.6/10" label — review scores out of ten.
