---
title: "EmployerAggregateRating Schema"
description: "Add Google employer rating structured data with defineEmployerAggregateRating(), including the reviewed organization and aggregate score."
canonical_url: "https://unhead.unjs.io/docs/schema-org/api/schema/employer-aggregate-rating"
last_updated: "2026-08-04T10:42:01.931Z"
---

## Schema.org EmployerAggregateRating

- **Type**: `defineEmployerAggregateRating(input?: EmployerAggregateRating)`<br />

Describes user ratings for a hiring organization.

## Useful Links

- [Employer rating markup - Google Search Central](https://developers.google.com/search/docs/appearance/structured-data/employer-rating)
- [EmployerAggregateRating - Schema.org](https://schema.org/EmployerAggregateRating)

## Example

```ts
defineEmployerAggregateRating({
  itemReviewed: {
    name: 'World’s Best Coffee Shop',
    sameAs: 'https://coffee.example.com',
  },
  ratingCount: 25,
  ratingValue: 4.4,
})
```

Google requires `itemReviewed`, `ratingValue`, and at least one of `ratingCount` or `reviewCount`. The TypeScript input models that count requirement as a union.

## Defaults and resolves

- `@type` defaults to `EmployerAggregateRating`.
- `@id` defaults to `${canonicalUrl}#employer-aggregate-rating`.
- `itemReviewed` resolves to a root Organization node.
