[개인 프로젝트] 1. the moviedb API 생성하기

배상건·2023년 3월 6일
0

프로젝트

목록 보기
1/10

API key를 기반으로 the movie DB API 에 통신을 시도한다.

1. API Key 발급받기

  1. https://www.themoviedb.org 로 이동
  2. 로그인 후 API_KEY 발급

    프로필과 설정 -> 설정 -> API

    API 요청 예 를 참고하여 서버 요청을 보내면 된다.

2. Text Editor에서 the MovieDB API 설정

https://developers.themoviedb.org/3/getting-started/introduction -> 사용할 요청어 선택 -> 적용

주로 사용할 API_URL

  1. Get Movie By Latest
    :https://api.themoviedb.org/3/movie/latest?api_key=<<api_key>>&language=en-US

  2. Get Movie Detaill
    https://api.themoviedb.org/3/movie/{movie_id}?api_key=<<api_key>>&language=en-US

  3. Get Movie Reviews
    https://api.themoviedb.org/3/movie/{movie_id}/reviews?api_key=<<api_key>>&language=en-US&page=1

  4. Get Trending
    https://api.themoviedb.org/3/trending/all/day?api_key=<<api_key>>

profile
목표 지향을 위해 협업하는 개발자

0개의 댓글