The Movie Database 支持

Hey guys,

I know a lot of you have been waiting for this so here it is, the TV API.

We currently have 17 methods available:

GET '/3/tv/:id'
GET '/3/tv/:id/credits'
GET '/3/tv/:id/external_ids'
GET '/3/tv/:id/images'
GET '/3/tv/:id/translations'
GET '/3/tv/:id/season/:season_number'
GET '/3/tv/:id/season/:season_number/credits'
GET '/3/tv/:id/season/:season_number/external_ids'
GET '/3/tv/:id/season/:season_number/images'
GET '/3/tv/:id/season/:season_number/episode/:episode_number'
GET '/3/tv/:id/season/:season_number/episode/:episode_number/credits'
GET '/3/tv/:id/season/:season_number/episode/:episode_number/external_ids'
GET '/3/tv/:id/season/:season_number/episode/:episode_number/images'
GET '/3/tv/on_the_air'
GET '/3/tv/top_rated'
GET '/3/tv/popular'
GET '/3/search/tv'
GET '/3/discover/tv'

And 3 new person credit methods to support TV and external IDs:

GET '/3/person/:id/movie_credits'
GET '/3/person/:id/tv_credits'
GET '/3/person/:id/combined_credits'
GET '/3/person/:id/external_ids'

And also new credit, find and network namespace:

GET '/3/credit/:id'
GET '/3/find/:id'
GET '/3/network/:id'

Functionality wise, they work almost identical to movies or the way you expect things to work on v3. The most notable thing missing right now is getting to the TV credits from the person side of things. I'll be working on that this week.

Understandably, this is a preview release and should be considered a risk. Some data could change depending on the feedback I get and if you roll this out publicly you are assuming that risk. I don't expect it to be like this for long, maybe a few weeks. I'll let everyone know when the design is final.

Now go ahead everyone, test!

Open Tickets

  • LH-298 - Create the method to list TV genres

Resolved Tickets

  • LH-296 - Link up TV credits on people
  • LH-292 - Create a tv season credits method
  • LH-300 - Ensure 404 items get a proper not found response
  • LH-302 - Rename sort_order to order to match the movie credit order field
  • LH-304 - Rename the TV character_name field to character to keep it consistent with movies
  • LH-309 - Create the /tv/popular method
  • LH-310 - Create the /tv/top-rated method
  • LH-294 - Create the /discover/tv method
  • LH-295 - Create the /network/:id method
  • LH-311 - Create a /tv/:id/translations method
  • LH-301 - Search for TvSeries by an external id
  • LH-312 - Create the /tv/on_the_air method
  • LH-313 - Create the /tv/today method
  • LH-297 - Hook up the change methods to TV

86 回复(第 2 页,共 6 页)

Jump to last post

上一页下一页末页

it would be great if we could access to the popular tv shows, top rated and "now playing" like in the movie methods

Indeed! Here's the tickets, LH-309 and LH-310.

I presume that the current /credit redirects to /movie_credits is this correct?

That is correct.

TV discover, top rated and popular methods are now live.

The discover method is pretty cool. Every wanted to see all of the HBO shows we have, ordered by highest rated?

http://api.themoviedb.org/3/discover/tv?api_key=###&sort_by=vote_average.desc&with_networks=49

Or how about what FX shows have premiered in since 2010?

http://api.themoviedb.org/3/discover/tv?api_key=###&sort_by=vote_average.desc&with_networks=88&first_air_date.gte=2010-01-01

Or what about the best comedies with a rating of 7.5 and higher ordered by popularity?

http://api.themoviedb.org/3/discover/tv?api_key=###&sort_by=popularity.desc&with_genres=35&vote_average.gte=7.5

Cool.

Great @Travis!

I will try these new methods asap ;)

Thanks for your work!

Nice. Just added support in Yammm. Thanks Travis

Hi again,

It would be fine also if exists any method for getting all the seasons and episodes for a tv show. Now you can obtain this data by calling 2 methods, it would be great if it you could obtain this info in only one api call ;)

Again, thank you very much for your work.

Best,

