- 访问 url:
https://api-m.mtime.cn/Showtime/HotCitiesByCinema.api
- 将它写在本地,由于 json 较长,我就将它另存为了一个 md 文件,戳我进链接
ps:Time 时光 App 是本地存了一份,但同时每次启动 app 又会访问 url,同时将数据重新写入文件
url:`https://api-m.mtime.cn/PageSubArea/HotPlayMovies.api?locationId=?`示例 url:https://api-m.mtime.cn/PageSubArea/HotPlayMovies.api?locationId=290
说明:locationId
就是前言中所说的 locationId
json 示例:
{
"count": 3,
"movies": [
{
"actorName1": "吴亦凡",
"actorName2": "林更新",
"btnText": "",
"commonSpecial": "唐僧\"重色轻友\"与悟空反目",
"directorName": "徐克",
"img": "http://img5.mtime.cn/mt/2017/01/27/114649.37790398_1280X720X2.jpg",
"is3D": true,
"isDMAX": true,
"isFilter": false,
"isHot": true,
"isIMAX": false,
"isIMAX3D": true,
"isNew": false,
"length": 108,
"movieId": 208325,
"nearestShowtime": {
"isTicket": true,
"nearestCinemaCount": 152,
"nearestShowDay": 1486022400,
"nearestShowtimeCount": 1797
},
"rDay": 28,
"rMonth": 1,
"rYear": 2017,
"ratingFinal": 6.7,
"titleCn": "西游伏妖篇",
"titleEn": "Journey to the West: Demon Chapter",
"type": "奇幻 / 动作 / 喜剧",
"wantedCount": 2631
},
{
"actorName1": "成龙",
"actorName2": "李治廷",
"btnText": "",
"commonSpecial": "大哥携“小鲜肉”全球寻宝石",
"directorName": "唐季礼",
"img": "http://img5.mtime.cn/mt/2017/01/13/191421.14582165_1280X720X2.jpg",
"is3D": false,
"isDMAX": false,
"isFilter": false,
"isHot": true,
"isIMAX": false,
"isIMAX3D": false,
"isNew": false,
"length": 108,
"movieId": 217896,
"nearestShowtime": {
"isTicket": true,
"nearestCinemaCount": 152,
"nearestShowDay": 1486022400,
"nearestShowtimeCount": 1767
},
"rDay": 28,
"rMonth": 1,
"rYear": 2017,
"ratingFinal": 6.2,
"titleCn": "功夫瑜伽",
"titleEn": "Kung-Fu Yoga",
"type": "动作 / 冒险 / 喜剧",
"wantedCount": 1130
}
],
"totalCinemaCount": 188,
"totalComingMovie": 38,
"totalHotMovie": 29
}
解析:
count
:movies
链表的长度movies
:热映电影信息actorName1
:主演1actorName2
:主演2commenSpecial
:一句话总结该电影directorName
:导演名img
:图片链接is3D
:是否是 3D 电影isDMAX
:是否是 DMAX 电影isFilter
:???isHot
:是否是热映电影isIMAX
:是否是 IMAX 电影isIMAX3D
:是否是 IMAX3D 电影isNew
:???length
:影片时长movieId
:影片 id,需要提供给影片详情isTicket
:是否有票nearestCinemaCount
:今日上映该电影的影院数量rDay
、rMonth
、rYear
:影片上映年月日ratingFinal
:评分titleCn
:影片中文名titleEn
:影片英文名type
:影片类型wantedCount
:多少人想看totalCinemacount
:同城影院数量totalComingMovie
:即将上映影片数量totalHotMovie
:实际正在售票电影数量
url:https://api-m.mtime.cn/Showtime/LocationMovies.api?locationId=?
示例 url:https://api-m.mtime.cn/Showtime/LocationMovies.api?locationId=290
json 示例:
{
"bImg": "http://img5.mtime.cn/mg/2017/01/25/172446.45527982.jpg",
"date": "2017-02-02",
"lid": 20,
"ms": [
{
"NearestCinemaCount": 152,
"NearestDay": 1486022400,
"NearestShowtimeCount": 1767,
"aN1": "成龙",
"aN2": "李治廷",
"cC": 152,
"commonSpecial": "大哥携“小鲜肉”全球寻宝石",
"d": "108",
"dN": "唐季礼",
"def": 0,
"id": 217896,
"img": "http://img5.mtime.cn/mt/2017/01/13/191421.14582165_1280X720X2.jpg",
"is3D": false,
"isDMAX": false,
"isFilter": false,
"isHot": true,
"isIMAX": false,
"isIMAX3D": false,
"isNew": false,
"isTicket": true,
"m": "",
"movieType": "动作 / 冒险 / 喜剧",
"p": [
"动作冒险喜剧"
],
"r": 6.2,
"rc": 0,
"rd": "20170128",
"rsC": 0,
"sC": 3003,
"t": "功夫瑜伽",
"tCn": "功夫瑜伽",
"tEn": "Kung-Fu Yoga",
"ua": -1,
"versions": [],
"wantedCount": 1132
},
{
"NearestCinemaCount": 151,
"NearestDay": 1486022400,
"NearestShowtimeCount": 1112,
"aN1": "邓超",
"aN2": "彭于晏",
"cC": 151,
"commonSpecial": "邓超彭于晏一起街头热血",
"d": "102",
"dN": "韩寒",
"def": 0,
"id": 237054,
"img": "http://img5.mtime.cn/mt/2017/01/12/181512.62044353_1280X720X2.jpg",
"is3D": false,
"isDMAX": false,
"isFilter": false,
"isHot": true,
"isIMAX": false,
"isIMAX3D": false,
"isNew": false,
"isTicket": true,
"m": "",
"movieType": "喜剧",
"p": [
"喜剧"
],
"r": 6.5,
"rc": 0,
"rd": "20170128",
"rsC": 0,
"sC": 1928,
"t": "乘风破浪",
"tCn": "乘风破浪",
"tEn": "Duckweed",
"ua": -1,
"versions": [
{
"enum": 1,
"version": "2D"
}
],
"wantedCount": 2802
}
],
"newActivitiesTime": 0,
"totalComingMovie": 39,
"voucherMsg": ""
}
解析:
bImg
:???date
:日期lid
:ms
数量 x 10?ms
:具体正在热映电影信息aN1
:演员1aN2
:演员2cC
:今日上映该电影的影院数量,同NearestCinemaCount
d
:影片时长dN
:导演def
:???id
:影片 id,需要提供给影片详情r
:影片评分rd
:影片上映时间sC
:???t
:影片名tCn
:影片中文名tEn
:影片英文名versions
:影片观影类型,如3D
、IMAX
等
示例 url:https://api-m.mtime.cn/Movie/MovieComingNew.api?locationId=290
json 示例:
{
"attention": [
{
"actor1": "范·迪塞尔",
"actor2": "露比·罗丝",
"director": "D·J·卡卢索",
"id": 125805,
"image": "http://img5.mtime.cn/mt/2017/01/05/105822.16893974_1280X720X2.jpg",
"isFilter": false,
"isTicket": true,
"isVideo": true,
"locationName": "美国",
"rDay": 10,
"rMonth": 2,
"rYear": 2017,
"releaseDate": "2月10日上映",
"title": "极限特工:终极回归",
"type": "动作 / 冒险 / 惊悚",
"videoCount": 3,
"videos": [
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2017/01/05/105124.83548335.jpg",
"length": 30,
"title": "极限特工:终极回归 中国版预告片",
"url": "http://vf.test.com/Video/2017/01/05/mp4/170105105137886980.mp4",
"videoId": 64107
},
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2016/11/02/082857.54680705.jpg",
"length": 139,
"title": "极限特工:终极回归 中文版终极预告片",
"url": "http://vf.test.com/Video/2016/11/02/mp4/161102083059175649.mp4",
"videoId": 63180
},
{
"hightUrl": "",
"image": "http://img31.mtime.cn/mg/2016/08/05/122731.94053608.jpg",
"length": 91,
"title": "极限特工:终极回归 中文版预告片",
"url": "http://vf.test.com/Video/2016/08/05/mp4/160805122727094193.mp4",
"videoId": 61933
}
],
"wantedCount": 1359
},
{
"actor1": "杜天皓",
"actor2": "闫妮",
"director": "黄美娜",
"id": 238265,
"image": "http://img5.mtime.cn/mt/2017/01/06/103911.39785227_1280X720X2.jpg",
"isFilter": false,
"isTicket": false,
"isVideo": true,
"locationName": "中国",
"rDay": 10,
"rMonth": 3,
"rYear": 2017,
"releaseDate": "3月10日上映",
"title": "美容针",
"type": "爱情 / 剧情",
"videoCount": 1,
"videos": [
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2017/01/09/134440.69569620.jpg",
"length": 77,
"title": "美容针 先导预告片",
"url": "http://vf.test.com/Video/2017/01/09/mp4/170109134511076173.mp4",
"videoId": 64162
}
],
"wantedCount": 13
}
],
"moviecomings": [
{
"actor1": "贾乃亮",
"actor2": "马丽",
"director": "郭大雷",
"id": 230769,
"image": "http://img5.mtime.cn/mt/2017/01/16/104630.29361196_1280X720X2.jpg",
"isFilter": false,
"isTicket": true,
"isVideo": true,
"locationName": "中国",
"rDay": 3,
"rMonth": 2,
"rYear": 2017,
"releaseDate": "2月3日上映",
"title": "东北往事之破马张飞",
"type": "喜剧",
"videoCount": 3,
"videos": [
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2016/11/01/211216.75603152.jpg",
"length": 58,
"title": "东北往事之破马张飞 先行版预告片",
"url": "http://vf.test.com/Video/2016/11/01/mp4/161101211204394445.mp4",
"videoId": 63176
},
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2016/12/06/215919.97317974.jpg",
"length": 89,
"title": "东北往事之破马张飞 剧情版预告片",
"url": "http://vf.test.com/Video/2016/12/06/mp4/161206215730098083.mp4",
"videoId": 63664
},
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2016/12/29/153033.28636603.jpg",
"length": 53,
"title": "东北往事之破马张飞 彩蛋之为金士杰庆生",
"url": "http://vf.test.com/Video/2016/12/29/mp4/161229153012984378.mp4",
"videoId": 64028
}
],
"wantedCount": 1677
},
{
"actor1": "山新",
"actor2": "姚雷",
"director": "邓伟锋",
"id": 233227,
"image": "http://img5.mtime.cn/mt/2017/01/17/173909.17348918_1280X720X2.jpg",
"isFilter": false,
"isTicket": true,
"isVideo": true,
"locationName": "中国",
"rDay": 5,
"rMonth": 2,
"rYear": 2017,
"releaseDate": "2月5日上映",
"title": "萤火奇兵",
"type": "动画 / 奇幻 / 冒险",
"videoCount": 3,
"videos": [
{
"hightUrl": "",
"image": "http://img31.mtime.cn/mg/2016/06/29/142348.49429265.jpg",
"length": 84,
"title": "萤火奇兵 预告片",
"url": "http://vf.test.com/Video/2016/06/29/mp4/160629142150295349.mp4",
"videoId": 61192
},
{
"hightUrl": "",
"image": "http://img31.mtime.cn/mg/2016/07/20/114328.48612333.jpg",
"length": 45,
"title": "萤火奇兵 先行版预告片",
"url": "http://vf.test.com/Video/2016/07/20/mp4/160720114306954253.mp4",
"videoId": 61554
},
{
"hightUrl": "",
"image": "http://img5.mtime.cn/mg/2016/09/14/132405.13320533.jpg",
"length": 93,
"title": "预告片2",
"url": "http://vf.test.com/Video/2016/09/14/mp4/160914132505167172.mp4",
"videoId": 62519
}
],
"wantedCount": 179
}
]
}
解析:
首先大体分为两个部分 ——
attention
:最受关注moviecomings
:即将上映
接下来就是里面具体的字段:
videos
:预告片,不过我们无权访问
url:https://ticket-api-m.mtime.cn/movie/detail.api?locationId=?&movieId=?
解析:其中 locationId
就不做多解释了,movieId
可以分别从正在售票、正在热映、即将上映对应 json 的 movieId
、id
、id
字段中获取
示例 url:https://ticket-api-m.mtime.cn/movie/detail.api?locationId=290&movieId=125805
json 示例:
{
"code": "1",
"data": {
"advertisement": {
"advList": [
{
"advTag": "",
"endDate": 1514649599,
"isHorizontalScreen": false,
"isOpenH5": false,
"startDate": 1451577600,
"tag": "西游伏妖篇(票务)",
"type": "203",
"typeName": "影片详情页banner2",
"url": "https://static4da.mtime.cn/feature/mobile/banner/2017/0122/210.html"
}
],
"count": 1,
"error": "",
"success": true
},
"basic": {
"actors": [
{
"actorId": 913378,
"img": "http://img31.mtime.cn/ph/2014/09/01/170748.64755972_1280X720X2.jpg",
"name": "范·迪塞尔",
"nameEn": "Vin Diesel",
"roleImg": "http://img5.mtime.cn/mg/2017/01/05/162613.85098094.jpg",
"roleName": "Xander Cage"
}
],
"award": {
"awardList": [],
"totalNominateAward": 0,
"totalWinAward": 0
},
"commentSpecial": "",
"community": {},
"director": {
"directorId": 903521,
"img": "http://img31.mtime.cn/ph/2016/09/02/144150.57291017_1280X720X2.jpg",
"name": "D·J·卡卢索",
"nameEn": "D.J. Caruso"
},
"festivals": [],
"hotRanking": 5,
"img": "http://img5.mtime.cn/mt/2017/01/05/105822.16893974_1280X720X2.jpg",
"is3D": true,
"isDMAX": true,
"isEggHunt": false,
"isFilter": false,
"isIMAX": false,
"isIMAX3D": true,
"isTicket": true,
"message": "该操作将清除您对该片的评分!是否确认?",
"mins": "107分钟",
"movieId": 125805,
"name": "极限特工:终极回归",
"nameEn": "xXx: The Return of Xander Cage",
"overallRating": -1,
"personCount": 123,
"quizGame": {},
"releaseArea": "中国",
"releaseDate": "20170210",
"showCinemaCount": 27,
"showDay": 1486627200,
"showtimeCount": 14,
"stageImg": {
"count": 124,
"list": [
{
"imgId": 7180661,
"imgUrl": "http://img31.mtime.cn/pi/2016/04/06/163644.66635601_1280X720X2.jpg"
},
{
"imgId": 7301637,
"imgUrl": "http://img5.mtime.cn/pi/2016/11/02/174909.42908242_1280X720X2.jpg"
},
{
"imgId": 7203067,
"imgUrl": "http://img31.mtime.cn/pi/2016/04/07/160807.83892239_1280X720X2.jpg"
},
{
"imgId": 7301211,
"imgUrl": "http://img5.mtime.cn/pi/2016/11/01/091327.68190533_1280X720X2.jpg"
}
]
},
"story": "《极限特工3》将故事聚焦在由范·迪塞尔带头的的特工小队和以甄子丹为首的反派组织之间的对决。在这部作品中,迪塞尔饰演的特工凯奇不再是孤胆英雄,他将与一群出色的伙伴共同作战:塞缪尔·杰克逊饰演的国安局特工,印度女星迪皮卡·帕度柯妮饰演的与凯奇颇有渊源的女猎人,凭借《吸血鬼日记》走红的妮娜·杜波夫扮演的技术专家,《女子监狱》女星露比·罗丝饰演的狙击手,中国当红偶像演员吴亦凡饰演的特工Nicks。",
"style": {
"isLeadPage": 0,
"leadImg": "https://img2.mtime.cn/mg/.jpg",
"leadUrl": ""
},
"totalNominateAward": 0,
"totalWinAward": 0,
"type": [
"动作",
"冒险",
"惊悚"
],
"url": "https://movie.mtime.com/125805/",
"video": {
"count": 18,
"hightUrl": "https://vfx.mtime.cn/Video/2017/01/05/mp4/170105105137886980.mp4",
"img": "http://img5.mtime.cn/mg/2017/01/05/105124.57142324_235X132X4.jpg",
"title": "极限特工:终极回归 中国版预告片",
"url": "https://vfx.mtime.cn/Video/2017/01/05/mp4/170105105137886980_480.mp4",
"videoId": 64107
}
},
"boxOffice": {
"movieId": 125805,
"ranking": 41,
"todayBox": 0,
"todayBoxDes": "",
"todayBoxDesUnit": "",
"totalBox": 0,
"totalBoxDes": "",
"totalBoxUnit": ""
},
"live": {},
"related": {
"goodsCount": 0,
"goodsList": [],
"relateId": 0,
"relatedUrl": "https://mall-wv.mtime.cn/#!/commerce/list/",
"type": 0
}
},
"msg": "成功",
"showMsg": ""
}
解析:其中advertisement
、related
是无关字段,不做解析
basic
:具体内容actors
:演员信息actorId
:演员 idimg
:演员照片name
:演员名nameEn
:演员英文名roleImg
:影片中饰演角色图片roleName
:影片中饰演角色名字award
:获得的奖项?commentSpecial
:一句话总结该电影community
:???director
:导演信息hotRanking
:热映排行榜img
:剧照releaseArea
:上映地区stageImg
:影片剧照story
:剧情简介video
:预告片boxOffice
:专业解读内容ranking
:票房排名todayBox
:今日实时票房量todayBoxDes
和todayBoxDesUnit
:今日实时票房量totalBox
和totalBoxUnit
:累计票房量
ps:这里还有一些字段没有解析,由于采样不够大,所以笔者也无法判断部分字段含义
url:https://api-m.mtime.cn/Movie/MovieCreditsWithTypes.api?movieId=?
示例 url:https://api-m.mtime.cn/Movie/MovieCreditsWithTypes.api?movieId=217896
json 示例:
{
"types": [
{
"typeName": "导演",
"typeNameEn": "Director",
"persons": [
{
"id": 892951,
"name": "唐季礼",
"nameEn": "Stanley Tong",
"image": "http://img31.mtime.cn/ph/2014/02/22/192821.88623670_1280X720X2.jpg"
}
]
},
{
"typeName": "演员",
"typeNameEn": "Actor",
"persons": [
{
"id": 892908,
"name": "成龙",
"nameEn": "Jackie Chan",
"image": "http://img31.mtime.cn/ph/2014/02/28/112422.17365543_1280X720X2.jpg",
"personate": "Jack",
"personateCn": "",
"personateEn": "Jack",
"roleCover": "http://img5.mtime.cn/mg/2017/01/11/145413.83105118_120X120X4.jpg"
},
{
"id": 1706195,
"name": "李治廷",
"nameEn": "Aarif Lee",
"image": "http://img31.mtime.cn/ph/2016/08/29/141047.77357073_1280X720X2.jpg",
"personate": "李琼斯",
"personateCn": "李琼斯",
"personateEn": "",
"roleCover": "http://img5.mtime.cn/mg/2017/01/11/145626.54701937_120X120X4.jpg"
}
]
},
{
"typeName": "编剧",
"typeNameEn": "Writer",
"persons": [
{
"id": 892951,
"name": "唐季礼",
"nameEn": "Stanley Tong",
"image": "http://img31.mtime.cn/ph/2014/02/22/192821.88623670_1280X720X2.jpg"
}
]
},
{
"typeName": "制作人",
"typeNameEn": "Produced by",
"persons": [
{
"id": 2038377,
"name": "",
"nameEn": "Maxine De Vere",
"image": "http://img31.mtime.cn/ph/377/2038377/2038377_1280X720X2.jpg"
},
{
"id": 1209821,
"name": "董韵诗",
"nameEn": "Barbie Tung",
"image": "http://img31.mtime.cn/ph/2016/09/05/174813.15229657_1280X720X2.jpg"
}
]
},
{
"typeName": "美术设计",
"typeNameEn": "Art Direction by",
"persons": [
{
"id": 2203560,
"name": "",
"nameEn": "Zhen Wu",
"image": "http://img31.mtime.cn/ph/1560/2203560/2203560_1280X720X2.jpg"
}
]
},
{
"typeName": "服装设计",
"typeNameEn": "Costume Design by",
"persons": [
{
"id": 1265610,
"name": "黄家仪",
"nameEn": "Phoebe Wong",
"image": "http://img31.mtime.cn/ph/1610/1265610/1265610_1280X720X2.jpg"
}
]
},
{
"typeName": "视觉特效总监",
"typeNameEn": "Visual Effects Supervisor",
"persons": [
{
"id": 2239688,
"name": "",
"nameEn": "Khandu Bidkar",
"image": "http://img31.mtime.cn/ph/1688/2239688/2239688_1280X720X2.jpg"
}
]
},
{
"typeName": "动作指导",
"typeNameEn": "Choreographer",
"persons": [
{
"id": 892951,
"name": "唐季礼",
"nameEn": "Stanley Tong",
"image": "http://img31.mtime.cn/ph/2014/02/22/192821.88623670_1280X720X2.jpg"
},
{
"id": 1865296,
"name": "伍刚",
"nameEn": "Gang Wu",
"image": "http://img5.mtime.cn/ph/2016/11/26/222616.41967971_1280X720X2.jpg"
}
]
},
{
"typeName": "副导演/助理导演",
"typeNameEn": "Assistant Director",
"persons": [
{
"id": 1893463,
"name": "",
"nameEn": "James Cho",
"image": "http://img31.mtime.cn/ph/1463/1893463/1893463_1280X720X2.jpg"
}
]
},
{
"typeName": "声音部门",
"typeNameEn": "Sound Department",
"persons": [
{
"id": 2203561,
"name": "",
"nameEn": "Sindri Þór Kárason",
"image": "http://img31.mtime.cn/ph/1561/2203561/2203561_1280X720X2.jpg"
}
]
}
]
}
解析:
typeName
:已知取值有导演
、演员
、编剧
等typeNameEn
:typeName
字段对应的英文persons
:具体人员信息id
:人员 idname
:人员姓名nameEn
:人员英文名
以下字段是演员特有的:
image
:人员照片personate
:饰演角色名personateCn
:饰演角色名的中文名personateEn
:饰演角色名的英文名roleCover
:饰演角色剧照
人员详细信息 url:https://ticket-api-m.mtime.cn/person/detail.api?personId=?&cityId=?
示例 url:https://ticket-api-m.mtime.cn/person/detail.api?personId=892908&cityId=290
解析:就是上面获取到的人员 id 和你的地区 id 拼接上去就可以了,这里的内容挺多的,后期笔者再扩展
url:https://ticket-api-m.mtime.cn/movie/hotComment.api?movieId=?
示例 url:https://ticket-api-m.mtime.cn/movie/hotComment.api?movieId=125805
json 示例:
{
"code": "1",
"data": {
"mini": {
"list": [
{
"commentDate": 1485949110,
"commentId": 41530503,
"content": "小小可惜,甄子丹已经过了最能打的年纪,倘若在杀破狼时期的话,甄子丹一定发挥的更好!",
"headImg": "//img32.mtime.cn/up/2016/04/21/164216.20185739_128X128.jpg",
"img": "",
"isHot": false,
"isPraise": false,
"locationName": "温哥华",
"nickname": "百家影评",
"praiseCount": 1,
"rating": 0,
"replyCount": 0
}
],
"total": 106
},
"plus": {
"list": [
{
"commentDate": 1468225860,
"commentId": 7967852,
"content": "\n常年锃光瓦亮的光头、一身健硕的肌肉、还有那永恒不变的T恤背心,这是一位令人为之惊讶、欢呼的糙汉,他便是范·迪塞尔。\n\n糙汉的《速激》人生\n\n\n\n提到老范,你最熟悉他哪部电影?那肯定没有其他答案,肯定是《速度与激情》系列了。\n这部全球最风靡的赛车题材系列电影起初的男一号是保罗·沃克饰演的卧底警察,但电影上映后人们发现,老范才是最吸引眼球的。\n拍摄《速度与激情2》时,老范因为档期原因没有参演,电影...",
"headImg": "//img32.mtime.cn/up/2013/06/26/161117.68950441_128X128.jpg",
"isWantSee": false,
"locationName": "",
"nickname": "冷子墨",
"rating": 7,
"replyCount": 4,
"title": "biubiubiu!看大汉玩转你的小心跳!——范·迪塞尔"
}
],
"total": 2
}
},
"msg": "",
"showMsg": ""
}
解析:
mini
是短评,更多短评访问 url:https://api-m.mtime.cn/Showtime/HotMovieComments.api?pageIndex=?&movieId=?
(如:https://api-m.mtime.cn/Showtime/HotMovieComments.api?pageIndex=1&movieId=217896
)plus
是精选影评,更多精选影评访问 url:https://api-m.mtime.cn/Movie/HotLongComments.api?pageIndex=?&movieId=?
(如https://api-m.mtime.cn/Movie/HotLongComments.api?pageIndex=1&movieId=217896
)ca
:用户名caimg
:用户头像cal
:用户地区cd
:用户评论时间ce
:用户评论内容ceimg
:评论内容中的图片地址commentCount
:评论点赞量cr
:用户评分isHot
:是否是热门评论tweetId
:???total
:影评总数量
url:https://api-m.mtime.cn/Movie/Video.api?pageIndex=?&movieId=?
示例 url:https://api-m.mtime.cn/Movie/Video.api?pageIndex=1&movieId=217896
解析:pageIndex
就是分页值,movieId
可以分别从正在售票、正在热映、即将上映对应 json 的 movieId
、id
、id
字段中获取
json 示例:
{
"totalPageCount": 1,
"totalCount": 13,
"videoList": [
{
"id": 63236,
"url": "https://vfx.mtime.cn/Video/2016/11/06/mp4/161106175251674452_480.mp4",
"hightUrl": "https://vfx.mtime.cn/Video/2016/11/06/mp4/161106175251674452.mp4",
"image": "http://img5.mtime.cn/mg/2016/11/06/175108.73063349_235X132X4.jpg",
"title": "功夫瑜伽 先行版预告片",
"type": 0,
"length": 73
},
{
"id": 63798,
"url": "https://vfx.mtime.cn/Video/2016/12/14/mp4/161214210123816534_480.mp4",
"hightUrl": "https://vfx.mtime.cn/Video/2016/12/14/mp4/161214210123816534.mp4",
"image": "http://img5.mtime.cn/mg/2016/12/14/210343.18175212_235X132X4.jpg",
"title": "功夫瑜伽 “冰岛版”预告片",
"type": 0,
"length": 78
}
]
}
解析:
id
:预告片 idurl
:普通质量预告片链接highUlr
:高质量预告片链接img
:预告片图片title
:预告片名称type
:???length
:预告片时长
url:https://api-m.mtime.cn/Movie/ImageAll.api?movieId=?
示例 url:https://api-m.mtime.cn/Movie/ImageAll.api?movieId=217896
json 示例:
{
"images": [
{
"id": 7317312,
"image": "http://img5.mtime.cn/pi/2016/12/25/153213.67270192_1000X1000.jpg",
"type": 1
},
{
"id": 7323621,
"image": "http://img5.mtime.cn/pi/2017/01/12/113131.12368570_1000X1000.jpg",
"type": 6
},
{
"id": 7241716,
"image": "http://img31.mtime.cn/pi/2016/06/12/092438.89530314_1000X1000.jpg",
"type": 31
},
{
"id": 7315536,
"image": "http://img5.mtime.cn/pi/2016/12/21/112702.53654087_1000X1000.jpg",
"type": 41
}
],
"imageTypes": [
{
"type": -1,
"typeName": "显示所有"
},
{
"type": 6,
"typeName": "剧照"
},
{
"type": 1,
"typeName": "海报"
},
{
"type": 41,
"typeName": "工作照"
},
{
"type": 31,
"typeName": "新闻图片"
}
]
}
解析:
images
:图片内容id
:图片 idimage
:图片链接type
:图片类型码imageTypes
:图片类型内容typeName
:图片类型码对应的图片所属类型