thetvdb / v4-api

Founded in 2006, TheTVDB is one of the longest-running community-driven TV and Movie databases. With content metadata across hundreds of thousands of TV series and movies, TheTVDB powers many of the largest media centers in the market. Developers across the world build and rely upon TheTVDB's APIs to power their apps, utilities, and projects, generating millions of API calls per day. In our GitHub repository you will find all of the necessary support and v4 API documentation to make use of TheTVDB's metadata. Come and join us!
137 stars 13 forks source link

/search by IMDb #5

Closed emily-helwig closed 3 years ago

emily-helwig commented 3 years ago

allow users to search by IMDb ID in v4 API

emily-helwig commented 3 years ago

https://mediamorph.atlassian.net/browse/TVD-1741

brandan-schmitz commented 3 years ago

Looking to see if this is going to occur and the timeframe for it? I currently used the omdb API for dealing with IMDb, however recently that API has started not returning the correct titles for media and there has been no response from the developer or updates to their changlog since 2017. This is causing numerous issues with my application.

Being able to query media by its IMDb ID (Movies and TV episodes and shows at least) would be a great help as I am working to migrate my entire database (25,000+ entries) and application structure over to use the TVDB API.

SirSparkles commented 3 years ago

@brandan-schmitz - TMDB API has capability to do this and cross reference to TVDB Id: https://developers.themoviedb.org/3/find/find-by-id

It's not perfect, but there is a C# API to assist: https://github.com/LordMike/TMDbLib

brandan-schmitz commented 3 years ago

@SirSparkles I have seen that, however it does not solve my issue. I want to find TVDB IDs and listings for the movies. If you look at the chart on the TMDB find endpoint your linked, you will see they do not support finding or listing TVDB IDs for movies. Currently movies make up a big portion of what I am working with.

Your suggestion would be fine for TV shows to convert IMDB to TVDB by going through TMDB but as mentioned it does not cover a need for working with the movies.

An additional comment is that needing to use another API is counter productive to my goal of simplifying my application and reducing the number of systems it relies on. My whole issue has started from relying on too many APIs as is.

SirSparkles commented 3 years ago

It would work the same for nboth media types: find-by-id would map you from a IMDB_Id to a TMDB_ID. You can then call the get method based on TMDB_ID and get the TVDB_ID. (you need to do 2 calls)

The omision of search by TVDB Id would prevent you from going the opposite way though.

It does absolutely make you dependent on more APIs and you will find more data inconsistencies / ommisisons this way. So will not help you in that regard

Nealefelaen commented 3 years ago

Old API can search by IMDB, new API can't. Pretty serious issue. I'll probably end up removing my project's dependency on tvdb (or switch to scraping the website).

emily-helwig commented 3 years ago

Search by IMDb is about to be released for the v4 API. We will update here when that feature has been implemented.

emily-helwig commented 3 years ago

Hi there — this is now complete, and should be available. Please test and let me know how this functionality works.

paryan commented 3 years ago

@emily-helwig I don't see it in the swagger yet. Can you point me to it?

antheaezzell commented 3 years ago

@paryan will get you updated swagger documentation shortly!

emily-helwig commented 3 years ago

Glory, glory hallelujah — this had finally been implemented. You can find this documented under the search endpoint, here: https://thetvdb.github.io/v4-api/#/Search/getSearchResults