Search code examples
odatanetflix

Query Netflix using OData API to get Genre and for a specific Language


I am trying to use the Netflix OData API. I wanted to query all English Movies that are of the Thriller Genre.

To get the list of the English Movies I use the following URL: http://odata.netflix.com/Catalog/Languages('English')/Titles?

To get the list of Thrillers I use the following URL: http://odata.netflix.com/Catalog/Genres('Thrillers')/Titles?

How would one query all English Movies that fall under the Thriller Genre?


Solution

  • You'd need Any/All query for OData in order to be able to filter results based on properties of a related collection. Any/All is supported in v3 of the protocol but unfortunately Netflix service doesn't support Any/All queries.