Netflix API Forums

I Need Help!

RSS Feed

Best way to get multiple title ID's...

  1. Hi,
    I am trying to get the user ratings for about 20 movies at a time.
    Currently I am starting with a list of titles.
    I take these titles and get their netflix ID's. with a call such as: /catalog/titles/?term=#{title_name}
    So for 20 movies this is ~20 calls.
    I then take the list of ID's and get the user ratings with a call like: /users/#{session[:user_id]}/ratings/title?title_refs=#{comma seperated hrefs of movies}

    Is there a way to get user ratings directly from title names rather then ids?
    Does anyone know of a better way to do this?
    Thanks!

    Message edited by Thinking Ahead LLC 3 years ago

  2. priya3 years ago

    That would be the way to get the title IDs. One other way is if you had requested for the catalog, the title id is present in there as well. Currently, we don't support getting user ratings from the title names. I would like to mention that the average_rating is available as a part of the title details data that come back from search

  3. Michael Hart3 years ago

    Yes, we couldn't ever really return ratings by title name, since enough titles share the same name.

  4. Thinking Ahead LLC3 years ago

    Thanks both for the reply.

    How does one 'request the catalog'? Does that mean I would have all movie info on my end to reference?

  5. JR Conlin3 years ago

    http://developer.netflix.com/docs/REST_API_Reference#0_52696

    or http://api.netflix.com/catalog/titles

    Please note that this is a large XML document that is the wafer thin mint to your DOM manager's Mr. Creosote. (For those not familiar with Monty Python's Meaning of Life, let's just say it can do bad things.) You're STRONGLY encouraged to download the catalog via something like cURL or wget and processes it using XML SAX methods. It's also recommended to use gzip encoding (see the options for cURL or wget) to transfer the file much more efficiently.

    You can process and store the catalog locally, but be aware that it changes daily as new titles are added or other changes are made.

  6. royce3 years ago

    ... It has been suggested that the scene is one of the most repulsive in twentieth-century cinema...

    Wikipedia is your friend... http://en.wikipedia.org/wiki/Mr._Creosote

[ Page 1 of 1 ]