Schema
Movie Schema
Schema.org Movie
Type: defineMovie<T extends Record<string, any>>(input?: Movie & T)
Describes a movie.
Useful Links
Google's movie feature is a carousel. Eligibility requires the surrounding Carousel ItemList markup as well as each Movie's name and image.
Example
defineMovie({
name: 'Black Panther',
url: '/2019-best-picture-noms#black-panther',
image: '/photos/6x9/photo.jpg',
dateCreated: '2018-02-16',
director: 'Ryan Coogler',
review: {
reviewRating: {
ratingValue: 2,
},
author: 'Trevor R',
reviewBody: 'I didn\'t like the lighting and CGI in this movie.',
},
aggregateRating: {
ratingValue: 96,
bestRating: 100,
ratingCount: 88211,
},
})
Defaults and resolves
@typedefaults toMovie, and a root Movie receives an ID such as${canonicalUrl}#/schema/movie/{n}.aggregateRating,review,director,actor,trailer, andproductionCompanyuse their corresponding nested resolvers.dateCreatedaccepts a JavaScript Date object and is serialized as a calendar date.
Types
export interface MovieSimple extends Thing {
/**
* An image that represents the movie.
*/
image: NodeRelations<string | ImageObject>
/**
* The name of the movie.
*/
name: string
/**
* Annotation for the average review score assigned to the movie.
*/
aggregateRating?: NodeRelation<AggregateRating>
/**
* The date the movie was released.
*/
dateCreated?: ResolvableDate
/**
* The director of the movie.
*/
director?: NodeRelations<Person | string>
/**
* The actor of the movie.
*/
actor?: NodeRelations<Person | string>
/**
* A nested Review of the movie.
*/
review?: NodeRelations<Review>
/**
* The trailer of a movie or TV/radio series, season, episode, etc.
*/
trailer?: NodeRelations<string | VideoObject>
/**
* The duration of the movie.
*/
duration?: string
/**
* The genre of the movie.
*/
genre?: string
/**
* The content rating of the movie.
*/
contentRating?: string
/**
* The production company of the movie.
*/
productionCompany?: NodeRelation<Organization>
}
Related Schemas
- Person: Director, actors
- Organization: Production company
- MusicRecording: Soundtrack
Did this page help you?