GET
文案语录
古诗词名句
古诗词名言名句
累计调用 11
今日调用 2
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/Sentences
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| type | string | 可选 | 返回格式 | 暂无 |
| 0 | string | 可选 | 参考type | 暂无 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | array | 返回数据 |
| data.content | string | 诗词句 |
| data.author | string | 作者 |
| data.works | string | 作品 |
响应示例
200 OK
{"code":1,"message":"西园何限相思树,辛苦梅花候海棠。\t\t——元好问《鹧鸪天·候馆灯昏雨送凉》","data":{"content":"西园何限相思树,辛苦梅花候海棠。","author":"元好问","works":"鹧鸪天·候馆灯昏雨送凉"},"timestamp":1792151785248,"req_timestamp":1792151785154}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/Sentences?type=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/Sentences?type=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/Sentences?type=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/Sentences?type=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())