返回首页

360壁纸-视频

浏览: 1666 最后更新: 2024-04-11 09:15:03

接口说明

360壁纸-视频

接口基本信息

API地址

https://api.cenguigui.cn/api/360mov/

请求方式

GET

返回格式

JSON

接口状态

正常启用

参数说明

以下参数为接口所需调用信息

参数 是否必填 类型 说明 示例
pn页数number
rn返回数量(最多只返回20因为每页只有20)number
lxtjtext

请求示例

HTTP请求

https://api.cenguigui.cn/api/360mov/?pn=1&rn=20

调用示例

代码示例

推荐视频:
https://api.cenguigui.cn/api/360mov/?lx=tj&pn=1&rn=2
直接跳转随机视频:
https://api.cenguigui.cn/api/360mov/?lx=tj&pn=1&rn=1&type=mp4

动漫视频:
https://api.cenguigui.cn/api/360mov/?pn=1&rn=2
直接跳转随机视频:
https://api.cenguigui.cn/api/360mov/?pn=1&rn=1&type=mp4

返回结果

HTTP 200 OK
{
    "code": 0,
    "msg": "ok",
    "data": {
        "currentTime": 1710582187,
        "has_more": 1,
        "id": 1305,
        "videos": [
            {
                "id": 243668,
                "img_title": "人鱼公主",
                "img": "https://browser6.qhimg.com/t01746ed5d324c6dc2a.jpg",
                "thumbnail_video_url": "",
                "info_video_url": "",
                "preview_video_url": "",
                "label_list": [
                    {
                        "id": 395,
                        "name": "二次元",
                        "num": 10099
                    },
                    {
                        "id": 850,
                        "name": "二次元女孩",
                        "num": 11045
                    },
                    {
                        "id": 437,
                        "name": "二次元插画",
                        "num": 16000
                    },
                    {
                        "id": 1305,
                        "name": "动漫小姐姐",
                        "num": 29706
                    },
                    {
                        "id": 1982,
                        "name": "动漫少女",
                        "num": 27675
                    },
                    {
                        "id": 1304,
                        "name": "动漫美女",
                        "num": 29817
                    },
                    {
                        "id": 200,
                        "name": "长发美女",
                        "num": 19075
                    },
                    {
                        "id": 197,
                        "name": "阳光少女",
                        "num": 8454
                    }
                ]
            },
            {
                "id": 341130,
                "img_title": "旧漫 森林公主",
                "img": "https://browser6.qhimg.com/t01dcbb62bbf77aa1ae.jpg",
                "thumbnail_video_url": "http://v1.browser.360.cn/hb-v-pre/37-1d8894b2fba893adeba8681e88563402-768x432.mp4?time=1710581945&sign=a53435b590d32af4de19c8e7ca31fcc8",
                "info_video_url": "http://v1.browser.360.cn/hb-v-pre/37-1d8894b2fba893adeba8681e88563402-1920x1080.mp4?time=1710581945&sign=8de80d32d2139bb7b662c50918224ed7",
                "preview_video_url": "http://v1.browser.360.cn/hb-v-pre/37-1d8894b2fba893adeba8681e88563402.mp4?time=1710581945&sign=1761d8af14ec3496f223e8bf454fe37b",
                "label_list": [
                    {
                        "id": 1305,
                        "name": "动漫小姐姐",
                        "num": 29706
                    },
                    {
                        "id": 1982,
                        "name": "动漫少女",
                        "num": 27675
                    },
                    {
                        "id": 206,
                        "name": "呆萌可爱",
                        "num": 30510
                    },
                    {
                        "id": 192,
                        "name": "治愈美女",
                        "num": 31209
                    },
                    {
                        "id": 207,
                        "name": "阳光可爱",
                        "num": 17596
                    }
                ]
            }
        ]
    }
}{
    "code": 0,
    "msg": "ok",
    "data": {
        "currentTime": 1710582187,
        "has_more": 1,
        "id": 1305,
        "videos": [
            {
                "id": 243668,
                "img_title": "人鱼公主",
                "img": "https://browser6.qhimg.com/t01746ed5d324c6dc2a.jpg",
                "thumbnail_video_url": "",
                "info_video_url": "",
                "preview_video_url": "",
                "label_list": [
                    {
                        "id": 395,
                        "name": "二次元",
                        "num": 10099
                    },
                    {
                        "id": 850,
                        "name": "二次元女孩",
                        "num": 11045
                    },
                    {
                        "id": 437,
                        "name": "二次元插画",
                        "num": 16000
                    },
                    {
                        "id": 1305,
                        "name": "动漫小姐姐",
                        "num": 29706
                    },
                    {
                        "id": 1982,
                        "name": "动漫少女",
                        "num": 27675
                    },
                    {
                        "id": 1304,
                        "name": "动漫美女",
                        "num": 29817
                    },
                    {
                        "id": 200,
                        "name": "长发美女",
                        "num": 19075
                    },
                    {
                        "id": 197,
                        "name": "阳光少女",
                        "num": 8454
                    }
                ]
            },
            {
                "id": 341130,
                "img_title": "旧漫 森林公主",
                "img": "https://browser6.qhimg.com/t01dcbb62bbf77aa1ae.jpg",
                "thumbnail_video_url": "http://v1.browser.360.cn/hb-v-pre/37-1d8894b2fba893adeba8681e88563402-768x432.mp4?time=1710581945&sign=a53435b590d32af4de19c8e7ca31fcc8",
                "info_video_url": "http://v1.browser.360.cn/hb-v-pre/37-1d8894b2fba893adeba8681e88563402-1920x1080.mp4?time=1710581945&sign=8de80d32d2139bb7b662c50918224ed7",
                "preview_video_url": "http://v1.browser.360.cn/hb-v-pre/37-1d8894b2fba893adeba8681e88563402.mp4?time=1710581945&sign=1761d8af14ec3496f223e8bf454fe37b",
                "label_list": [
                    {
                        "id": 1305,
                        "name": "动漫小姐姐",
                        "num": 29706
                    },
                    {
                        "id": 1982,
                        "name": "动漫少女",
                        "num": 27675
                    },
                    {
                        "id": 206,
                        "name": "呆萌可爱",
                        "num": 30510
                    },
                    {
                        "id": 192,
                        "name": "治愈美女",
                        "num": 31209
                    },
                    {
                        "id": 207,
                        "name": "阳光可爱",
                        "num": 17596
                    }
                ]
            }
        ]
    }
}

调用示例

// JavaScript调用示例
fetch("https://api.cenguigui.cn/api/360mov/?pn=1&rn=20", {
  method: "GET",
  headers: {
    "Content-Type": "application/json"
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
# Python调用示例
import requests

url = "https://api.cenguigui.cn/api/360mov/?pn=1&rn=20"

response = requests.get(url)

print(response.json())
// Java调用示例
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;

public class ApiExample {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newBuilder()
                .version(HttpClient.Version.HTTP_2)
                .connectTimeout(Duration.ofSeconds(10))
                .build();
                
        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://api.cenguigui.cn/api/360mov/?pn=1&rn=20"))
                .build();
                
        client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
                .thenApply(HttpResponse::body)
                .thenAccept(System.out::println)
                .join();
    }
}
<?php
// PHP调用示例
$url = "https://api.cenguigui.cn/api/360mov/?pn=1&rn=20";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
print_r($result);
?>
// C#调用示例
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program
{
    static async Task Main()
    {
        using var client = new HttpClient();
        var url = "https://api.cenguigui.cn/api/360mov/?pn=1&rn=20";
        
        var response = await client.GetAsync(url);
        
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}