Sprijin Bază de date filme (The Movie Database)

Hello Team, I am using your API for my movies review and rating app but on all movies and movie details page I am getting different data for few movies. Here we have applied a country check to get the release date country wise. Please let me know why I am getting different release date of following movie:

  1. The New Mutant,
  2. Once Upon a Time in Hollywood

Expecting a quick reply.

Thanks

4 răspunsuri (pe pagină 1 din 1)

Jump to last post

Could you provide exact URL of your API calls (without API key) and the dates that you think are wrong for both movies?

Hi, thanks for response.

Please review the below link:
https://api.themoviedb.org/3/movie/upcoming?api_key=***&language=en-US&page=1&region=US {"release_date": "2019-07-19"}
http://api.themoviedb.org/3/movie/420818?api_key=***&language=en-US&append_to_response=videos {"release_date": "2019-07-12"}

Thanks again.

See here:
https://www.themoviedb.org/movie/420818-the-lion-king/edit?active_nav_item=release_information

2019-07-12 - China = World Premiere (first release date in the world)
2019-07-19 - USA = USA premiere - (upcoming in &region=US)

If you use upcoming without setting the &region=US, will see that the date changes to the date of China.
https://api.themoviedb.org/3/movie/upcoming?api_key=[MY_KEY]&language=en-US&page=1

I see!

The first API method "movie/upcoming" lets you filter release dates with "&region=" parameter just to US, so the only release date you get really is 2019-07-19, which is the only release date available for US (see the method description here).

The second API method "movie" however is just generic method to get details of the movie, which isn't designed to let you filter regional data. So the release date this method returns is the world premiere, in this case in China on 2019-07-12 (see the method description here).

If you need to get specific regional release date with the "movie" method, you need to use "&append_to_response=release_date" parameter. That way you will get all 39 release dates for that movie and you can look for the one you need:

https://api.themoviedb.org/3/movie/420818?api_key=###&language=en-US&append_to_response=release_dates,videos

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Global

s focalizați bara de căutare
p deschideți meniul profilului
esc închide o fereastră deschisă
? deschideți fereastra de scurtături de la tastatură

Pe paginile media

b înapoi (sau la pornire atunci când este cazul)
e accesați pagina de editare

Pe paginile sezonului TV

(săgeată dreapta) mergeți la sezonul următor
(săgeată stânga) mergeți la sezonul precedent

Pe paginile episoadelor TV

(săgeată dreapta) mergeți la următorul episod
(săgeată stânga) mergeți la episodul anterior

Pe toate paginile de imagini

a deschideți fereastra pentru adăugarea imaginii

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimiteți formularul

Pe paginile de discuții

n creați o nouă discuție
w comutați stare de vizionare
p comutați public/privat
c comutați închidere/deschidere
a deschide activitatea
r răspuns la discuție
l mergeți la ultimul răspuns
ctrl+ enter trimiteți mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina anterioară

Setări

Doriți să evaluați sau să adăugați acest element într-o listă?

Autentificare