芒果API接口
  1. 接口列表
芒果API接口
  • 对接必读
  • 回调通知
  • API兼容说明(仅旧版本查看)
  • 接口列表
    • 全国所有城市
      POST
    • 城市的行政区/县
      POST
    • 热映电影&待上映电影
      POST
    • 搜索影片或影院
      POST
    • 影片信息&某城市下的影片排期
      POST
    • 影院列表
      POST
    • 查询某影院所属院线
      POST
    • 影片近期有排期的影院
      POST
    • 影院信息&影院排期的电影数据
      POST
    • 影院的电影场次数据
      POST
    • 影院的电影场次座位数据
      POST
    • 锁座下单
      POST
    • 释放座位
      POST
    • 确认下单
      POST
    • 查询订单详情
      POST
    • 查询账户余额
      POST
    • 获取H5+Token链接
      POST
    • 批量拉取影院数据
      POST
    • 批量拉取场次数据
      POST
  • 其他
    • APP/微信小程序嵌入H5
  1. 接口列表

批量拉取场次数据

POST
/api/62d7747005ed6
芒果官方数据每小时整点同步,建议代理于每小时半点开始同步,但不可超出平台承载峰值!
本平台可承载的峰值为:1200次/分钟(同步时长控制在20分钟左右较为合理),请严格按照该QPS进行限制!遇重大节假日可能会降低请求数,届时会提前通知!
限流后返回:{"message": "Requests rate limited. stage:trafficcontrol"}
注:该接口权限需要向商务申请
注意:场次数据批量拉取影院id 不一致是正常的,不用担心,我们是多数据源,
场次数据里面的cinmea_id 仅供参考。不要用来请求拉起场次数据,调接口的cinmea_id 永远都是接口返回的
【正确流程】 先获取影院数据,然后根据接口返回的cinema_id 请求批量获取场次数据
area_price示例:[{"area":"32","price":{"user_price":54.9,"supplier_price":48.9,"agent_rebate":6,"price":"60.90","limit_price":"48.9"}}]
area_price字段说明:[{"area":"分区ID","price":{"user_price":"用户付款价格","price":"原价","supplier_price":"无需关注该字段","agent_rebate":"无需关注该字段","limit_price":"限价金额"}}]

请求参数

Body 参数application/json
cinemaid
integer 
影院ID
必需
示例
{
    "cinemaid": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-service.mgmovie.net/api/62d7747005ed6' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cinemaid": 0
}'

返回响应

