Jump to content

Query an Item by IMDB ID (or other provider)


doctorniz
Go to solution Solved by doctorniz,

Recommended Posts

doctorniz

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

doctorniz

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

doctorniz

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

Link to comment
Share on other sites

  • Solution
doctorniz

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

 

Works now.

  • Like 1
Link to comment
Share on other sites

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...