키보드 단축키
고급 검색
How would I search movies that are between X and Y year? I see that there is only a year field. Is it possible to search between a range of years?
year
You can use /discover to do this. An example:
/discover
https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-10-01&primary_release_date.lte=2020-10-15
You could also combine this with a region if you want to find movies released in the US for example:
https://api.themoviedb.org/3/discover/movie?api_key=###&release_date.gte=2020-10-01&release_date.lte=2020-10-15®ion=US
The docs have more information about the filters you can use.
@travisbell said: You can use /discover to do this. An example: https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-10-01&primary_release_date.lte=2020-10-15 You could also combine this with a region if you want to find movies released in the US for example: https://api.themoviedb.org/3/discover/movie?api_key=###&release_date.gte=2020-10-01&release_date.lte=2020-10-15®ion=US The docs have more information about the filters you can use.
@travisbell said:
Thanks for the reply.
I'm aware of the discovery filtering system. What I'm looking for is to search between years (integer) and not dates (string). Is that possible?
For example, search for movies between the year 2010 and 2012.
Sure, just use YYYY-01-01/YYYY-12-31:
YYYY-01-01
YYYY-12-31
https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-01-01&primary_release_date.lte=2020-12-31
That will query 2020 for you. Obviously scale that to whatever years you want, no problem.
The primary release date is cool.
Please i want to search for movies by title, after all setup, the api returns nothing at all
Hi @bitPascals, what is the URL you are calling that returns no results? Replace your api key with a string like "API_KEY" or "xxxxxx".
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
로그인
회원가입
이 항목을 평가하거나 목록에 추가할까요?
회원이 아닌가요?
가입하고 커뮤니티에 참여하세요
Travis Bell님의 댓글
10월 15, 2020 at 10:57 오전
You can use
/discover
to do this. An example:You could also combine this with a region if you want to find movies released in the US for example:
The docs have more information about the filters you can use.
sproleee님의 댓글
10월 15, 2020 at 11:48 오전
Thanks for the reply.
I'm aware of the discovery filtering system. What I'm looking for is to search between years (integer) and not dates (string). Is that possible?
For example, search for movies between the year 2010 and 2012.
Travis Bell님의 댓글
10월 15, 2020 at 11:52 오전
Sure, just use
YYYY-01-01
/YYYY-12-31
:That will query 2020 for you. Obviously scale that to whatever years you want, no problem.
ortolanph님의 댓글
9월 17, 2023 at 10:46 오전
The primary release date is cool.
bitPascals님의 댓글
9월 25, 2023 at 3:48 오후
Please i want to search for movies by title, after all setup, the api returns nothing at all
robbie3999님의 댓글
9월 25, 2023 at 5:31 오후
Hi @bitPascals, what is the URL you are calling that returns no results? Replace your api key with a string like "API_KEY" or "xxxxxx".