古风唯美诗词 - API

# 随机语录API请求方式 #
  • Method: Get

# 请求地址 #
https://api.liuzhuai.com/ancient/api.php
# 参数 #
  • charset//字符编码(gbk/utf-8)
  • encode//返回类型(text/js/json)

  • # 返回数据 #
    document.write("夜闻客自南山中,却话北海不归人");

    # 备注 #
    调用举例:<script src="https://api.liuzhuai.com/ancient/api.php"></script>

    # 示例 #
    单纯引用举例:https://api.liuzhuai.com/ancient/api.php
    text引用举例:https://api.liuzhuai.com/ancient/api.php?type=text