GET
数据查询
Linux 命令查询
查询Linux中的一些基础命令以及食用方法,返回文档最终呈现为markdown格式
累计调用 12
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/LinuxCommon
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| command | string | 必填 | 需要查询的命令 | 暂无 |
| limit | int | 可选 | 搜索时返回命令的长度,2~100 | 暂无 |
| page | int | 可选 | 搜索时的翻页 | 暂无 |
| n | int | 可选 | 选择命令,为0或空返回列表 | 暂无 |
| type | string | 可选 | 返回格式 | 暂无 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | array | 返回数据 |
| data.Common | string | 获取成功以后返回的文档 |
响应示例
200 OK
{
"code": -2,
"message": "`1` 不存在,请查证后再次尝试!",
"timestamp": 1791344657138,
"req_timestamp": 1791344657070
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/LinuxCommon?command=%E6%9A%82%E6%97%A0&limit=%E6%9A%82%E6%97%A0&page=%E6%9A%82%E6%97%A0&n=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/LinuxCommon?command=%E6%9A%82%E6%97%A0&limit=%E6%9A%82%E6%97%A0&page=%E6%9A%82%E6%97%A0&n=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/LinuxCommon?command=%E6%9A%82%E6%97%A0&limit=%E6%9A%82%E6%97%A0&page=%E6%9A%82%E6%97%A0&n=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/LinuxCommon?command=%E6%9A%82%E6%97%A0&limit=%E6%9A%82%E6%97%A0&page=%E6%9A%82%E6%97%A0&n=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())