Popcorn & Politics LogoThe API

Popcorn and Politics | About | Presentation | API


Licenses

The Popcorn and Politics database uses data from film-releases.com, IMDb, The Federal Elections Comission and the New York Times. The data provided is subject to the Creative Creative Commons BY-NC-SA license, meaning you can use it unrestricted as long as it is not for commercial gain and you offer others the same rights offered to you here if you decide to remix and redistribute.


Document

Replace any text $between_dollar_signs$ with your input. Spaces should be translated to +s so The Dark Knight becomes The+Dark+Knight.


Implemented API

http://api.popcornandpolitics.com/movies ⇒ list of all movie titles in database

The data comes back as an XML document of the form:

<movies>
    <movie>
        <title>MOVIE_NAME</title>
    </movie>
    <movie>
        <title>MOVIE_NAME</title>
    </movie>
    ...
</movies>

http://api.popcornandpolitics.com/movies/$movie_name$ ⇒ full data on specific movie

The data comes back as an XML document of the form:

<movies>
  <movie name="MOVIE_NAME" studio="STUDIO" opening_date="OPENING_DATE">
    <producer name="PRODUCER_NAME" role="ROLE">
      <donation candidate="CANDIDATE" amount="AMOUNT" date="DONATION_DATE" party="PARTY" />
      ...
    </producer>
    ...
  </movie>
  ...
</movies>

Amounts are in USD. Dates are Unix timestamps. Political party is reported as either Democrat or Republican


Performance

Popcorn is still a bit slow when retruning the entire dataset. We'll start caching if need be.