I am trying to extract upcoming movies data using api. I got an api key and I am using following link but it is not working. I am running this link in python.
Thank you. Also, when I pull the text using the link, I am only seeing results for page 1. However, at the bottom it says pages 5 and total results 100. How do I access all of this information. I am using python-json to store it in dictionary format.
I also want some additional information such as genre, release date and if the movie is rated. Any suggestion on how to get that.
I did but I don't see anything about how the movies are rated. Even on the webpage there is nothing about how the movies are rated so I am guessing this information is not available. When I say rated I mean if its rated R, PG13, or etc.
Wondering if you have added mpaa ratings (or certifications) to the discovery method? It seems this would be a highly desirable search attribute as its the first thing parents look at when searching movies. I'm trying to reduce the number of server fetches to get a current theater movie list with mpaa ratings (certifications) and would prefer not to have to do additional fetches to each listed item to get the mpaa rating (G, PG-13, R, etc.). This is the API discovery URI I'm trying to use.
I tried an "append_to_response=releases" but doesn't appear to be supported with the discovery method.
If not, how do you suggest stream lining the search methods?
thanks
Greg
BTW - I found tMDB after Fandango turned off the Rotten Tomatoes API. The solution I was using was calling a single Rotten Tomatoes API to get all relevant data like this:
Unfortunately, no, there is no way to add that data to any of list methods (search, find, discover, etc...) All you can do at this time is make extra queries to fetch the data directly from the movie releases method.
Now that we support the region filter, it could make sense to have this data. Keep in min, region was only added a month ago and before then, it made no sense to default to any particular country as the data was mostly region agnostic.
Thanks for the rapid response Travis. I'll look forward to great things with tMDB. It appears all the commercial movie providers are closing their API so I expect you will be getting a lot of activity going forward.
Travis Bell 的回复
于 2013 年 12 月 18 日 12:32上午
Hi Sohail,
That's not the correct URL for the upcoming method.
Would be the one you're after. As always, make sure to check the docs.
sohail.budhwani 的回复
于 2013 年 12 月 18 日 9:23上午
Thank you. Also, when I pull the text using the link, I am only seeing results for page 1. However, at the bottom it says pages 5 and total results 100. How do I access all of this information. I am using python-json to store it in dictionary format.
I also want some additional information such as genre, release date and if the movie is rated. Any suggestion on how to get that.
Thanks for your help.
Travis Bell 的回复
于 2013 年 12 月 18 日 11:00上午
You can query for additional pages by using the
page
param.You will need to go and make a full movie (get the id from the upcoming list) request.
As an example.
sohail.budhwani 的回复
于 2013 年 12 月 18 日 1:40下午
That helped a lot, thanks. How can I get how the movies are rated (ex: R, PG). It is not under movies info.
Travis Bell 的回复
于 2013 年 12 月 18 日 3:51下午
Sohail,
Please try reading the documentation. All of this is outlined there. ;)
http://docs.themoviedb.apiary.io/#get-%2F3%2Fmovie%2F%7Bid%7D%2Freleases
sohail.budhwani 的回复
于 2013 年 12 月 18 日 3:56下午
I did but I don't see anything about how the movies are rated. Even on the webpage there is nothing about how the movies are rated so I am guessing this information is not available. When I say rated I mean if its rated R, PG13, or etc.
Travis Bell 的回复
于 2013 年 12 月 18 日 3:58下午
Did you try accessing the method I just linked to you?
Cheers.
sohail.budhwani 的回复
于 2013 年 12 月 18 日 4:40下午
Thank you.
Greg DeWitt 的回复
于 2017 年 01 月 18 日 12:16下午
Hi Travis,
Wondering if you have added mpaa ratings (or certifications) to the discovery method? It seems this would be a highly desirable search attribute as its the first thing parents look at when searching movies. I'm trying to reduce the number of server fetches to get a current theater movie list with mpaa ratings (certifications) and would prefer not to have to do additional fetches to each listed item to get the mpaa rating (G, PG-13, R, etc.). This is the API discovery URI I'm trying to use.
https://api.themoviedb.org/3/discover/movie?api_key=****&language=en-US®ion=US&release_date.gte=2016-12-1&release_date.lte=2017-1-18&with_release_type=2|3
I tried an "append_to_response=releases" but doesn't appear to be supported with the discovery method.
If not, how do you suggest stream lining the search methods?
thanks
Greg
BTW - I found tMDB after Fandango turned off the Rotten Tomatoes API. The solution I was using was calling a single Rotten Tomatoes API to get all relevant data like this:
'http://api.rottentomatoes.com/api/public/v1.0/lists/dvds/current_releases.json
Travis Bell 的回复
于 2017 年 01 月 18 日 12:25下午
Hi Greg,
Unfortunately, no, there is no way to add that data to any of list methods (search, find, discover, etc...) All you can do at this time is make extra queries to fetch the data directly from the movie releases method.
Now that we support the
region
filter, it could make sense to have this data. Keep in min, region was only added a month ago and before then, it made no sense to default to any particular country as the data was mostly region agnostic.Greg DeWitt 的回复
于 2017 年 01 月 18 日 12:51下午
Thanks for the rapid response Travis. I'll look forward to great things with tMDB. It appears all the commercial movie providers are closing their API so I expect you will be getting a lot of activity going forward.
Greg