🟢200成功
application/json
Body
success
boolean 
必需
code
integer 
必需
message
string 
必需
data
array [object {21}] 
必需
show_id
string 
未使用不用关注
必需
未使用不用关注
showid
string 
场次ID
必需
接口中使用该字段
cinemaid
integer 
影院ID
必需
cinema_code
string 
影院统一编码
必需
hall_name
string 
影厅名称
必需
film_id
integer 
电影ID
必需
film_code
string 
电影统一编码
必需
film_name
string 
电影名称
必需
duration
string 
影片时长
必需
分钟
show_time
string 
开场时间
必需
日期格式
stop_sell_time
string 
停售时间
必需
日期格式
show_version_type
string 
场次类型国语 2D
必需
language
string 
影片语言
必需
plan_type
string 
影片类型
必需
city_id
integer 
城市ID
必需
settle_price
number  | integer 
优惠后价格
必需
优惠前参考net_price
net_price
number 
网售市场价
必需
area_price
string 
座位分区信息
必需
为空时表示不支持分区,json格式:[{"area":"32","price":{"user_price":54.9,"supplier_price":48.9,"agent_rebate":6,"price":"60.90","limit_price":"48.9"}},{"area":"1","price":{"user_price":53.9,"supplier_price":47.9,"agent_rebate":6,"price":"59.90","limit_price":"48.9"}}]
created_at
string 
创建时间
必需
日期格式
updated_at
string 
更新时间
必需
日期时间
limit_price
string 
限价金额
必需
有分区优先使用分区限价金额
示例
{
    "success": true,
    "code": 1,
    "message": "操作成功",
    "data": [
        {
            "show_id": "MTMwNzUwMDEjbWFuZ28jMDAxMDQ0OTIwMjEjbWFuZ28jMjAyMi0wNy0yNSAxMzowNTowMA==",
            "showid": "81232561978575412",
            "cinemaid": 66856,
            "hall_name": "7号厅PRIME厅儿童需购票",
            "film_id": 534395,
            "film_name": "神探大战",
            "film_code": "00104492021",
            "cinema_code": "13075001",
            "duration": "101",
            "show_time": "2022-07-25 13:05:00",
            "stop_sell_time": "2022-07-25 12:45:00",
            "show_version_type": "中文 2D",
            "settle_price": 35.1,
            "original_price": 38.9,
            "rebate_price": 35.1,
            "price": 0,
            "min_price": 0,
            "net_price": 38.9,
            "language": "粤语,汉语普通话",
            "plan_type": "",
            "city_id": 430,
            "tpp_prices": "[]",
            "area_price": "[{\"area\":\"32\",\"price\":{\"user_price\":37.1,\"supplier_price\":34.9,\"agent_rebate\":2.2,\"price\":\"40.90\"}},{\"area\":\"33\",\"price\":{\"user_price\":35.1,\"supplier_price\":32.9,\"agent_rebate\":2.2,\"price\":\"38.90\"}},{\"area\":\"1\",\"price\":{\"user_price\":35.1,\"supplier_price\":32.9,\"agent_rebate\":2.2,\"price\":\"38.90\"}}]",
            "created_at": "2022-07-23 13:16:38",
            "updated_at": "2022-07-25 12:15:46"
        },
        {
            "show_id": "MTMwNzUwMDEjbWFuZ28jMDAxMDA3NTIwMjEjbWFuZ28jMjAyMi0wNy0yNSAxMzo1MDowMA==",
            "showid": "8123256419281835",
            "cinemaid": 66856,
            "hall_name": "呱唧厅",
            "film_id": 1369013,
            "film_name": "海底小纵队:洞穴大冒险",
            "film_code": "00100752021",
            "cinema_code": "13075001",
            "duration": "80",
            "show_time": "2022-07-25 13:50:00",
            "stop_sell_time": "2022-07-25 13:30:00",
            "show_version_type": "中文 2D",
            "settle_price": 27.6,
            "original_price": 30,
            "rebate_price": 27.6,
            "price": 0,
            "min_price": 0,
            "net_price": 30,
            "language": "英语",
            "plan_type": "",
            "city_id": 430,
            "tpp_prices": "[]",
            "area_price": "[{\"area\":\"32\",\"price\":{\"user_price\":29,\"supplier_price\":27.7,\"agent_rebate\":1.3,\"price\":\"32.00\"}},{\"area\":\"33\",\"price\":{\"user_price\":27.6,\"supplier_price\":26.4,\"agent_rebate\":1.2,\"price\":\"30.00\"}},{\"area\":\"1\",\"price\":{\"user_price\":27.6,\"supplier_price\":26.4,\"agent_rebate\":1.2,\"price\":\"30.00\"}}]",
            "created_at": "2022-07-23 13:16:38",
            "updated_at": "2022-07-25 13:15:59"
        },
        {
            "show_id": "MTMwNzUwMDEjbWFuZ28jMDAxMDAzNTIwMjIjbWFuZ28jMjAyMi0wNy0yNSAxNDoxMDowMA==",
            "showid": "81232561463895623",
            "cinemaid": 66856,
            "hall_name": "1号厅",
            "film_id": 1374316,
            "film_name": "人生大事",
            "film_code": "00100352022",
            "cinema_code": "13075001",
            "duration": "112",
            "show_time": "2022-07-25 14:10:00",
            "stop_sell_time": "2022-07-25 13:50:00",
            "show_version_type": "中文 2D",
            "settle_price": 37.9,
            "original_price": 41.9,
            "rebate_price": 37.9,
            "price": 0,
            "min_price": 0,
            "net_price": 41.9,
            "language": "汉语普通话",
            "plan_type": "",
            "city_id": 430,
            "tpp_prices": "[]",
            "area_price": "[{\"area\":\"32\",\"price\":{\"user_price\":39.4,\"supplier_price\":37.9,\"agent_rebate\":1.5,\"price\":\"43.90\"}},{\"area\":\"33\",\"price\":{\"user_price\":37.9,\"supplier_price\":35.9,\"agent_rebate\":2,\"price\":\"41.90\"}},{\"area\":\"1\",\"price\":{\"user_price\":37.9,\"supplier_price\":35.9,\"agent_rebate\":2,\"price\":\"41.90\"}}]",
            "created_at": "2022-07-23 13:16:38",
            "updated_at": "2022-07-25 13:15:59"
        },
        {
            "show_id": "MTMwNzUwMDEjbWFuZ28jMDUxMDAzNjIwMjIjbWFuZ28jMjAyMi0wNy0yNSAxNDozMDowMA==",
            "showid": "81232562105152840",
            "cinemaid": 66856,
            "hall_name": "3号厅",
            "film_id": 511507,
            "film_name": "侏罗纪世界3",
            "film_code": "05100362022",
            "cinema_code": "13075001",
            "duration": "147",
            "show_time": "2022-07-25 14:30:00",
            "stop_sell_time": "2022-07-25 14:10:00",
            "show_version_type": "英文 3D",
            "settle_price": 34.7,
            "original_price": 37.9,
            "rebate_price": 34.7,
            "price": 0,
            "min_price": 0,
            "net_price": 37.9,
            "language": "英语",
            "plan_type": "",
            "city_id": 430,
            "tpp_prices": "[]",
            "area_price": "[{\"area\":\"32\",\"price\":{\"user_price\":36.1,\"supplier_price\":33.9,\"age
修改于 2025-06-19 06:16:19
上一页
批量拉取影院数据
下一页
APP/微信小程序嵌入H5
Built with