TypeScript
Schema

EmployerAggregateRating Schema

Schema.org EmployerAggregateRating

  • Type: defineEmployerAggregateRating(input?: EmployerAggregateRating)
    Describes user ratings for a hiring organization.

Example

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.
Did this page help you?