본문 바로가기

프로그래밍/영화 TMDB API

영화 정보 앱 만들기 - TMDB API 사용법, Certifications

반응형

TMDB API 활용 예제 앱입니다.

https://play.google.com/store/apps/details?id=com.enigmah2k.movieinfo

 

영화정보 - Google Play 앱

영화 또는 TV 시리즈 정보를 검색할 수 있습니다. TMDB API를 사용하여 만들었습니다. 한국에 소개되지 않은 컨텐츠를 찾을 수 있습니다.

play.google.com

 

TMDB API - Certifications

TMDb에서 공식적으로 지원하는 인증 목록입니다.

 

API 호출을 통해 값을 가져올 수도 있지만, Example 로 제시한 값이 전부입니다.

 

아래 링크가 Certifications 관련 API 상세입니다.

https://developers.themoviedb.org/3/certifications/get-movie-certifications

 

각 API에 대해 알아보겠습니다.

 

=============================================

< API 설명 >

 

1.Get Movie Certifications

TMDb에서 공식적으로 지원하는 영화 인증 정보을 가져옵니다

 

아래와 같이 호출하면 영화 인증 정보를 얻을 수 있습니다.

https://api.themoviedb.org/3/certification/movie/list?api_key=<<api_key>>

 

결과는 Example 로 제시한 내용입니다.

 

아래는 응답 결과 입니다.

너무 길어서 일부만 첨부하겠습니다.

고정된 값이므로 호출 및 응답 여부만 확인해도 될 것 같습니다.

{
  "certifications": {
    "US": [
      {
        "certification": "G",
        "meaning": "All ages admitted. There is no content that would be objectionable to most parents. This is one of only two ratings dating back to 1968 that still exists today.",
        "order": 1
      },
      {
        "certification": "PG-13",
        "meaning": "Some material may be inappropriate for children under 13. Films given this rating may contain sexual content, brief or partial nudity, some strong language and innuendo, humor, mature themes, political themes, terror and/or intense action violence. However, bloodshed is rarely present. This is the minimum rating at which drug content is present.",
        "order": 3
      },
...      

 

 

2. Get TV Certifications

TMDb에서 공식적으로 지원하는 TV 인증 정보을 가져옵니다

 

아래와 같이 호출하면 TV 인증 정보를 얻을 수 있습니다.

https://api.themoviedb.org/3/certification/tv/list?api_key=<<api_key>>

 

결과는 Example 로 제시한 내용입니다.

 

아래는 응답 결과 입니다.

너무 길어서 일부만 첨부하겠습니다.

영화 인증과 마찬가지로 고정된 값이므로 호출 및 응답 여부만 확인해도 될 것 같습니다.

 

{
  "certifications": {
    "RU": [
      {
        "certification": "18+",
        "meaning": "Restricted to People 18 or Older.",
        "order": 5
      },
      {
        "certification": "0+",
        "meaning": "Can be watched by Any Age.",
        "order": 1
      },
... 

 

 

 

 

 

반응형