It would be fine also if exists any method for getting all the seasons and episodes for a tv show

I'm pretty sure sure that will ever exist. Some shows are just too big, like The Daily Show for example. You're talking about thousands of items in a single call. There is just no way to make that performant.

Hi guys,

thumbs up for the good work you do. Suggestion from my side would be to also provide /tv/latest endpoint. It would be really usefull for us.

Best, matej

Hello again,

Just two more suggestions:

  • Provide a tv/related_shows (just like in movies).
  • Improve the localized search for tv shows, I'm from Spain and if I search for "Juego de tronos" (the spanish name for "Game of Thrones") I get no results... For movies works as expected.

Thanks again ;) Best,

Suggestion from my side would be to also provide /tv/latest endpoint

Yup, there will be a /latest method for sure. Here's the ticket.

Provide a tv/related_shows

Definitely possible but we rely on plot keywords for a lot of that. As soon as we have more data we can more seriously look at that.

Improve the localized search for tv shows

We're only as good as the data that is entered. I don't see either a Spanish translation added nor an alternative title added for Spain. Feel free to add those and search will start working like you expect.

Hey I've been implementing the API for a .NET wrapper I contribute on (https://github.com/LordMike/TMDbLib) and noticed a small discrepancy compared to previous search results. With other searches when you enter a page number that doesn't exist the total pages and total results columns are still populated, yet for the new tv show search that doesn't seem to be the case.

A side note, I find it quite strange that when for example you get a tv show by id it lists basic information about the related seasons. Yet it doesn't seem to populate the id for those objects. In most use cases this shouldn't be an issue since you just use the season number. But I do consider the id of an object to be basic information and expected it to be present.

Other than that great work! I'll let you know if I come across anything else while implementing the remaining new methods.

and noticed a small discrepancy compared to previous search results. With other searches when you enter a page number that doesn't exist the total pages and total results columns are still populated, yet for the new tv show search that doesn't seem to be the case.

I will look into this and see what the difference is.

Yet it doesn't seem to populate the id for those objects.

There is no publicly queryable method to get a season or episode by an ID. It is assumed that the season and episode number pair is as unique as an id. Ie. Breaking Bad, season 1 episode 1 will always point to the correct object and is impossible to duplicate. Therefore, supplying a separate ID for this a waste.

Thanks!

There is no publicly queryable method to get a season or episode by an ID. It is assumed that the season and episode number pair is as unique as an id. Ie. Breaking Bad, season 1 episode 1 will always point to the correct object and is impossible to duplicate. Therefore, supplying a separate ID for this a waste.

I completely agree but then why supply it in the details at all?

PS any plans to extend the new credit system over to movies? I realize this would be a breaking change but it would probably be helpful in the long run to have a consistent system

Hi Zippie,

There are 2 main reasons that I provide it along side the episode and season responses:

  1. Episodes are still deletable and it was my opinion that it would be useful to be able to track if the episode was replaced. Especially if someone mucked around with the data and or images.
  2. When it comes to the change log API, it's likely going to be easiest to use the ID with those queries. I haven't started these yet but it was my thinking that getting a hold of the actual records ID for the change history is about the only way that could ever work. Especially if like I said, someone replaces an episode.

With regards to the new credit system, yes there is plans and I should be able to roll it out without causing any breaking change HOWEVER, it requires a massive DB migration and this is not planned at this time. Meaning, it's on my list to do "one day" but not any time soon.

Thanks!

Hio, thanks for the quick replies.

I did find another small bug, this time in the tv/top_rated returns. When you get page one it states that there are a total of 3 pages with a total of 54 entries. However when you retrieve page 2 it states that there are a total of 3 pages but 55 entries.

Again nothing major but just a bit strange :).

That would be caused from different pages getting cached at different times. Since top rated only pulls TV shows with 2 or more votes right now this will be something that happens until we have a lot more ratings. It's the single biggest missing data right now and there's no way around it until we get more people using the TV data. And as we get more ratings I increase that limit so we get more accurate results. With so few ratings for TV shows right now it's set really low.

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区