我不確定如果我得到這個正確的,但我也爲我的項目使用TMDB API。要獲得數字版本,請將release_dates
添加到網址。所以在我的情況下,它會是這樣的:
https://api.themoviedb.org/3/movie/271110?api_key= ** f7039633f2065942cd8a28d7cadad4 & append_to_response = release_dates &回調= angular.callbacks._1
通知append_to_response=release_dates
這將返回JSON像這樣:
{
"adult":false,
"backdrop_path":"/rqAHkvXldb9tHlnbQDwOzRi0yVD.jpg",
"belongs_to_collection":{
"id":131295,
"name":"Captain America Collection",
"poster_path":"/2tOgiY533JSFp7OrVlkeRJvsZpI.jpg",
"backdrop_path":"/nZSYqitBkAvmoq5IrsGsSWuhSC8.jpg"
},
"budget":250000000,
"genres":[
{
"id":28,
"name":"Action"
},
{
"id":53,
"name":"Thriller"
},
{
"id":878,
"name":"Science Fiction"
}
],
"homepage":"http://marvel.com/captainamericapremiere",
"id":271110,
"imdb_id":"tt3498820",
"original_language":"en",
"original_title":"Captain America: Civil War",
"overview":"Following the events of Age of Ultron, the collective governments of the world pass an act designed to regulate all superhuman activity. This polarizes opinion amongst the Avengers, causing two factions to side with Iron Man or Captain America, which causes an epic battle between former allies.",
"popularity":59.186478,
"poster_path":"/5N20rQURev5CNDcMjHVUZhpoCNC.jpg",
"production_companies":[
{
"name":"Marvel Studios",
"id":420
}
],
"production_countries":[
{
"iso_3166_1":"US",
"name":"United States of America"
}
],
"release_date":"2016-04-27",
"revenue":1152000000,
"runtime":146,
"spoken_languages":[
{
"iso_639_1":"ro",
"name":"Română"
},
{
"iso_639_1":"en",
"name":"English"
},
{
"iso_639_1":"de",
"name":"Deutsch"
},
{
"iso_639_1":"ru",
"name":"Pусский"
}
],
"status":"Released",
"tagline":"Divided We Fall",
"title":"Captain America: Civil War",
"video":false,
"vote_average":6.9,
"vote_count":2740,
"release_dates":{
"results":[
{
"iso_3166_1":"BR",
"release_dates":[
{
"certification":"12",
"iso_639_1":"pt",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IN",
"release_dates":[
{
"certification":"UA",
"iso_639_1":"en",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"TH",
"release_dates":[
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-04-27T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"GB",
"release_dates":[
{
"certification":"12A",
"iso_639_1":"en",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"PH",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-04T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IE",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"KZ",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"RO",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"AR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"GR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"ES",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"CA",
"release_dates":[
{
"certification":"PG",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"SG",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"PT",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"TR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"DK",
"release_dates":[
{
"certification":"11",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"BY",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"CL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"FI",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"CH",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-27T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"FR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"Paris",
"release_date":"2016-04-18T00:00:00.000Z",
"type":1
},
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-27T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IT",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-04T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"RU",
"release_dates":[
{
"certification":"16+",
"iso_639_1":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":1
},
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
},
{
"certification":"",
"iso_639_1":"ru",
"note":"BD-50, DVD-9",
"release_date":"2016-08-02T00:00:00.000Z",
"type":5
}
]
},
{
"iso_3166_1":"NO",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"SE",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"HU",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-12T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"EE",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"NZ",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"MX",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"BG",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"DE",
"release_dates":[
{
"certification":"12",
"iso_639_1":"",
"note":"Berlin",
"release_date":"2016-04-21T00:00:00.000Z",
"type":1
},
{
"certification":"12",
"iso_639_1":"de",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"AU",
"release_dates":[
{
"certification":"M",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"PL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"AZ",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"NL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"MY",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"JP",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"US",
"release_dates":[
{
"certification":"PG-13",
"iso_639_1":"en",
"note":"Los Angeles, California",
"release_date":"2016-04-12T00:00:00.000Z",
"type":1
},
{
"certification":"PG-13",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
},
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-09-02T00:00:00.000Z",
"type":4
},
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-09-13T00:00:00.000Z",
"type":5
}
]
}
]
}
}
There'在這裏有很多數據,但我們正在尋找類型:4. Digital
。因此,期待通過它顯示的數據:
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-09-02T00:00:00.000Z",
"type":4
},
所以看起來在這種情況下,發佈日期是2016-09-02
這似乎我錯了。所以,也許改變API(如果你有acces),因爲blu-ray.com說它正在爲Sep 13, 2016 (5 Days)
或者我做錯了:)
//編輯。我只是改變了數字發佈日期,所以它與亞馬遜相同:)。因此,在短期,你需要做的是通過附加release_dates創建的網址:
標準信息:
271110
那麼你的API密鑰:
https://api.themoviedb.org/3/movie/
然後電影的id ?API_KEY = ** f7039633f2065942cd8a28d7cadad4
然後append_to
& append_to_response = release_dates
有趣的是,你可以(現在)追加多個「東西」!而不是做5個不同的電話。所以你可以做這樣的事情:
https://api.themoviedb.org/3/movie/271110?api_key=**f7039633f2065942cd8a28d7cadad4&append_to_response=credits,images,videos,release_dates
這也增加了演員,圖像和視頻的json。這麼棒!