Rotten Tomatoes API Forums

Feature Requests

RSS Feed

Movie Trailers

    • yasir
    • Topic created 1 year ago

    Hi Can you guys return a specific youtube link in api for movie trailers so that i can utilize it in my iPhone app otherwise the url for trailer which returns from the api is not supported on iPhone because its a flash video. so can you please tell me how would i play the movie trailer in iPhone app. Thanks Yasir

    Message edited by yasir 10 months ago

  1. camrudnick10 months ago

    +1

  2. Aaron Roth10 months ago

    I agree. This would be super helpful.

  3. buddy10 months ago

    Hi,

    There is a trick I've came up with when I had same problem.

    YouTube has an API. Interestingly, you can use google's allintitle keyword so that every word in your query must appear in youtube video title. You can try it by yourself. Just go to youtube and try to search for, e.x. allintitle: Inception 2010 trailer. Then you just pick the first result. It's unlikely for movies to have same name and same year, so you can use it. In case of a mistake you could, for example, add a button and name it flag and then parse user's submission on your server and exclude a video that gets too much clicks.

    Example API query:

    http://gdata.youtube.com/feeds/api/videos?v=2&alt=json&max-results=1&q=allintitle:%20Inception%202010%20trailer&format=5&prettyprint=true

    This URL is pretty much self-explainable, we use 2nd version of google API, json format, 1 result in return; format 5 means that the video should be embedabble.

    Alternatively, you could use http://www.themoviedb.org/ API.

    I hope, it helps.

[ Page 1 of 1 ]