omdbapi / OMDb-API

The Open Movie Database Bug Tracking
418 stars 21 forks source link

Support age ratings for countries other than the USA #227

Open unikitty37 opened 3 years ago

unikitty37 commented 3 years ago

The API only returns MPAA ratings, which is not useful for countries other than the USA.

For example, the search http://www.omdbapi.com/?t=28+days+later returns "Rated": "R". For UK users, the correct value would be 18, not R.

Would it be possible to return ratings for other countries as well?

Ideally, Rated would be an object with the ISO 3166 country code as the key, and the rating for that country as a value, but that would be a breaking change. Perhaps Rated could work as it does now, and Certifications could work as suggested — including the US rating, so that applications such as Emby or Jellyfin could simply look for the relevant country code in there rather than having to special-case US searches)

("Certifications" is a better match for usage in the UK, at least, but I don't know if that's good for other countries :)