Soporte de The Movie Database

hi, i am from India and i want to list only Indian movies, please post some working sample , i have tried this https://api.themoviedb.org/3/discover/movie?api_key=xxx&region=IN&language=hi&sort_by=popularity.desc&release_date.gte=2017-08-01&with_release_type=3|2 but its not working

4 respuestas (en la página 1 de 1)

Jump to last post

Hi there,

We don't really have a way to query the "original country" of a film. The query you have above will search for all the movies that have a release data added in India, but obviously that not anything specific to it being an Indian movie.

I have an open ticket to look at adding a filter on the production country here. I feel like that's not always going to be 100% correct either. Although closer.

Another option could be to look at the with_original_language filter.

https://api.themoviedb.org/3/discover/movie?api_key=###&region=IN&language=hi-IN&release_date.gte=2017-08-01&with_release_type=3|2&with_original_language=hi

That returns much more valid results.

Thank you so much :)

@Navdeepkaur said:
Thank you so much :)

You are giving thanks for information given in 2018.
Recently added with_origin_country feature.

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&with_origin_country=IN  

You can also use the old solution.
Filtering by the Original Language is possible.
For example, in the case of India, the &with_original_language parameter can be added.
Example

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=popularity.desc&page=1&primary_release_year=2020&with_original_language=hi|kn|ml|ta|te

But beware of duplicity:
A Language with Multiple Countries

en  English 6 (AU+CA+GB+IE+NZ+US)
fr  French 2 (CA+FR)
de  German 3 (AT+CH+DE)
ms  Malay 2 (MY+SG)
zh  Mandarin 3 (CN+HK+TW)
pt  Portuguese 2 (BR+PT)
es  Spanish 2 (ES+MX)

A Country with Multiple Languages

CA  Canada 2 (en+fr)
CN  China 2 (cn+zh)
IN  India 5 (hi+kn+ml+ta+te)
NO  Norway 2 (nb+no)
ES  Spain 4 (ca+es+eu+gl)

There's actually two other filters that might be of interest, with_origin_country and with_title_translation. Feel free to give those a try as well.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión