中国科学家
中国科学院院士---中国人一定要铭记他们为国家做出的杰出贡献

接口地址: https://58.linkpc.net/api/ksj

返回格式: JSON

请求方式: GET

请求示例: https://58.linkpc.net/api/ksj?type=json

请求参数说明:

名称 必填 类型 说明
type string 返回格式默认HTML可选JSON
lemmaTitle string 可指定科学家名字比如lemmaTitle=钱学森

返回参数说明:

名称 类型 说明
desc string 已故日期
reference string 参考
lemmaTitle string 科学家姓名
lemmaDesc string 简单描述
summary string 详细描述
coverPic string 科学家照片

返回示例:

{
"desc": "",
"reference": [],
"lemmaTitle": "胡文瑞",
"lemmaDesc": "中国科学院院士、液体物理专家",
"summary": "胡文瑞,1936年4月4日出生于上海,原籍湖北武昌,液体物理专家,中国科学院院士、国际宇航科学院院士,中国科学院力学研究所研究员、博士生导师。胡文瑞于1958年从北京大学数学力学系流体力学专业毕业,之后分配到中国科学院动力研究室工作;1960年合并到中国科学院力学研究所,先后担任研究实习员、助理研究员、副研究员、博士生导师、研究员;1994年倡导和主持建立了国家微重力实验室,并担任实验室主任,之后担任学术委员会主任;1995年当选为中国科学院院士;2001年当选为国际宇航科学院院士。2004年被聘为兰州理工大学教授。胡文瑞长期从事流体力学和磁流体力学研究。早期主要从事磁流体力学研究,20世纪70年代转入日地物理研究,之后从事微重力流体物理研究。",
"coverPic": "https:\/\/bkimg.cdn.bcebos.com\/smart\/8718367adab44aed2e7352f9ae509001a18b87d64dd3-bkimg-process,v_1,rw_1,rh_1,maxl_216,pad_1,color_ffffff?x-bce-process=image\/format,f_auto",
"encodeItemId": "f008437b0cb4fab1922d26b0",
"lemmaId": 37686
}

错误码格式说明:

名称 类型 说明

代码示例:

                            <?php
header('Content-type: application/json; charset=utf-8');
date_default_timezone_set('PRC');
$url = 'https://58.linkpc.net/api/ksj';
$type = isset($_GET['type']) ? $_GET['type'] : '';
if ($type == 'json' || $type == 'JSON') {
$result = file_get_contents($url . '?type=json');
echo htmlspecialchars($result);
} else {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
curl_close($ch);

if (strpos($contentType, 'image') !== false) {
header('Content-Type: ' . $contentType);
echo $response;
} elseif (strpos($contentType, 'text') !== false) {
header('Content-Type: ' . $contentType);
echo $response;
} elseif (strpos($contentType, 'application/json') !== false) {
header('Content-Type: application/json');
echo $response;
} else {
header('Content-Type: text/html');
echo $response;
}
}
?>