输入题目,秒出答案,自动收录题库,支持图片展示
在上方输入框输入题目内容,点击搜索即可获取答案
| 接口地址 | https://so.baizewenda.com/api/search |
| 请求方式 | GET / POST |
| 响应格式 | JSON |
| 字符编码 | UTF-8 |
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 是 | 搜索的题目内容 |
curl -X POST "https://so.baizewenda.com/api/search" \
-H "Content-Type: application/json" \
-d '{"query":"1+1等于几"}'
fetch('https://so.baizewenda.com/api/search', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: '1+1等于几' })
})
.then(res => res.json())
.then(data => console.log(data));
import requests
url = "https://so.baizewenda.com/api/search"
data = {"query": "1+1等于几"}
response = requests.post(url, json=data)
print(response.json())
$url = "https://so.baizewenda.com/api/search";
$data = json_encode(['query' => '1+1等于几']);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
print_r(json_decode($result, true));
{
"code": 0,
"message": "搜索成功",
"data": {
"total": 1,
"list": [
{
"question": "题目内容+选项整合内容",
"lonequestion": "纯题目内容",
"options": [
{label: "A", content: "选项内容"},
{label: "B", content: "选项内容"},
{label: "C", content: "选项内容"},
{label: "D", content: "选项内容"}
],
"answer": "答案内容",
"type": "baidu",
"scores": 100
}
]
}
}
Powered by 白泽问答 · so.baizewenda.com