MockHero

rating

Business

Generate realistic star ratings with a natural distribution skewed toward 4-5 stars — just like real product reviews. Configurable min/max range.

Example Outputs

4.55.03.84.24.7

Parameters

ParameterDescription
minMinimum rating
maxMaximum rating
precisionDecimal places

API Usage

Send a POST request to generate rating data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "rating",
          "type": "rating",
          "params": {
            "min": 1,
            "max": 100
          }
        }
      ]
    }
  ]
}'

Common Use Cases

  • Product review seeding
  • Restaurant ratings
  • App store ratings
  • Service quality testing

Quick Info

Field Type
rating
Category
Business
Parameters
3 parameters
Output Format
JSON, CSV, SQL

Try it now

Generate rating data instantly in the playground.

Generate Rating + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free