系统收录:492 个人收录:8712 本日访问量:
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
Warning: Trying to access array offset on value of type null in /var/www/vhosts/example.test/httpdocs/moa.moe/usr/themes/default/hitoapi.php on line 208
注意:此API已经不再维护,并可能在下次域名过期时失效
以下仅作备份用
等了三天多备案终于下来了(现在没了)
之前还搞过一个本地缓存方案(传送门:https://moa.moe/24,想要一言数据的也进这里)
注:本页提供的API数据全部源于hitokoto.us,由于源站关闭可能不会再添加数据。要获取持续更新的一言和新的功能请移步 hitokoto.cn
数据格式:JSON
地址:
系统收录: https://hitoapi.cc/s
系统+个人收录: https://hitoapi.cc/sp
已经配置CORS,可跨域访问
已禁止浏览器缓存
数据结构:
{
"catname" : "分类",
"author" : "投稿人",
"date" : "投稿时间",
"id" : "ID(可用<a rel='nofollow' href='http://hitokoto.us/view/"+id+".html'>链接到官方页面)",
"text" : "一言内容",
"source" : "来源(可能为空)"
}
示例代码(JS):
$.getJSON('https://hitoapi.cc/sp',function(hitokoto){
$('#hitocenters').html(`<span id="hitokoto" title="分类:${hitokoto.catname}${hitokoto.source?"
出自:"+hitokoto.source:""}
投稿:${hitokoto.author} @ ${hitokoto.date}"><a rel="nofollow" href="http://hitokoto.us/view/${hitokoto.id}.html" target="_blank">${hitokoto.text}</a></span>`);
});
数据格式:JSON(指定类别)
地址:
Anime - 动画 | https://hitoapi.cc/aa |
Comic - 漫画 | https://hitoapi.cc/b |
Game - 游戏 | https://hitoapi.cc/c |
Novel - 小说 | https://hitoapi.cc/d |
原创 | https://hitoapi.cc/e |
来自网络 | https://hitoapi.cc/f |
其他 | https://hitoapi.cc/g |
已经配置CORS,可跨域访问
已禁止浏览器缓存
数据结构:
{
"catname" : "分类",
"author" : "投稿人",
"date" : "投稿时间",
"id" : "ID(可用<a rel='nofollow' href='http://hitokoto.us/view/"+id+".html'>链接到官方页面)",
"text" : "一言内容",
"source" : "来源(可能为空)"
}
示例代码(JS):
$.getJSON('https://hitoapi.cc/aa',function(hitokoto){
$('#hitocenters').html(`<span id="hitokoto" title="分类:${hitokoto.catname}${hitokoto.source?"
出自:"+hitokoto.source:""}
投稿:${hitokoto.author} @ ${hitokoto.date}"><a rel="nofollow" href="http://hitokoto.us/view/${hitokoto.id}.html" target="_blank">${hitokoto.text}</a></span>`);
});
数据格式:JSON(指定UID)
地址:https://hitoapi.cc/id/UID (将UID替换)
已经配置CORS,可跨域访问
已禁止浏览器缓存
数据结构:
{
"catname" : "分类",
"author" : "投稿人",
"date" : "投稿时间",
"id" : "ID(可用<a rel='nofollow' href='http://hitokoto.us/view/"+id+".html'>链接到官方页面)",
"text" : "一言内容",
"source" : "来源(可能为空)"
}
示例代码(JS):
$.getJSON('https://hitoapi.cc/id/1',function(hitokoto){
$('#hitocenters').html(`<span id="hitokoto" title="分类:${hitokoto.catname}${hitokoto.source?"
出自:"+hitokoto.source:""}
投稿:${hitokoto.author} @ ${hitokoto.date}"><a rel="nofollow" href="http://hitokoto.us/view/${hitokoto.id}.html" target="_blank">${hitokoto.text}</a></span>`);
});
数据格式:JavaScript (不推荐,可能会减慢页面加载速度)
地址:
系统收录: https://hitoapi.cc/a
系统+个人收录: https://hitoapi.cc/ap
示例代码(HTML):
<script src="https://hitoapi.cc/ap"></script>
博主可以弄个显示诗句的api咩?

官网就给了那几个分类,我也不知道哪些是诗啊
可以试一下我的接口(博主别打我): https://www.jinrishici.com
这样啊,好吧
控制台报错有点多啊~
大约有多少数据