稳定、快速、免费的 API 接口服务
驾照考试题库,科目一和科目四2种
接口地址: https://api.52vmy.cn/api/query/jiakao
返回格式: JSON
请求方式: GET
请求示例: https://api.52vmy.cn/api/query/jiakao
接口定制: 点此加入用户群
默认QPS: 每2秒最多4次 携带Token可无视限制
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| t | 否 | string | 科目类别 1为科目一 /4为科目四 默认1 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|
返回示例:
Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/api.52vmy.cn/view/api/query/jiakao/index.php on line 13
{ "code": 200, "msg": "成功", "data": [ { "question": "驾驶人在超车时,前方车辆不减速、不让道,应怎样做?", "option1": "A、连续鸣喇叭加速超越", "option2": "B、加速继续超越", "option3": "C、停止继续超车", "option4": "D、紧跟其后,伺机再超", "answer": "C", "explain": "前方不让道,说明不具备超车条件,停止超车是最安全的做法。", "type": "C1,C2,C3", "chapter": "道路通行条件及通行规定" } ] }
PHP代码示例:
$t = $_GET["t"]; $url = "https://api.52vmy.cn/api/query/jiakao?t=".$t; echo file_get_contents($url);