稳定、快速、免费的 API 接口服务
查询字词拼音
接口地址: https://api.52vmy.cn/api/wl/s/pinyin
返回格式: JSON
请求方式: GET
请求示例: https://api.52vmy.cn/api/wl/s/pinyin?msg=你好
接口定制: 点此加入用户群
默认QPS: 每2秒最多3次 携带Token可无视限制
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
msg | 是 | string | 关键词 |
format | 是 | string | 是否携带音标,0:不带(默认)/1:携带音标 |
type | 是 | string | 返回格式默认JSON可选text |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "msg": "成功", "data": [ "ni", "hao" ] }
PHP代码示例:
$msg = $_GET["msg"]; $format = $_GET["format"]; $type = $_GET["type"]; $url = "https://api.52vmy.cn/api/wl/s/pinyin?msg=".$msg."&format=".$format."&type=".$type; echo file_get_contents($url);