Aide : insérer informations sur le fim

 

A simple code snippet allows you to embed the omdb movie information into your website.

Examples

The subdomain in the url determines the language the movie information is displayed in (e.g. “en” in “en.omdb.org”):
  • www: The browser settings determine the language
  • de: German
  • en: English
  • fr: French
  • es: Spanish

Also the trailer (if present) is shown in the preferred language.

Iframe

The generell format is “https://www.omdb.org/movie/[omdb-id]/embed”

If the omdb id is unknwon, e.g. the IMDb id or the Wikidata id can be used. The format then is like “https://www.omdb.org/external/imdb/tt123456/embed” or “https://www.omdb.org/external/wikidata/Q123456789/embed”

www.omdb.org:

<iframe width="460" height="400" frameborder="0" 
  allowfullscreen="allowfullscreen" src="https://www.omdb.org/movie/185/embed">
</iframe>

de.omdb.org:

<iframe width="460" height="400" frameborder="0" 
  allowfullscreen="allowfullscreen" src="https://de.omdb.org/movie/185/embed">
</iframe>

Flash

www.omdb.org:

 <object height="420" width="440">
   <param name="movie" value="https://www.omdb.org/flash/movie_facts.swf?movie=185"></param>
   <param name="wmode" value="transparent"></param>
   <embed height="420" src="https://www.omdb.org/flash/movie_facts.swf?movie=185" 
          type="application/x-shockwave-flash" width="440" wmode="transparent">
   </embed>
 </object>

de.omdb.org: