金山每日一言
获取金山词霸每日一言

接口地址: https://api.leafone.cn/api/cibatext

返回格式: JSON

请求方式: GET

请求示例: https://api.leafone.cn/api/cibatext

请求参数说明:

名称 必填 类型 说明
date string 标准化日期格式 如:2023-11-15

返回参数说明:

名称 类型 说明
note string 中文内容
content string 英文内容
fenxiang_img string 英文合成图片
tts string 英文音频地址
picture string 图片地址
dateline string 时间

返回示例:

{
    "code": 200,
    "msg": "获取成功",
    "data": {
        "note": "我将成功归功于这一点:从不给或找任何借口。",
        "content": "I attribute my success to this: I never gave or took any excuse. ",
        "fenxiang_img": "https://staticedu-wps.cache.iciba.com/image/35a436a6a12f7bc52df0f59958c02850.png",
        "tts": "https://staticedu-wps.cache.iciba.com/audio/4b2d5d97d770d81244a2873d58638771.mp3",
        "picture": "https://staticedu-wps.cache.iciba.com/image/8650f20da6f5d1fb89c9d4e21c26e3d7.jpg",
        "dateline": "2023-11-15"
    },
    "time": 0.201952
}

请求参数设置:

参数名称 参数值 操作


{
    "code": 200,
    "msg": "获取成功",
    "data": {
        "note": "我将成功归功于这一点:从不给或找任何借口。",
        "content": "I attribute my success to this: I never gave or took any excuse. ",
        "fenxiang_img": "https://staticedu-wps.cache.iciba.com/image/35a436a6a12f7bc52df0f59958c02850.png",
        "tts": "https://staticedu-wps.cache.iciba.com/audio/4b2d5d97d770d81244a2873d58638771.mp3",
        "picture": "https://staticedu-wps.cache.iciba.com/image/8650f20da6f5d1fb89c9d4e21c26e3d7.jpg",
        "dateline": "2023-11-15"
    },
    "time": 0.201952
}

错误码格式说明:

名称 类型 说明
404 integer 获取失败

代码示例:

暂无示例