Jump to content

Filtering Actors via API Help


iloveparks

Recommended Posts

iloveparks

Hello all - I am back again...

I'm struggling to filter people based on Person and PersonType.

I'm using /Users/{UserId}/Items with the following params:

recursive = true

ParentId = <id of library>

Fields = People

Person = Paul Lieberstein

PersonTypes = writer

Swagger says that if you specify PersonType along with Person, you will only receive filtered results for that specific PersonType, yet I continue to receive results containing the specified person, regardless of if they are an Actor/Writer/Director, etc.

As an example, Paul Lieberstein is a writer and actor in many episodes of The Office, but no matter how I run my query, the API returns all the episodes he is in.

Here he is as a GuestStar

1195809969_ScreenShot2022-05-18at11_00_13AM.png.256f83090fac84d17362c7bd3683b944.png

 

And again as a director:

127760994_ScreenShot2022-05-18at11_04_51AM.png.7d81d1fff270ec1ff74fe725a22a68d1.png

 

Any help is much appreciated!

Link to comment
Share on other sites

OK currently these fields are only used when querying People, not by filtering media based on people. It's something that can be added though.

Link to comment
Share on other sites

iloveparks

Ah ok, I see. Swagger makes it seem like these fields are valid for this endpoint.

 

Link to comment
Share on other sites

Yea it's just because we have one generalized request object for querying that is used in a lot of places and that causes swagger to think that.

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