精美手机壁纸

各种精美手机壁纸,图片为网络收集,侵权请联系删除

接口状态:运行中
接口类型:密钥接口
请求方式:GET
响应格式:application/json
总调用:12
添加时间:2025-12-12
更新时间:2025-12-22

请求信息

请求地址:
https://xsapi.com/API/mi.php
示例地址:
https://xsapi.com/API/mi.php?apikey=你的秘钥&tag=美女&page=2&type=json

请求参数

参数名 类型 必填 说明
apikey string 登录后自动获取
tag string 想要搜索的手机壁纸
page string 翻页效果
type string json返回JSON的文本,text返回纯文本,image返回图片,默认JSON

状态码说明

状态码 说明
200 请求成功,服务器已成功处理了请求。
403 服务器拒绝请求。可能是缺少API密钥或权限不足。
404 请求的资源未找到,请检查请求地址是否正确。
429 请求过于频繁,已超出速率限制,请稍后再试。
500 服务器内部错误,执行请求时遇到问题。

在线测试

此处将显示接口返回结果...

调用示例

<?php
$url = 'https://xsapi.com/API/mi.php';
$params = ['apikey' => 'YOUR_VALUE', 'tag' => 'YOUR_VALUE', 'page' => 'YOUR_VALUE', 'type' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'https://xsapi.com/API/mi.php'
params = {'apikey': 'YOUR_VALUE', 'tag': 'YOUR_VALUE', 'page': 'YOUR_VALUE', 'type': 'YOUR_VALUE', }
response = requests.get(url, params=params)
print(response.text)
const url = 'https://xsapi.com/API/mi.php?';
const params = new URLSearchParams({apikey: 'YOUR_VALUE', tag: 'YOUR_VALUE', page: 'YOUR_VALUE', type: 'YOUR_VALUE', });
fetch(url + params)
    .then(response => response.text())
    .then(data => console.log(data));
import java.net.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        String url = "https://xsapi.com/API/mi.php?";
        String params = "apikey=YOUR_VALUE&tag=YOUR_VALUE&page=YOUR_VALUE&type=YOUR_VALUE&";
        URL obj = new URL(url + params);
        HttpURLConnection con = (HttpURLConnection) obj.openConnection();
        con.setRequestMethod("GET");
        BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
        String inputLine;
        StringBuffer response = new StringBuffer();
        while ((inputLine = in.readLine()) != null) {
            response.append(inputLine);
        }
        in.close();
        System.out.println(response.toString());
    }
}
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
)

func main() {
    url := "https://xsapi.com/API/mi.php?"
    params := "apikey=YOUR_VALUE&tag=YOUR_VALUE&page=YOUR_VALUE&type=YOUR_VALUE&"
    resp, err := http.Get(url + params)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
using System;
using System.Net;

class Program {
    static void Main() {
        string url = "https://xsapi.com/API/mi.php?";
        string parameters = "apikey=YOUR_VALUE&tag=YOUR_VALUE&page=YOUR_VALUE&type=YOUR_VALUE&";
        WebClient client = new WebClient();
        string result = client.DownloadString(url + parameters);
        Console.WriteLine(result);
    }
}
curl "https://xsapi.com/API/mi.php?apikey=YOUR_VALUE&tag=YOUR_VALUE&page=YOUR_VALUE&type=YOUR_VALUE&"