稳定、快速、免费的 API 接口服务
热播电影实时票房
接口地址: 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": "241.47",
"boxRate": "21.7%",
"movieInfo": {
"movieId": 1482385,
"movieName": "误杀3",
"releaseInfo": "上映22天"
},
"seatCountRate": "29.2%",
"showCountRate": "22.2%",
"sumBoxDesc": "7.60亿"
},
{
"boxDesc": "183.12",
"boxRate": "16.5%",
"movieInfo": {
"movieId": 1491323,
"movieName": "“骗骗”喜欢你",
"releaseInfo": "上映19天"
},
"seatCountRate": "15.2%",
"showCountRate": "15.6%",
"sumBoxDesc": "3.38亿"
},
{
"boxDesc": "178.53",
"boxRate": "16.1%",
"movieInfo": {
"movieId": 1502244,
"movieName": "小小的我",
"releaseInfo": "上映23天"
},
"seatCountRate": "16.0%",
"showCountRate": "14.9%",
"sumBoxDesc": "7.00亿"
},
{
"boxDesc": "69.36",
"boxRate": "6.2%",
"movieInfo": {
"movieId": 35830,
"movieName": "名侦探柯南:迷宫的十字路口",
"releaseInfo": "上映23天"
},
"seatCountRate": "3.1%",
"showCountRate": "3.8%",
"sumBoxDesc": "1.22亿"
},
{
"boxDesc": "57.61",
"boxRate": "5.1%",
"movieInfo": {
"movieId": 1351975,
"movieName": "真爱找麻烦!",
"releaseInfo": "上映首日"
},
"seatCountRate": "7.4%",
"showCountRate": "8.8%",
"sumBoxDesc": "69.4万"
},
{
"boxDesc": "53.91",
"boxRate": "4.8%",
"movieInfo": {
"movieId": 1471283,
"movieName": "刺猬索尼克3",
"releaseInfo": "上映9天"
},
"seatCountRate": "3.9%",
"showCountRate": "4.7%",
"sumBoxDesc": "2239.6万"
},
{
"boxDesc": "39.41",
"boxRate": "3.5%",
"movieInfo": {
"movieId": 1482057,
"movieName": "去唱卡拉OK吧!",
"releaseInfo": "上映2天"
},
"seatCountRate": "2.0%",
"showCountRate": "2.4%",
"sumBoxDesc": "127.4万"
},
{
"boxDesc": "36.96",
"boxRate": "3.3%",
"movieInfo": {
"movieId": 1366542,
"movieName": "狮子王:木法沙传奇",
"releaseInfo": "上映30天"
},
"seatCountRate": "1.9%",
"showCountRate": "2.1%",
"sumBoxDesc": "1.12亿"
},
{
"boxDesc": "30.06",
"boxRate": "2.7%",
"movieInfo": {
"movieId": 1498169,
"movieName": "火锅艺术家",
"releaseInfo": "上映16天"
},
"seatCountRate": "2.6%",
"showCountRate": "3.1%",
"sumBoxDesc": "3985.5万"
},
{
"boxDesc": "29.80",
"boxRate": "2.6%",
"movieInfo": {
"movieId": 1499659,
"movieName": "误判",
"releaseInfo": "上映23天"
},
"seatCountRate": "2.2%",
"showCountRate": "2.7%",
"sumBoxDesc": "2.48亿"
}
],
"nationalBox": {
"num": "1108.2",
"unit": "万"
},
"updateInfo": {
"date": "2025.01.18",
"time": "09:52:49",
"updateGapSecond": 3,
"updateTimestamp": 1737165169524
}
}
}
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
<?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);