API Series Lookup Doesn't return Series ID

I need to tell a series to refresh/rescan after post processing. The issue is that the only way I can tell a specific series to refresh/rescan is by using its internal sonarr ID (as far as i know), but I only have the tvdbid. So i’m using series-lookup to request series information using the tvdbid, but the series-lookup doesn’t return the interal sonarr ID for the series. So I have no way of calling for the refresh/rescan.

It also doesn’t contain the path information, which seems to only be retrievable via the series endpoint, which again, only takes the internal ID (as far as i know).

So how can I call a series endpoint or a series refresh/rescan with the tvdbid. Or how can i use the tvdbid to retrieve the internal series ID so that I can perform these calls?

Series lookup is a search of series, it doesn’t return additional information for existing series.

You can fetch the full series list from /api/series and find the relevant series in the results, not super efficient at the moment, but this will be improved in v3 of the API.

So you’re telling me the only way to retrieve the internal ID for a show is to pull the entire list of series and then look for the show with the matching tvdbid?

You’re not joking about the inefficiency. When will API v3 be ready?

It would be great if the series lookup returned the internal ID and path

No ETA, it’ll be when v3 is released.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.