Hello everyone,
this is the first time für me to use the TMDb. I am studying Mediasociology and looking for a database for one of my papers (not going to publish it). The Database should include all Western Movies from the year 2000 til today. I would need the filmtitle, the country of production and the release date. My developing skills are non-existing... that's the reason why I am asking you, to maybe help me out?
Kind regards and thank you very very much! Julia
Film of tv-serie niet gevonden? Log dan in om deze te creëren.
Want to rate or add this item to a list?
Not a member?
Reactie van ticao2 🇧🇷 pt-BR
op 17 februari 2021 om 7:32 AM
I'll see if I can build an API Request that meets your needs. Wait please.
Reactie van s4jjbind
op 17 februari 2021 om 8:09 AM
That would be awesome, thank you very much!
Reactie van ticao2 🇧🇷 pt-BR
op 17 februari 2021 om 8:13 AM
For your research the correct tool is Discover.
https://developers.themoviedb.org/3/discover/movie-discover
You need to use the parameters:
language = to choose the language of the answer.
sort_by = to define the order in which you want the items. There are options.
primary_release_date.gte = to specify the start date. YYYY-MM-DD format.
with_genres = to specify the gender. 37 is the Western gender ID.
For other genre IDs see here: https://developers.themoviedb.org/3/genres/get-movie-list
The country of origin is not informed.
But the Original Language is reported.
This should help in defining the country of origin.
If not, it will be necessary to request the complete data for each film
to obtain production_countries.
https://developers.themoviedb.org/3/movies/get-movie-details
The answer will come on pages with 20 items per page.
To see another page just change the number in the URL.
Here is an example of what you want:
total_pages 38
total_results 748
If you need more information, just ask right here. Good luck