omdbapi / OMDb-API

The Open Movie Database Bug Tracking
423 stars 21 forks source link

only need total seasons of tv show #193

Open immoIT opened 4 years ago

immoIT commented 4 years ago

how i get total seasons of tvshow without episodes name give me any example

tgreve15 commented 4 years ago

If you just search for the name of the series you get totalSeasons attribute at the end.

http://www.omdbapi.com/?t=The+Big+bang+theory

{"Title":"The Big Bang Theory","Year":"2007–2019","Rated":"TV-14","Released":"01 May 2006","Runtime":"22 min","Genre":"Comedy, Romance","Director":"N/A","Writer":"Chuck Lorre, Bill Prady","Actors":"Johnny Galecki, Jim Parsons, Kaley Cuoco, Simon Helberg","Plot":"A woman who moves into an apartment across the hall from two brilliant but socially awkward physicists shows them how little they know about life outside of the laboratory.","Language":"English, Hindi, Italian, Russian, Mandarin, Klingon","Country":"USA","Awards":"Won 1 Golden Globe. Another 73 wins & 249 nominations.","Poster":" https://m.media-amazon.com/images/M/MV5BY2FmZTY5YTktOWRlYy00NmIyLWE0ZmQtZDg2YjlmMzczZDZiXkEyXkFqcGdeQXVyNjg4NzAyOTA@._V1_SX300.jpg","Ratings":[{"Source":"Internet Movie Database","Value":"8.1/10"}],"Metascore":"N/A","imdbRating":"8.1","imdbVotes":"692,807","imdbID":"tt0898266","Type":"series" ,"totalSeasons":"12","Response":"True"}

I have found in a few instances though that when I knew more seasons had been released than it shows that I was still able to request the latter season and get some episode details. I gather this is manually maintained in wikidata and not calculated.

On Mon, Jul 6, 2020, 10:36 PM immoIT notifications@github.com wrote:

how i get total seasons of tvshow without episodes name give me any example

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/omdbapi/OMDb-API/issues/193, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZS5MUZF4QVFVYO6A252LLR2HAONANCNFSM4ORR7ZIA .