I need a movie API that returns Json

1

Lords all good?

Does anyone have a movie API that returns json if possible with the movie photo?

I'm doing some sample app with xamarin however the api that it uses in example n works over ..

    
asked by anonymous 09.12.2017 / 18:57

1 answer

3

The The Open Movie Database is a RESTful service that returns movie data from different sources, to make a data query can use like this:

  • http://www.omdbapi.com/?t=The+Prestige&apikey=<sua chave de acesso>

That will return something like:

{
    "Title": "The Prestige",
    "Year": "2006",
    "Rated": "PG-13",
    "Released": "20 Oct 2006",
    "Runtime": "130 min",
    "Genre": "Drama, Mystery, Sci-Fi",
    "Director": "Christopher Nolan",
    "Writer": "Jonathan Nolan (screenplay), Christopher Nolan (screenplay), Christopher Priest (novel)",
    "Actors": "Hugh Jackman, Christian Bale, Michael Caine, Piper Perabo",
    "Plot": "After a tragic accident two stage magicians engage in a battle to create the ultimate illusion whilst sacrificing everything they have to outwit the other.",
    "Language": "English",
    "Country": "USA, UK",
    "Awards": "Nominated for 2 Oscars. Another 5 wins & 36 nominations.",
    "Poster": "https://images-na.ssl-images-amazon.com/images/M/MV5BMjA4NDI0MTIxNF5BMl5BanBnXkFtZTYwNTM0MzY2._V1_SX300.jpg",
    "Ratings": [
        {
            "Source": "Internet Movie Database",
            "Value": "8.5/10"
        },
        {
            "Source": "Rotten Tomatoes",
            "Value": "75%"
        },
        {
            "Source": "Metacritic",
            "Value": "66/100"
        }
    ],
    "Metascore": "66",
    "imdbRating": "8.5",
    "imdbVotes": "951,885",
    "imdbID": "tt0482571",
    "Type": "movie",
    "DVD": "20 Feb 2007",
    "BoxOffice": "$53,100,000",
    "Production": "Buena Vista Pictures",
    "Website": "http://touchstone.movies.go.com/index.html?dlink=prestige",
    "Response": "True"
}

Then you can get the key Poster which in the example above will return something like https://images-na.ssl-images-amazon.com/images/M/MV5BMjA4NDI0MTIxNF5BMl5BanBnXkFtZTYwNTM0MzY2._V1_SX300.jpg

However it is possible to get directly through the URL like this:

  • http://img.omdbapi.com/?apikey=<sua chave de acesso>&...parametros_adicionais
09.12.2017 / 19:37