Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新国际站接口说明 #160

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/sentence/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@
| 地址 | 协议 | 方法 | QPS 限制 | 线路 |
|-------------------------------|-------|-----|--------|----|
| `v1.hitokoto.cn` | HTTPS | Any | 2 | 全球 |
| `international.v1.hitokoto.cn` | HTTPS | Any | 10 | 海外 |
| `international.v1.hitokoto.cn` | HTTPS | Any | 20(含缓存*) | 海外 |

> 请注意:一言域名已加入 HSTS 预加载计划,所有请求一律以 HTTPS 方法进行。

> 国际站当前因持续的流量、负载和攻击题,开启了缓存,缓存2s过期。实际效果:同一个地区、线路、使用同一参数的访问者短时间内得到的句子是一致的。这样可以有效的降低运算服务器的负载,并提高用户体验,也可以反爬虫。
> 目前不确定该规则国内站是否一并开启,将根据后期运营情况确定。
> 可以确定的一点:我们**不欢迎**爬虫通过不断刷新接口爬取句子数据库。一言接口使用的句子数据库已全部公开,可查看[语句库]<https://sentences-bundle.hitokoto.cn>进行使用。

### 请求参数

| 参数 | 值 | 可选 | 说明 |
Expand Down