The Movie Database Support

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 svar (på sida 1 av 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.

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus på sökrutan
p öppna profilmenyn
esc stäng ett öppet fönster
? öppna tangentbordsgenväg fönstret

På mediasidor

b gå tillbaka (eller till förälder när det är tillämpligt)
e gå till redigerings sidan

På tv-säsongssidor

(höger pil) gå till nästa säsong
(vänster pil) gå till den föregående säsongen

På tv-avsnittssidor

(höger pil) gå till nästa avsnitt
(vänster pil) gå till föregående avsnitt

På alla bildsidor

a öppna lägg till bild fönstret

På alla redigeringssidor

t öppna översättnings väljaren
ctrl+ s skicka förmulär

På diskussionssidor

n skapa ny diskussion
w växla sedd-status
p växla offentligt/privat
c växla stäng/öppna
a öppna aktivitet
r svara på diskussionen
l gå till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nästa sida
(vänster pil) föregående sida

Inställningar

Vill du betygsätta denna artikel eller lägga till den i en lista?

Logga in