Jump to content

Query an Item by IMDB ID (or other provider)


Go to solution Solved by doctorniz,

Recommended Posts

doctorniz
Posted

I am trying to get details of a movie by its imdb id rather than name.

I believe I have to use the ItemLookupService "Items/RemoteSearch/Movies"

 

I provide the appropriate headers as it requires authentication by user.

I provide the body in the following format:

    {
        "SearchInfo": {
            "ProviderIds": {
                "Imdb": "ttsomevalidimdbid
            }
        }
    }

I get a server error in response 500.

 

How do I get this to work?

 

Thanks in advance

Posted

Are you trying to do an internet lookup, or to lookup something in your database?

doctorniz
Posted

Within my database. Let's assume I have the item and it has its metadata filled appropriately.

Posted

That method is an internet lookup. The regular items endpoint has a filter param for this. 

doctorniz
Posted

I am trying this now but I am not seeming to get this to work. It keeps returning zero items.

y

When I do a blank '/Items/' query with authorization headers, no params, no body, I only get 4 items (there's a lot more)

Tehse 4 items are not even file items but folders - Playlists, Movies, Series and Music.

 

Sorry if i'm beeing a newbie

  • Solution
doctorniz
Posted

My apologies. I needed to set 'Recursive' to True or set the proper parentfolderid.

 

Works now.

  • Like 1
Posted

Thanks for the feedback.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...