本站提供一些免费接口,按需使用

图片类

竖屏图
API介绍都是竖图,单参可用,不加参数则默认随机返回原图
接口地址//api.tiax.cn/img/cutegirl/
请求方式GET;POST
参数说明param=20x20 自定义返回图片大小,最小1x1,最大不超过图片原本尺寸
参数说明format=json 返回 JSON 格式信息

示例代码:

var requestOptions = {
   method: 'GET',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("api.tiax.cn/img/cutegirl/?format=json", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));

OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
   .url("api.tiax.cn/img/cutegirl/?format=json")
   .method("GET", body)
   .build();
Response response = client.newCall(request).execute();

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'api.tiax.cn/img/cutegirl/?format=json',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_HTTPHEADER => array(
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

import http.client

conn = http.client.HTTPSConnection("api.tiax.cn")
payload = ''
conn.request("GET", "/img/cutegirl/?format=json", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

GET /img/cutegirl/?format=json HTTP/1.1
Host: api.tiax.cn

var client = new RestClient("api.tiax.cn/img/cutegirl/?format=json");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);


Pyoapple 专题
API介绍표은지Eunji Pyoapple 个人专辑,单参可用,不加参数则默认随机返回原图
接口地址//api.tiax.cn/img/Pyoapple/
请求方式GET;POST
参数说明param=20x20 自定义返回图片大小,最小1x1,最大不超过图片原本尺寸
参数说明format=json 返回 JSON 格式信息
参数说明type=video 返回 JSON 格式视频源地址,自带H5播放器演示单页下载
关于更多请查看站内文章《표은지(Eunji Pyoapple)》

示例代码:

var requestOptions = {
   method: 'GET',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("api.tiax.cn/img/Pyoapple/?format=json", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));

OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
   .url("api.tiax.cn/img/Pyoapple/?format=json")
   .method("GET", body)
   .build();
Response response = client.newCall(request).execute();

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'api.tiax.cn/img/Pyoapple/?format=json',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_HTTPHEADER => array(
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

import http.client

conn = http.client.HTTPSConnection("api.tiax.cn")
payload = ''
conn.request("GET", "/img/Pyoapple/?format=json", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

GET /img/Pyoapple/?format=json HTTP/1.1
Host: api.tiax.cn

var client = new RestClient("api.tiax.cn/img/Pyoapple/?format=json");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);



其他类

免费字体
API介绍简单好用的免费字体,适用web页面更换字体,字体收录均为免费并可商用的,无版权风险。
API使用查看站内文章《博客个性化字体修改》
接口地址//api.tiax.cn/font/
请求方式GET;POST

万年历查询
API介绍万年历信息查询,直接请求不带参数则返回当日信息
接口地址//api.tiax.cn/almanac/
请求方式GET;POST
参数说明年份 year
参数说明月份 month
参数说明日期 day

示例代码:

var myHeaders = new Headers();
var requestOptions = {
   method: 'GET',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("api.tiax.cn/almanac/?year=2023&month=11&day=23", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));

Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("api.tiax.cn/almanac/?year=2023&month=11&day=32")
   .asString();

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'api.tiax.cn/almanac/?year=2023&month=11&day=23',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_HTTPHEADER => array(
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

import http.client

conn = http.client.HTTPSConnection("api.tiax.cn")
payload = ''
conn.request("GET", "/almanac/?year=2023&month=11&day=23", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

GET /almanac/?year=2023&month=11&day=23 HTTP/1.1
Host: api.tiax.cn

var client = new RestClient("api.tiax.cn/almanac/?year=2023&month=11&day=23");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

返回示例

{
    "公历日期": "2023年3月6日 星期一",
    "农历日期": "农历二零二三年 二月(大) 十五",
    "黄历日期": "阳历2023年3月6日,癸卯年阴历二月十五日",
    "回历日期": "伊斯兰历1444年8月13日",
    "干支日期": "癸卯年 乙卯月 癸亥日",
    "五行纳音": "大海水",
    "值日星神": "玄武(凶星)",
    "宜": "祭拜 祭祀、开光、塑绘、订婚 订盟、纳采、合帐、成人礼 冠笄、拆卸、动土、起基、上梁、搬迁新宅 乔迁新居 入宅、安香、开业 开幕 开市、立券、买车 提车 纳财、沐浴、生子 求子 求嗣、出火、竖柱、安门、",
    "忌": "造庙 结婚 嫁娶 伐木 安葬"
}
钥匙你想请我喝酱香拿铁的话!