貓眼電影小程序api
貓眼電影小程序是貓眼電影app官方的小程序,僅僅提供電影在線購票工具,對于用戶來說,無需下載app即可購票,這里為大家介紹貓眼電影小程序api
查詢出首頁電影列表
http://m.maoyan.com/movie/list.json?type=hot&offset=0&limit=1000
request :
type=hot 類型
offset : 數(shù)據(jù)開始位置
limit :偏移量
response :
<pre>
{
"control": {
"expires": 1800
},
"status": 0,
"data": {
"hasNext": true,
"movies": [
{
"late": true,
"cnms": 31,
"sn": 436,
"showDate": "",
"dur": 115,
"img": "http://p0.meituan.net/165.220/movie/7f32684e28253f39fe2002868a1f3c95373851.jpg",
"sc": 9.1,
"ver": "3D/IMAX 3D",
"rt": "本周二上映",
"nm": "末日崩塌",
"scm": "史無前例超級地震撕裂一切",
"imax": true,
"snum": 20129,
"src": "美國",
"pn": 74,
"preSale": 0,
"vd": "",
"dir": "布拉德·佩頓",
"star": "巨石強森,等",
"cat": "劇情,動作,驚悚",
"wish": 65386,
"3d": true,
"time": "",
"id": 246363
}
]
}
}
查出電影詳情(包含評論)
http://m.maoyan.com/movie/xxxx.json
request:
這里直接在將xxxx換成movieid 例子 246363.json
加載更多評論
http://m.maoyan.com/comments.json?movieid=246363&limit=5&offset=5
request
movieid : 電影id
limit : 同上
offset :同上
response
{
"control": {
"expires": 300
},
"status": 0,
"data": {
"CommentResponseModel": {
"total": 5147,
"cmts": [
{
"nick": "ToyoGu李學棟",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p1.meituan.net/avatar/15beaf1aafc1571890808171618e552741843.jpg",
"userId": 62209126,
"score": 5,
"id": 17178527,
"content": "不錯,好看,",
"time": "2015-06-05 00:20"
},
{
"nick": "死生成說",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p0.meituan.net/avatar/__47448219__1684116.jpg",
"userId": 15946769,
"score": 5,
"id": 17178526,
"content": "VIP很爽的",
"time": "2015-06-05 00:20"
},
{
"nick": "彩虹天邊的雨云",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p0.meituan.net/movie/__40465654__9539763.png",
"userId": 137865391,
"score": 4,
"id": 17178518,
"content": "場面震撼,銜接完美,美國式英雄主義,主角家不死光環(huán),但是結(jié)尾有點簡潔普通點",
"time": "2015-06-05 00:20"
},
{
"nick": "春春的嘛",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p1.meituan.net/avatar/a3ad3970104ede947f65d7a2d5685cdb12829.jpg",
"userId": 1698060,
"score": 4,
"id": 17178511,
"content": "強老大的電影要支持,災(zāi)難效果比之前幾部災(zāi)難片好的多,強老大女兒身材棒棒噠!",
"time": "2015-06-05 00:20"
},
{
"nick": "XxV543764616",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p0.meituan.net/movie/__40465654__9539763.png",
"userId": 201943883,
"score": 5,
"id": 17178494,
"content": "不錯啊,好幾年沒看災(zāi)難片了,感覺有點像2010",
"time": "2015-06-05 00:20"
}
]
},
"hasNext": true,
"movieid": 246363,
"offset": 5,
"limit": 5
}
}
查出影院
http://m.maoyan.com/cinemas.json
貓眼的服務(wù)器會根據(jù)你的ip段加載出你本地的影院
查詢出影院詳情
http://m.maoyan.com/showtime/wrap.json?cinemaid=11533&movieid=
request
cinemaid : 影院id
movieid : 電影id
選座
http://m.maoyan.com/show/seats?showId=76304&showDate=2015-06-05
貓眼電影0入口在哪里:請查看:貓眼電影小程序