娱乐·电影实时票房
热播电影实时票房

接口地址: https://58.linkpc.net/doc/movie.html

返回格式: JSON

请求方式: GET

请求示例: https://58.linkpc.net/api/movie?type=json

请求参数说明:

名称 必填 类型 说明
type string 返回格式默认JSON可选text

返回参数说明:

名称 类型 说明

返回示例:

{
"code": 200,
"msg": "成功",
"data": {
"list": [
{
"boxDesc": "851.10",
"boxRate": "25.3%",
"movieInfo": {
"movieId": 1294273,
"movieName": "哪吒之魔童闹海",
"releaseInfo": "上映88天"
},
"seatCountRate": "15.6%",
"showCountRate": "13.0%",
"sumBoxDesc": "152.85亿"
},
{
"boxDesc": "415.64",
"boxRate": "12.3%",
"movieInfo": {
"movieId": 1528838,
"movieName": "向阳·花",
"releaseInfo": "上映23天"
},
"seatCountRate": "20.3%",
"showCountRate": "17.4%",
"sumBoxDesc": "2.14亿"
},
{
"boxDesc": "390.87",
"boxRate": "11.6%",
"movieInfo": {
"movieId": 1493350,
"movieName": "我的世界大电影",
"releaseInfo": "上映23天"
},
"seatCountRate": "13.6%",
"showCountRate": "12.5%",
"sumBoxDesc": "1.83亿"
},
{
"boxDesc": "375.55",
"boxRate": "11.1%",
"movieInfo": {
"movieId": 1523703,
"movieName": "孤独摇滚(上)",
"releaseInfo": "上映2天"
},
"seatCountRate": "11.1%",
"showCountRate": "11.9%",
"sumBoxDesc": "905.0万"
},
{
"boxDesc": "219.61",
"boxRate": "6.5%",
"movieInfo": {
"movieId": 1199124,
"movieName": "猎狐·行动",
"releaseInfo": "上映23天"
},
"seatCountRate": "8.3%",
"showCountRate": "9.1%",
"sumBoxDesc": "7833.7万"
},
{
"boxDesc": "198.42",
"boxRate": "5.9%",
"movieInfo": {
"movieId": 1492100,
"movieName": "唐探1900",
"releaseInfo": "上映88天"
},
"seatCountRate": "1.6%",
"showCountRate": "1.9%",
"sumBoxDesc": "36.00亿"
},
{
"boxDesc": "191.50",
"boxRate": "5.7%",
"movieInfo": {
"movieId": 1469858,
"movieName": "不说话的爱",
"releaseInfo": "上映24天"
},
"seatCountRate": "8.5%",
"showCountRate": "9.5%",
"sumBoxDesc": "1.36亿"
},
{
"boxDesc": "129.45",
"boxRate": "3.8%",
"movieInfo": {
"movieId": 1564265,
"movieName": "有病才会喜欢你",
"releaseInfo": "上映8天"
},
"seatCountRate": "7.1%",
"showCountRate": "8.5%",
"sumBoxDesc": "1920.6万"
},
{
"boxDesc": "75.00",
"boxRate": "2.2%",
"movieInfo": {
"movieId": 1529787,
"movieName": "熊出没·重启未来",
"releaseInfo": "上映88天"
},
"seatCountRate": "1.1%",
"showCountRate": "1.4%",
"sumBoxDesc": "8.14亿"
},
{
"boxDesc": "72.23",
"boxRate": "2.1%",
"movieInfo": {
"movieId": 1490902,
"movieName": "射雕英雄传:侠之大者",
"releaseInfo": "上映88天"
},
"seatCountRate": "0.1%",
"showCountRate": "0.1%",
"sumBoxDesc": "6.85亿"
}
],
"nationalBox": {
"num": "3356.4",
"unit": "万"
},
"updateInfo": {
"date": "2025.04.26",
"time": "16:19:44",
"updateGapSecond": 3,
"updateTimestamp": 1745655584436
}
}
}

错误码格式说明:

名称 类型 说明

代码示例:

<?php
header('Content-type: application/json; charset=utf-8');
date_default_timezone_set('PRC');
$url = 'https://58.linkpc.net/api/movie';
$type = isset($_GET['type']) ? $_GET['type'] : '';
if ($type == 'json' || $type == 'JSON') {
$result = file_get_contents($url . '?type=json');
echo htmlspecialchars($result);
} else {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
curl_close($ch);