稳定、快速、免费的 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": "550.27",
"boxRate": "43.4%",
"movieInfo": {
"movieId": 1491059,
"movieName": "好东西",
"releaseInfo": "上映首日"
},
"seatCountRate": "30.4%",
"showCountRate": "28.1%",
"sumBoxDesc": "3535.7万"
},
{
"boxDesc": "155.39",
"boxRate": "12.2%",
"movieInfo": {
"movieId": 917,
"movieName": "哈利·波特与死亡圣器(上)",
"releaseInfo": ""
},
"seatCountRate": "5.3%",
"showCountRate": "3.7%",
"sumBoxDesc": "1.22亿"
},
{
"boxDesc": "135.97",
"boxRate": "10.7%",
"movieInfo": {
"movieId": 1299273,
"movieName": "角斗士2",
"releaseInfo": "上映首日"
},
"seatCountRate": "13.3%",
"showCountRate": "12.0%",
"sumBoxDesc": "135.9万"
},
{
"boxDesc": "101.19",
"boxRate": "7.9%",
"movieInfo": {
"movieId": 1521361,
"movieName": "蜡笔小新:我们的恐龙日记",
"releaseInfo": "点映"
},
"seatCountRate": "3.5%",
"showCountRate": "3.7%",
"sumBoxDesc": "109.3万"
},
{
"boxDesc": "73.37",
"boxRate": "5.7%",
"movieInfo": {
"movieId": 1490901,
"movieName": "风流一代",
"releaseInfo": "上映首日"
},
"seatCountRate": "4.6%",
"showCountRate": "5.7%",
"sumBoxDesc": "103.4万"
},
{
"boxDesc": "73.06",
"boxRate": "5.7%",
"movieInfo": {
"movieId": 1518897,
"movieName": "胜券在握",
"releaseInfo": "上映8天"
},
"seatCountRate": "17.3%",
"showCountRate": "17.2%",
"sumBoxDesc": "1.14亿"
},
{
"boxDesc": "28.46",
"boxRate": "2.2%",
"movieInfo": {
"movieId": 1516934,
"movieName": "鸳鸯楼·惊魂",
"releaseInfo": "上映23天"
},
"seatCountRate": "4.1%",
"showCountRate": "5.1%",
"sumBoxDesc": "8904.8万"
},
{
"boxDesc": "24.90",
"boxRate": "1.9%",
"movieInfo": {
"movieId": 1430629,
"movieName": "金钱堡垒",
"releaseInfo": "上映首日"
},
"seatCountRate": "3.1%",
"showCountRate": "3.8%",
"sumBoxDesc": "27.9万"
},
{
"boxDesc": "24.40",
"boxRate": "1.9%",
"movieInfo": {
"movieId": 1491310,
"movieName": "志愿军:存亡之战",
"releaseInfo": "上映54天"
},
"seatCountRate": "0.6%",
"showCountRate": "0.7%",
"sumBoxDesc": "11.97亿"
},
{
"boxDesc": "19.08",
"boxRate": "1.5%",
"movieInfo": {
"movieId": 1448719,
"movieName": "毒液:最后一舞",
"releaseInfo": "上映31天"
},
"seatCountRate": "6.1%",
"showCountRate": "6.1%",
"sumBoxDesc": "6.56亿"
}
],
"nationalBox": {
"num": "1267.4",
"unit": "万"
},
"updateInfo": {
"date": "2024.11.22",
"time": "06:21:16",
"updateGapSecond": 3,
"updateTimestamp": 1732227676830
}
}
}
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
<?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);