维梦API - 提供免费接口调用平台
娱乐 · 字词拼音
查询字词拼音

接口地址: https://api.52vmy.cn/api/wl/s/pinyin

返回格式: JSON

请求方式: GET

请求示例: https://api.52vmy.cn/api/wl/s/pinyin?msg=你好

接口定制: 点此联系管理员QQ 3037370935

默认QPS: 每2秒最多5次 Token可无视QPS

请求参数说明:

名称 必填 类型 说明
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);