Soporte de The Movie Database

Hi,
I want to filter the TV shows by country, so I make this call that returns an exhaustive country list.

https://api.themoviedb.org/3/configuration/countries?api_key=xxxxxx&language=en-US

But it turns out that half of these countries return no TV show, so it's useless to display them.
Is there any API call which returns only the countries linked to one or more TV shows ?

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

Jump to last post

Hi @duddy67,

No, there is no way to get that list from the API. You can build it yourself though, by iterating through the list like you already are.

@travisbell
I manually checked the "empty" countries and put them in an array so that they are omitted when creating my country filter.
However, it's a tedious task and not reliable as the situation might change in the future.
Of course I could loop through the country list and make an api call with with_origin_country for each country, but it's very resource consuming.
So I think it would be worth having the possibility to fetch only the countries linked to TV shows.

¿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 debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
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