# GetTopWatchedContentMetadata

## Example Usage

```typescript
import { GetTopWatchedContentMetadata } from "@lukehagar/plexjs/sdk/models/operations";
import { RFCDate } from "@lukehagar/plexjs/sdk/types";

let value: GetTopWatchedContentMetadata = {
  ratingKey: "17",
  key: "/library/metadata/17",
  guid: "plex://movie/5d77683f6f4521001ea9dc53",
  slug: "waterloo-road",
  studio: "Universal Pictures",
  type: "movie",
  title: "Serenity",
  librarySectionTitle: "Movies",
  librarySectionID: 1,
  librarySectionKey: "/library/sections/1",
  contentRating: "PG-13",
  summary:
    "Serenity continues the story of the TV series it was based upon (\"Firefly\"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job.",
  index: 1,
  audienceRating: 9.1,
  year: 2005,
  tagline: "They aim to misbehave.",
  thumb: "/library/metadata/17/thumb/1705637165",
  art: "/library/metadata/17/art/1705637165",
  duration: 141417,
  originallyAvailableAt: new RFCDate("2005-09-29T00:00:00Z"),
  leafCount: 222,
  viewedLeafCount: 100,
  childCount: 13,
  addedAt: 1705637164,
  updatedAt: 1705637165,
  globalViewCount: 80,
  audienceRatingImage: "rottentomatoes://image.rating.upright",
  genre: [
    {
      id: 184,
      filter: "genre=184",
      tag: "Thriller",
    },
  ],
  country: [
    {
      id: 116,
      filter: "country=116",
      tag: "United States of America",
    },
  ],
  guids: [
    {
      id: "tvdb://2337",
    },
  ],
  role: [
    {
      id: 220,
      filter: "actor=220",
      tag: "Dennis Keiffer",
      tagKey: "5d77683554f42c001f8c4708",
      role: "Bar Guy (uncredited)",
      thumb:
        "https://metadata-static.plex.tv/6/people/648e9a7ea1d537bccfcd7615134b78ce.jpg",
    },
  ],
  user: [
    {
      id: 220,
    },
  ],
};
```

## Fields

| Field                                                                                                                                                                                                                                                                       | Type                                                                                                                                                                                                                                                                        | Required                                                                                                                                                                                                                                                                    | Description                                                                                                                                                                                                                                                                 | Example                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ratingKey`                                                                                                                                                                                                                                                                 | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 17                                                                                                                                                                                                                                                                          |
| `key`                                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | /library/metadata/17                                                                                                                                                                                                                                                        |
| `guid`                                                                                                                                                                                                                                                                      | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | plex://movie/5d77683f6f4521001ea9dc53                                                                                                                                                                                                                                       |
| `slug`                                                                                                                                                                                                                                                                      | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | waterloo-road                                                                                                                                                                                                                                                               |
| `studio`                                                                                                                                                                                                                                                                    | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | Universal Pictures                                                                                                                                                                                                                                                          |
| `type`                                                                                                                                                                                                                                                                      | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | movie                                                                                                                                                                                                                                                                       |
| `title`                                                                                                                                                                                                                                                                     | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | Serenity                                                                                                                                                                                                                                                                    |
| `librarySectionTitle`                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | Movies                                                                                                                                                                                                                                                                      |
| `librarySectionID`                                                                                                                                                                                                                                                          | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 1                                                                                                                                                                                                                                                                           |
| `librarySectionKey`                                                                                                                                                                                                                                                         | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | /library/sections/1                                                                                                                                                                                                                                                         |
| `contentRating`                                                                                                                                                                                                                                                             | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | PG-13                                                                                                                                                                                                                                                                       |
| `summary`                                                                                                                                                                                                                                                                   | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. |
| `index`                                                                                                                                                                                                                                                                     | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 1                                                                                                                                                                                                                                                                           |
| `audienceRating`                                                                                                                                                                                                                                                            | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 9.1                                                                                                                                                                                                                                                                         |
| `year`                                                                                                                                                                                                                                                                      | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 2005                                                                                                                                                                                                                                                                        |
| `tagline`                                                                                                                                                                                                                                                                   | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | They aim to misbehave.                                                                                                                                                                                                                                                      |
| `thumb`                                                                                                                                                                                                                                                                     | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | /library/metadata/17/thumb/1705637165                                                                                                                                                                                                                                       |
| `art`                                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | /library/metadata/17/art/1705637165                                                                                                                                                                                                                                         |
| `duration`                                                                                                                                                                                                                                                                  | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 141417                                                                                                                                                                                                                                                                      |
| `originallyAvailableAt`                                                                                                                                                                                                                                                     | [RFCDate](../../../types/rfcdate.md)                                                                                                                                                                                                                                        | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 2005-09-29 00:00:00 +0000 UTC                                                                                                                                                                                                                                               |
| `leafCount`                                                                                                                                                                                                                                                                 | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 222                                                                                                                                                                                                                                                                         |
| `viewedLeafCount`                                                                                                                                                                                                                                                           | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 100                                                                                                                                                                                                                                                                         |
| `childCount`                                                                                                                                                                                                                                                                | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 13                                                                                                                                                                                                                                                                          |
| `addedAt`                                                                                                                                                                                                                                                                   | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 1705637164                                                                                                                                                                                                                                                                  |
| `updatedAt`                                                                                                                                                                                                                                                                 | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 1705637165                                                                                                                                                                                                                                                                  |
| `globalViewCount`                                                                                                                                                                                                                                                           | *number*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | 80                                                                                                                                                                                                                                                                          |
| `audienceRatingImage`                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         | rottentomatoes://image.rating.upright                                                                                                                                                                                                                                       |
| `genre`                                                                                                                                                                                                                                                                     | [operations.GetTopWatchedContentGenre](../../../sdk/models/operations/gettopwatchedcontentgenre.md)[]                                                                                                                                                                       | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                             |
| `country`                                                                                                                                                                                                                                                                   | [operations.GetTopWatchedContentCountry](../../../sdk/models/operations/gettopwatchedcontentcountry.md)[]                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                             |
| `guids`                                                                                                                                                                                                                                                                     | [operations.GetTopWatchedContentGuids](../../../sdk/models/operations/gettopwatchedcontentguids.md)[]                                                                                                                                                                       | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                             |
| `role`                                                                                                                                                                                                                                                                      | [operations.GetTopWatchedContentRole](../../../sdk/models/operations/gettopwatchedcontentrole.md)[]                                                                                                                                                                         | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                             |
| `user`                                                                                                                                                                                                                                                                      | [operations.User](../../../sdk/models/operations/user.md)[]                                                                                                                                                                                                                 | :heavy_minus_sign:                                                                                                                                                                                                                                                          | N/A                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                             |