返回首页 贰月红API管理系统
登录

血型规律

正常

该接口通过接收father(父亲血型)和mother(母亲血型)两个参数,返回子女可能的血型和不可能的血型。

GET
调用 40 次
JSON
更新于 2026-02-01
请求地址
https://api.iosxx.cn/API/xxgl.php
示例地址
https://api.iosxx.cn/API/xxgl.php??father=A&mother=B&type=text
请求参数
参数名 类型 必填 说明
father string 父亲血型(A/B/AB/O,不区分大小写)
mother string 母亲血型(A/B/AB/O,不区分大小写)
type string 输出格式(json/text,默认 json)
状态码说明
状态码 说明
200请求成功
403权限不足或API密钥无效
404请求的资源不存在
429请求过于频繁,已被限流
500服务器内部错误
在线测试
响应结果
点击"发送请求"查看响应结果...
代码示例
<?php
$url = 'https://api.iosxx.cn/API/xxgl.php';
$params = [
    'father' => 'YOUR_VALUE',
    'mother' => 'YOUR_VALUE',
    'type' => 'YOUR_VALUE',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
import requests

url = "https://api.iosxx.cn/API/xxgl.php"
params = {
    "father": "YOUR_VALUE",
    "mother": "YOUR_VALUE",
    "type": "YOUR_VALUE",
}

response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.iosxx.cn/API/xxgl.php');
const params = {
    'father': 'YOUR_VALUE',
    'mother': 'YOUR_VALUE',
    'type': 'YOUR_VALUE',
};

Object.keys(params).forEach(key => 
    url.searchParams.append(key, params[key]));

fetch(url)
    .then(res => res.text())
    .then(data => console.log(data))
    .catch(err => console.error(err));
curl -X GET "https://api.iosxx.cn/API/xxgl.php?father=YOUR_VALUE&mother=YOUR_VALUE&type=YOUR_VALUE"