---
title: maxMovieRatingForCountry
framework: TVMLKit JS
role: symbol
role_heading: Instance Method
platforms: [tvOS 9.0+]
path: tvmljs/restrictions/1627362-maxmovieratingforcountry
---

# maxMovieRatingForCountry

The maximum movie rating allowed for the specified country or region.

## Declaration

```data
String maxMovieRatingForCountry(
    in String countryCode
);
```

## Parameters

- `countryCode`: An object containing the valid country code. If the code is invalid, the current country or region based on location is used.

## Return Value

Return Value A string representing the maximum allowed rating for a movie in the specified country or region; for example, PG-13.

## See Also

### Retrieving Restriction Information

- [allowsExplicit](tvmljs/restrictions/1627425-allowsexplicit.md)
- [maxMovieRank](tvmljs/restrictions/1627305-maxmovierank.md)
- [maxTVShowRank](tvmljs/restrictions/1627434-maxtvshowrank.md)
- [maxTVShowRatingForCountry](tvmljs/restrictions/1627442-maxtvshowratingforcountry.md)
