Assistance de TMDB

Is anyone else regions not working for the Discover Movie Endpoint. I am getting the same results for every country I put in.

The Discover TV appears to still be fine.

15 réponses (sur la page 1 sur 1)

Jump to last post

@dbom009 said:
Regions not Working for Discover Movie End Point
Is anyone else regions not working for the Discover Movie Endpoint.
I am getting the same results for every country I put in.
The Discover TV appears to still be fine.

You need to give more details about the problem.

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

Hi @ticao2 ,

Thanks for checking in. It appears that the Discover Movie Endpoint is not factoring in the region. I have an application that has been live for a couple years. I do not adjust it often. I went to take a look and it is appearing that when you change the region in the Discover endpoint, sorted my most popular the results dont change.

You can check this yourself from the API docs by swapping out the regions. All of the results are the same with is either a freak coincidence or something may be wrong.

@dbom009 said:

Hi @ticao2 ,

Thanks for checking in. It appears that the Discover Movie Endpoint is not factoring in the region. I have an application that has been live for a couple years. I do not adjust it often. I went to take a look and it is appearing that when you change the region in the Discover endpoint, sorted my most popular the results dont change.

You can check this yourself from the API docs by swapping out the regions. All of the results are the same with is either a freak coincidence or something may be wrong.

It depends on which API Request you are talking about.
For example, if it is for Popularity, the region does not interfere.
Popularity is not a regional parameter.
That is why I asked you to post here which API Request you are making.

@dbom009 said:

No problem. This is the API Call.

https://api.themoviedb.org/3/discover/movie?api_key=[api]&with_genres=[genres]&with_watch_providers=[providers]&watch_region=[region]&sort_by=[sort]&without_genres=[without_genres]&primary_release_date.gte=[year_greater_than]&primary_release_date.lte=[year_less_than]&with_runtime.lte=[runtime_less_than]&with_runtime.gte=[runtime_greater_than]&page=[page]&with_origin_country=[country]&vote_average.gte=[rating_min]&vote_average.lte=[rating_max]&language=[language]&vote_count.gte=[vote_count.gte]&with_keywords=[keywords]

Maybe the problem is here:

&primary_release_date.gte=[year_greater_than]&primary_release_date.lte=[year_less_than]

For primary_release_date use a Date (2024-12-01 or YYYY-MM-DD) and not a Year.
To restrict to a single country use &release_date.gte= and &release_date.lte=

If you use the Try This here https://developer.themoviedb.org/reference/discover-movie and swap out the regions and then hit "Try This", none of the movies change.

Even if you leave everything else the same..

Maybe it just happens all of the movies are the same popularity at the moment but since I have been using it, it has never occurred this way to me. Will check back.

@dbom009 said:

This has been working fine for years. Those dates are actually empty on the calls that are being made. Did something change on this? I will give it a shot either way.

I have the /Discover/TV endpoint the same and it works totally fine.

https://api.themoviedb.org/3/discover/tv?api_key=[api]&with_genres=[genres]&with_watch_providers=[providers]&watch_region=[region]&sort_by=[sort]&without_genres=[without_genres]&air_date.gte=[year_greater_than]&air_date.lte=[year_less_than]&with_runtime.lte=[runtime_less_than]&with_runtime.gte=[runtime_greater_than]&page=[page]&vote_average.gte=[rating_min]&vote_average.lte=[rating_max]&with_origin_country=[country]&language=[language]&vote_count.gte=[vote_count.gte]&with_keywords=[keywords]

TV usually only has a worldwide premiere date.
There is no regional premiere date.

As for movies, you need to provide the API Request with the parameters that are being used.
Not a possible model.
But what is actually sent to the server.

I understand. Can you take a look at it here.

"If you use the Try This here https://developer.themoviedb.org/reference/discover-movie and swap out the regions and then hit "Try This", none of the movies change.

Even if you leave everything else the same.."

@dbom009 said:

I understand. Can you take a look at it here.

"If you use the Try This here https://developer.themoviedb.org/reference/discover-movie and swap out the regions and then hit "Try This", none of the movies change.

Even if you leave everything else the same.."

If no other parameters are specified, only region is specified, the response will be the same.

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&page=1&region=BR
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&page=1&region=FR

Thank you. So you are saying that some of the parameters need to be adjusted. Or the popularity is always the same for every region. Even if that region doesn't even have the ability to watch that specific movie, based on the available providers..

Like I said, this was working fine up until I checked today. It would swap between regions. Now it just shows the same.

@dbom009 said:

Thank you. So you are saying that some of the parameters need to be adjusted. Or the popularity is always the same for every region. Even if that region doesn't even have the ability to watch that specific movie, based on the available providers..

Like I said, this was working fine up until I checked today. It would swap between regions. Now it just shows the same.

The Popularity Ranking stored in the Database is Worldwide.
What you can filter, restrict, is only what premiered in a specific country.
To do this you need to specify region= and release_date=.
And if it is for a specific country in a streaming service you need:
watch_region use in conjunction with with_watch_monetization_types or with_watch_providers

Thank you for your time. I appreciate you looking into this. I do use watch_region and a user can decide to add in a watch provider or not. It appears that when there are no watch providers selected this filter no longer factors in the watch_region.

This used to do so as of a week or two ago and I guess it is just different now. The /discover/TV does work like that.

@dbom009 said:

Thank you for your time. I appreciate you looking into this. I do use watch_region and a user can decide to add in a watch provider or not. It appears that when there are no watch providers selected this filter no longer factors in the watch_region.

This used to do so as of a week or two ago and I guess it is just different now. The /discover/TV does work like that.

Nothing has changed since the beginning.
These instructions are in the DOCs.
See watch_region string
https://developer.themoviedb.org/reference/discover-movie
TV and Movies work differently.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion