GET
实用工具
随机英文单词
随机一个英文单词或者一些英文句子
累计调用 11
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/RandEnglishDict
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| type | string | 可选 | 返回格式 | 暂无 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | array | 返回数据 |
| data.content | string | 单词 |
| data.trans | string | 翻译 |
| data.sentences | array | 造句 |
| data.sentences.*.sContent | string | 造句 |
| data.sentences.*.sContent_eng | string | 重点标记后的造句 |
| data.sentences.*.sSpeech | string | url编码后的造句 |
| data.sentences.*.sCn | string | 造句翻译 |
响应示例
200 OK
{
"code": 1,
"message": "bureaucratic",
"data": {
"content": "bureaucratic",
"trans": "官僚的,官僚般的",
"sentences": [
{
"sContent": "Bureaucratic delays are inevitable.",
"sCn": "官僚主义所致的延误是不可避免的。"
}
]
},
"timestamp": 1791344653588,
"req_timestamp": 1791344653496
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/RandEnglishDict?type=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/RandEnglishDict?type=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/RandEnglishDict?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/RandEnglishDict?type=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())