死亡结果计算器

死亡结果计算器

接口状态:正常
总调用:257
添加时间:2024-11-24
更新时间:2026-01-16

请求信息

https://api.andeer.top/API/alive.php
https://api.andeer.top/API/alive.php?year=2005&month=1&day=1

请求参数

参数名类型必填说明
year字符串
month字符串
day字符串
gender字符串
height字符串
weight字符串
attitude字符串
smoke字符串

状态码说明

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

在线测试

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

调用示例

<?php
$url = 'https://api.andeer.top/API/alive.php';
$params = ['year' => 'YOUR_VALUE', 'month' => 'YOUR_VALUE', 'day' => 'YOUR_VALUE', 'gender' => 'YOUR_VALUE', 'height' => 'YOUR_VALUE', 'weight' => 'YOUR_VALUE', 'attitude' => 'YOUR_VALUE', 'smoke' => '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://api.andeer.top/API/alive.php"
params = {
    'year': 'YOUR_VALUE',
    'month': 'YOUR_VALUE',
    'day': 'YOUR_VALUE',
    'gender': 'YOUR_VALUE',
    'height': 'YOUR_VALUE',
    'weight': 'YOUR_VALUE',
    'attitude': 'YOUR_VALUE',
    'smoke': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.andeer.top/API/alive.php');
const params = {
    'year': 'YOUR_VALUE',
    'month': 'YOUR_VALUE',
    'day': 'YOUR_VALUE',
    'gender': 'YOUR_VALUE',
    'height': 'YOUR_VALUE',
    'weight': 'YOUR_VALUE',
    'attitude': 'YOUR_VALUE',
    'smoke': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

                fetch(url)
                    .then(response => response.text())
                    .then(data => console.log(data))
                    .catch(error => console.error('Error:', error));

返回示例

{
    "code": 200,
    "msg": "获取成功",
    "data": {
        "剩余寿命": "19953 天 1 小时 44 分钟 18 秒",
        "人生进度": "31.71%",
        "预计能活到": "2079年09月05日 【享年80 岁】",
        "大概还要活": "54 年",
        "大概还要吃": "47288 顿饭",
        "大概还要洗": "10508 次澡",
        "大概还要放": "78814 个屁",
        "大概还要睡": "19953 次觉",
        "大概还要做": "78814 个梦",
        "大概还要过": "2850 个周末",
        "大概还要生": "约 136 次病,建议保持良好的生活习惯!"
    },
    "text": {
        "copyright": "Aurora 2022.8.14",
        "time": "当前时间为:2025-01-17 22:15:42"
    }
}