流式播放 Matrix 数字雨
GET
/anim/matrix公开访问
先输出首帧,再以 interval 毫秒为间隔逐帧发送。使用 curl -N 禁用输出缓冲;适合至少 56 列、23 行且支持 ANSI 的终端。 访问类别:匿名 API,可携带 Token 使用独立额度
请求参数
framesquery- integer · 默认值:48 · 最小值:1 · 最大值:120
intervalquery- integer · 默认值:100 · 最小值:50 · 最大值:500
_colorquery- 0、false、off 或 no 关闭颜色,保留控制光标的序列。
- string · 0、false、off 或 no 关闭颜色,保留控制光标的序列。
响应
text/plain
{
"type": "string"
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}响应示例
成功响应
curl -NsS 'https://oit.sh/anim/matrix?frames=2'HTTP 200
content-type: text/plain; charset=utf-8
content-encoding: gzip
cache-control: no-store
F 8 710SD H 9 SHRZ1 A K 6 2XU T A1Z
K D C65X M E XMW46 F P B 2Z Y P J F64
I HBA2 R J 2R19B K G U G 74 U C O K 9
N G W O 7W6 G P L L C9 Z H W T P E
ES L 11 T C B L U Q Q HE 4 M 1 Y J
JXH Q 66 H G Q ZEV V Z 9 R 6 3 O
O2M V BB V 4J0 0 4 E B 8 0 T
T7R 0 2 G 9O5 9 J G DT5 Y
YCW 5 7 ET H E PL IYA
3H A C Y M J I N U N3F
8M H O 3 R O N S Z 8 8K
D Q2M T 8 W T S X 4 D P
V7R Y D L W X 2 I U
0CW 3 I Q 1 2 7 9 N Z
5H 8 V 6 7 C E 0
AM D 0 B R J 5
R I 5 G OW O A
N 3L T1 F
S 8Q Y6 K
X DV 3B P
2 I0 8 U
7 A N5 D 5
F 8 7 0SD H 9 SHRZ1 K6 2 U T A1Z
K D C65XI M E XMW46 F P B 72Z Y P F64
P I HBA2 R J 2R19B K U G 74 U C O KB9
N G 7 W O 7W6EG P L L C9 Z H W T P E
ES L 1 T C1B L U Q Q HE 4 M 1 Y U J
JXH Q 66 Y H G Q ZEV V MJ 9 R 6 3 O
O2M V BB V 4J0 0 4 E B 8 0 T
T7R 0 GG 0 9O5 5 9 J G DT5 Y
YCW 5 7 L ETA E L IYA 3
3H A C JY M J N U N3F
8M F H O 3 R O N S Z S8K
D M T 8 W T S X 4 D P
V7R Y D W1 Y X 2 9 I U
0CW 3 I Q 1 2 7 9 N Z
5H1 8 V 6 7 C E S
AM D 0 B R C J 5
FR I 5 G W O A
W N A L T1 F
8Q Y6 K
X DV 3B P
2 I0 8 U
7 N5 D Z
错误示例
curl -NsS 'https://oit.sh/anim/matrix?frames=-1&interval=100&_color=hello'HTTP 400
content-type: application/json
content-encoding: gzip
cache-control: no-store
{
"error": {
"code": "INVALID_INPUT",
"message": "参数无效",
"issues": [
{
"location": "query",
"field": "frames",
"code": "invalid_format",
"message": "格式要求:/^\\d+$/"
}
]
}
}在线调试
curl -X GET 'https://oit.sh/anim/matrix'
响应
等待发送请求