Jump to content

Macaw-Movies/Development/3rd party API/TMDB-json-responses

From KDE Community Wiki
Revision as of 12:36, 23 April 2015 by Ochurlaud (talk | contribs) (Created page with " == TMDb API Configuration == '''Request:''' <code>http://api<dot>themoviedb<dot>org/3/configuration?api_key=xxxx</code> {{Input|<syntaxhighlight lang="javascript" line> { ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TMDb API Configuration

Request: http://api<dot>themoviedb<dot>org/3/configuration?api_key=xxxx

{
  "images": {
    "base_url": "http://image.tmdb.org/t/p/",
    "secure_base_url": "https://image.tmdb.org/t/p/",
    "backdrop_sizes": [
      "w300",
      "w780",
      "w1280",
      "original"
    ],
    "logo_sizes": [
      "w45",
      "w92",
      "w154",
      "w185",
      "w300",
      "w500",
      "original"
    ],
    "poster_sizes": [
      "w92",
      "w154",
      "w185",
      "w342",
      "w500",
      "w780",
      "original"
    ],
    "profile_sizes": [
      "w45",
      "w185",
      "h632",
      "original"
    ],
    "still_sizes": [
      "w92",
      "w185",
      "w300",
      "original"
    ]
  },
  "change_keys": [
    "adult",
    "also_known_as",
    "alternative_titles",
    "biography",
    "birthday",
    "budget",
    "cast",
    "character_names",
    "crew",
    "deathday",
    "general",
    "genres",
    "homepage",
    "images",
    "imdb_id",
    "name",
    "original_title",
    "overview",
    "plot_keywords",
    "production_companies",
    "production_countries",
    "releases",
    "revenue",
    "runtime",
    "spoken_languages",
    "status",
    "tagline",
    "title",
    "trailers",
    "translations"
  ]
}

Movies by name

Request: http://api<dot>themoviedb<dot>org/3/search/movie?api_key=xxxx&query=auberge

{
    "page":1,
    "results": [
        {
            "adult":false,
            "backdrop_path":"/uK831vMfGfvZIAmam29IozN0XDe.jpg",
            "id":1555,
            "original_title":"L'Auberge Espagnole",
            "release_date":"2002-05-17",
            "poster_path":"/j8WacqRgpvsWU9oFSi0nfJf1pWt.jpg",
            "popularity":0.587795278800469,
            "title":"The Spanish Apartment",
            "video":false,
            "vote_average":6.8,
            "vote_count":54
        },
        {
            "adult":false,
            "backdrop_path":"/a4dQvZWZnHH6fD98Jsvu7sgYY2y.jpg",
            "id":28190,"original_title":"L'auberge rouge",
            "release_date":"1951-10-19",
            "poster_path":"/vwCQDXJfQm1ImFdSZD5hkj0dv4B.jpg",
            "popularity":0.000268089676477193,
            "title":"The Red Inn",
            "video":false,
            "vote_average":7.1,
            "vote_count":4
        }
    ],
    "total_pages":1,
    "total_results":2
}

Person

Request: http://api<dot>themoviedb<dot>org/3/person/{id}?api_key=xxxx

{
    "adult":false,
    "also_known_as": [
    ],
    "biography":"Audrey Justine Tautou is ....",
    "birthday":"1978-08-09",
    "deathday":"",
    "homepage":"",
    "id":2405,
    "imdb_id":"nm0851582",
    "name":"Audrey Tautou",
    "place_of_birth":"Beaumont, Puy-de-Dôme, France",
    "popularity":3.85032393540406,
    "profile_path":"/zVBnztf1vAJg6COSEyrQaUUr2PS.jpg"
}

Movies

Request: http://api<dot>themoviedb<dot>org/3/movie/{id}?api_key=xxxx&append_to_response=credits

{
    "adult":false,
    "backdrop_path":"/uK831vMfGfvZIAmam29IozN0XDe.jpg",
    "belongs_to_collection": {
            "id":239766,
            "name":"The Klapisch Trilogy",
            "poster_path":"/woD0gFHbZgwi9RpLL0uSQ56hnJA.jpg",
            "backdrop_path":"/3ahNzWAv20FlJ0i2wrrgKPOjQCT.jpg"
        },
    "budget":0,
    "genres":   [
        {
            "id":35,
            "name":"Comedy"
        },
        {
            "id":18,
            "name":"Drama"
        },
        {
            "id":10749,
            "name":"Romance"
        }
    ],
    "homepage":"",
    "id":1555,
    "imdb_id":"tt0283900",
    "original_language":"en",
    "original_title":"L'Auberge Espagnole",
    "overview":"A strait-laced French.... of love and friendship.",
    "popularity":0.407367422824576,
    "poster_path":"/j8WacqRgpvsWU9oFSi0nfJf1pWt.jpg",
    "production_companies": [
        {
            "name":"Mate Producciones S.A.",
            "id":732
        }
    ],
    "production_countries":  [
        {
            "iso_3166_1":"FR",
            "name":"France"
        }
    ],
    "release_date":"2002-05-17",
    "revenue":0,
    "runtime":122,
    "spoken_languages": [
        {
            "iso_639_1":"fr",
            "name":"Français"
        }
    ],
    "status":"Released",
    "tagline":"",
    "title":"The Spanish Apartment",
    "video":false,
    "vote_average":6.8,
    "vote_count":49,
    "credits":
        {
            "cast":  [
                {
                    "cast_id":2,
                    "character": "Xavier",
                    "credit_id":"52fe42fdc3a36847f8032179",
                    "id":17497,
                    "name":"Romain Duris",
                    "order":0,
                    "profile_path":"/buU0mFOX7PvSr50F6H8SrN71W08.jpg"
                },
                {
                    "cast_id":3,
                    "character":"Martine",
                    "credit_id":"52fe42fdc3a36847f803217d",
                    "id":2405,
                    "name":"Audrey Tautou",
                    "order":1,
                    "profile_path":"/zVBnztf1vAJg6COSEyrQaUUr2PS.jpg"
                },
                {
                    "cast_id":4,
                    "character":"Wendy",
                    "credit_id":"52fe42fdc3a36847f8032181",
                    "id":17521,
                    "name":"Kelly Reilly",
                    "order":2,
                    "profile_path":"/utp6IT1cLk80RgJzehBIWkSQ8FJ.jpg"
                }
            ],
            "crew": [
                {
                    "credit_id":"52fe42fdc3a36847f8032175",
                    "department":"Directing",
                    "id":17520,
                    "job":"Director",
                    "name":"Cédric Klapisch",
                    "profile_path":"/bUujgUI3PZ9qK54uGzndVp4CNRc.jpg"
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321a7",
                    "department":"Production",
                    "id":17530,
                    "job":"Producer",
                    "name":"Bruno Levy",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321ad",
                    "department":"Camera","id":17531,
                    "job":"Director of Photography",
                    "name":"Dominique Colin",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321b3",
                    "department":"Editing",
                    "id":17532,
                    "job":"Editor",
                    "name":"Francine Sandberg",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321b9",
                    "department":"Production",
                    "id":17533,
                    "job":"Casting",
                    "name":"Pep Armengol",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321bf",
                    "department":"Production",
                    "id":16336,
                    "job":"Casting",
                    "name":"Lucy Boulting",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321c5",
                    "department":"Production",
                    "id":17534,"job":"Casting",
                    "name":"Emmanuelle Gaborit",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321cb",
                    "department":"Art",
                    "id":17535,
                    "job":"Production Design",*
                    "name":"François Emmanuelli",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321d1",
                    "department":"Costume & Make-Up",
                    "id":17536,"job":"Costume Design",
                    "name":"Anne Schotte",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321d7",
                    "department":"Sound",
                    "id":17537,
                    "job":"Sound Designer",
                    "name":"Cyril Moisson",
                    "profile_path":null
                },
                {
                    "credit_id":"52fe42fdc3a36847f80321dd",
                    "department":"Writing",
                    "id":17520,
                    "job":"Screenplay",
                    "name":"Cédric Klapisch",
                    "profile_path":"/bUujgUI3PZ9qK54uGzndVp4CNRc.jpg" 
                }
            ]            
        }
    }
}