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 replies (on page 1 of 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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login