即将上映
院线即将上映的电影,数据来源猫眼电影
接口信息
| 项目 | 内容 |
|---|---|
| 接口地址 | https://api.code410.com/api/cinema/coming |
| 返回格式 | application/json |
| 请求方式 | HTTP GET POST/JSON |
| 更新日期 | 2023-11-13 |
| 调用权限 | 免费开放 |
| 每日限制 | 无限制 |
| 请求频率限制 | 1秒5次 |
请求示例
https://api.code410.com/api/cinema/coming请求 HEADER
| 名称 | 值 |
|---|---|
| Content-Type | application/x-www-form-urlencoded;charset; |
返回参数说明
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 状态信息 |
| data | string | 请求结果数据集 |
| debug | string/array | 调试数据 |
| exec_time | float | 执行耗时 |
| user_ip | string | 客户端IP |
错误码参照
| 错误码 | 类型 | 说明 |
|---|---|---|
| 403 | int | 没有权限 |
| 400 | int | 参数传递不正确 |
| 500 | int | 服务器内部错误 |
在线调试 / 完整文档
本接口为 信息查找 分类下的开放接口。完整文档、在线调试与示例代码请前往 https://api.code410.com/doc/207。
返回示例
{
"code": 200,
"msg": "请求成功",
"data": [
{
"id": 1505554,
"haspromotionTag": false,
"img": "https://p0.pipi.cn/basicdata/54ecde518079239ab4501534cf087dfe8ab7c.jpg?imageMogr2/thumbnail/2500x2500%3E",
"nm": "花伴雨",
"preShow": false,
"sc": 0,
"globalReleased": false,
"wish": 249,
"star": "梁辉,徐嘉洲,方恩佐",
"rt": "2026-06-10",
"showst": 1,
"wishst": 0,
"comingTitle": "6月10日 周三"
},
{
"id": 1595371,
"haspromotionTag": false,
"img": "https://p0.pipi.cn/mediaplus/friday_image_fe/e429585b3e76e382bf6cb4ae10ffc932dc69b.jpeg?imageMogr2/quality/80",
"version": "",
"nm": "火遮眼",
"preShow": false,
"sc": 0,
"globalReleased": false,
"wish": 55458,
"star": "谢苗,林科灯,杨恩又",
"rt": "2026-06-11",
"showInfo": "2026-06-11 下周四上映",
"showst": 4,
"wishst": 0,
"comingTitle": "6月11日 周四",
"showStateButton": {
"color": "#3C9FE6",
"content": "预售",
"contentImg": "https://p0.pipi.cn/mediaplus/fe_rock_web/0fa334bfbf80515be7392a84b7c1028ed0b38.png?imageMogr2/thumbnail/2500x2500%3E",
"onlyPreShow": false,
"shadowColor": "rgba(60,159,230, 0.15)"
}
},
{
"id": 672275,
"haspromotionTag": false,
"img": "https://p0.pipi.cn/mediaplus/friday_image_fe/e429585bd8a4a1fcf4ce6383cd924a59952e9.jpg?imageMogr2/quality/80",
"nm": "揭秘日",
"preShow": false,
"sc": 0,
"globalReleased": false,
"wish": 38566,
"star": "艾米莉·布朗特,乔什·奥康纳,科林·费斯",
"rt": "2026-06-12",
"showInfo": "2026-06-12 下周五上映",
"showst": 4,
"wishst": 0,
"comingTitle": "6月12日 周五",
"showStateButton": {
"color": "#3C9FE6",
"content": "预售",
"contentImg": "https://p0.pipi.cn/mediaplus/fe_rock_web/0fa334bfbf80515be7392a84b7c1028ed0b38.png?imageMogr2/thumbnail/2500x2500%3E",
"onlyPreShow": false,
"shadowColor": "rgba(60,159,230, 0.15)"
}
}
],
"exec_time": 1.944,
"ip": "197.149.235.178"
}
// (数组共 10 项,此处仅展示前 3 项)示例代码
// jQuery-Ajax
$.ajax({
url: 'https://api.code410.com/api/cinema/coming',
data: {
// 该接口无需参数
},
type: 'GET',
dataType: 'json',
success: function (data) {
console.log(data); // 请求成功,输出结果
},
error: function () {
console.log('请求失败');
}
});import requests
url = "https://api.code410.com/api/cinema/coming"
params = {
# 该接口无需参数
}
res = requests.get(url, params=params)
print(res.json())const https = require('https');
const url = 'https://api.code410.com/api/cinema/coming';
https.get(url, res => {
let data = '';
res.on('data', chunk => data += chunk);
res.on('end', () => console.log(JSON.parse(data)));
}).on('error', err => console.error(err));package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
resp, err := http.Get("https://api.code410.com/api/cinema/coming")
if err != nil {
fmt.Println("http get error", err)
return
}
defer resp.Body.Close()
result, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(result))
}import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Test {
public static void main(String[] args) {
try {
URL url = new URL("https://api.code410.com/api/cinema/coming");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.connect();
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));
String line;
StringBuilder sb = new StringBuilder();
while ((line = reader.readLine()) != null) sb.append(line);
reader.close();
System.out.println(sb.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program {
static async Task Main() {
HttpClient client = new HttpClient();
string url = "https://api.code410.com/api/cinema/coming";
HttpResponseMessage response = await client.GetAsync(url);
string body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
}<?php
$url = "https://api.code410.com/api/cinema/coming";
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);curl "https://api.code410.com/api/cinema/coming"在线调试
该接口无需参数,直接点击下方按钮发起请求。
填写参数后点击「发起请求」查看实时返回结果。
