Very recently, the Now Playing and Upcoming Movies movie lists are not retuning a list of movies when the language iso_639_1 code and region parameters are used in the request. For example:
https://api.themoviedb.org/3/movie/now_playing?api_key=****&page=1&language=en®ion=us
Used to return a valid list of movies, not anymore. This request works with the other movie lists like Top Rated.
Now, the request must be formatted in the following way:
https://api.themoviedb.org/3/movie/now_playing?api_key=****&page=1&language=en-US®ion=us
Or removing the region parameter also works with language=en.
I have not changed the request code in a while, but it suddenly stopped working how it had before.
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por ticao2 🇧🇷 pt-BR
el 4 de noviembre de 2023 a las 15:34
As far as I know Mandarin, zh, it is not an Official Language spoken in the United States.
Only the ISO code of Official Languages spoken in a given country can be coupled to the ISO code of a country.
Therefore this combination of it, & language = zh-us or & language = zh-US, does not exist.
The parameter &language= specifies in which language will be the response data, such as the title or overview.
In the case of your two examples of API requests, was the response data that worked, was in Mandarin or came in English?
See some examples of countries with more than one official language.
A Country with Multiple Languages
And some examples of official spoken languages in more than one country.
A Language with Multiple Countries
Contestado por robbie3999
el 4 de noviembre de 2023 a las 21:02
This seems to be the same problem
https://www.themoviedb.org/talk/654435679cc67b00ab45ad86
"now_playing" and "upcoming" returning no results when using "language" and "region" parameters.
Contestado por Travis Bell
el 4 de noviembre de 2023 a las 21:07
I’ll take a look at this problem this week. Something seems up but it looks to be quite inconsistent, as it does work sometimes but obviously isn’t other times.
Contestado por Gil2599
el 6 de noviembre de 2023 a las 19:15
Thank you, I appreciate it. It seems like removing the region parameter makes it work regardless of language parameter value.
Contestado por Travis Bell
el 7 de noviembre de 2023 a las 12:01
Can you give it a try now? I made a few changes that I suspect may have been causing this but I am not 100% sure.